From 3c3882296a803f65f84ac3536510de3d388bfbc3 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 7 Jul 2022 09:40:47 +0200 Subject: added fetchmail 6.4.30-3 --- archlinuxaba/fetchmail/PKGBUILD | 46 ++++++++++++++++++++++++++++++ archlinuxaba/fetchmail/disable-sslv3.patch | 16 +++++++++++ archlinuxaba/fetchmail/fetchmail.service | 11 +++++++ archlinuxaba/fetchmail/fetchmail.sysusers | 2 ++ archlinuxaba/fetchmail/fetchmail.tmpfiles | 1 + 5 files changed, 76 insertions(+) create mode 100644 archlinuxaba/fetchmail/PKGBUILD create mode 100644 archlinuxaba/fetchmail/disable-sslv3.patch create mode 100644 archlinuxaba/fetchmail/fetchmail.service create mode 100644 archlinuxaba/fetchmail/fetchmail.sysusers create mode 100644 archlinuxaba/fetchmail/fetchmail.tmpfiles (limited to 'archlinuxaba') diff --git a/archlinuxaba/fetchmail/PKGBUILD b/archlinuxaba/fetchmail/PKGBUILD new file mode 100644 index 0000000..b2fd732 --- /dev/null +++ b/archlinuxaba/fetchmail/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Erich Eckner + +pkgname=fetchmail +pkgver=6.4.30 +pkgrel=3 +pkgdesc="A remote-mail retrieval utility" +arch=('i486' 'i686' 'pentium4' 'x86_64') +url="http://www.fetchmail.info" +license=('GPL') +_pinned_dependencies=( + 'glibc>=2.31' + 'openssl=1.1.1.q' +) +depends=("${_pinned_dependencies[@]}") +makedepends=('python') +optdepends=('tk: for using fetchmailconf' + 'python2: for using fetchmailconf') +options=('!makeflags') +source=("https://sourceforge.net/projects/fetchmail/files/branch_${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" + 'disable-sslv3.patch' 'fetchmail.tmpfiles' 'fetchmail.sysusers' 'fetchmail.service') +sha512sums=('0ec540c4102267e6e72fefa5e76aa76f45d25a0e68ec40f1fd834719f2a4b5f3f78c587b050fc33d97dd8fc6f674950949e5c23f960ebcd3046d5cc2e06db1d0' + '1425f3655c8fe7c6ca32b6fc876fd7f0ecfb24a86f63d9ee123fe710ebbdd8fbf5b5ef0f1831cd9702de56cc707a2361a427cf2ed840b63a39beda71a18dfba3' + 'f6e3eb409a1d88bcfb02012491fdbbf859803dbee45998879525fd35a2377bae95504da8aafcb24bcc2e695e15c96f6ec6f7e6521d28012370a4ec5e2a25a351' + 'c1169c54b70be53e3093d65a2d0f1e251fadf24a8008484583d79dd3cedea13782137c0db5f9052b2d02fdbd6bd0fdcb78c6403fe39926ac636b45a44d452b29' + '49c2843ddb06f587611f838bc9dab3fe04af991d70c27f8ffdd6351d8d6401683a356a03401e232a53e44ee43f6d85aa520f233f256974d07972913145fdf0f5') + +prepare() { + cd ${pkgname}-${pkgver} + patch -Np1 -i ../disable-sslv3.patch +} + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --with-ssl=/usr + make +} + +package() { + install -D -m644 fetchmail.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/fetchmail.conf + install -D -m644 fetchmail.sysusers "${pkgdir}"/usr/lib/sysusers.d/fetchmail.conf + install -D -m644 fetchmail.service "${pkgdir}"/usr/lib/systemd/system/fetchmail.service + + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -d -o 90 -g nobody "${pkgdir}/var/lib/fetchmail" +} diff --git a/archlinuxaba/fetchmail/disable-sslv3.patch b/archlinuxaba/fetchmail/disable-sslv3.patch new file mode 100644 index 0000000..7c4833a --- /dev/null +++ b/archlinuxaba/fetchmail/disable-sslv3.patch @@ -0,0 +1,16 @@ +--- fetchmail-6.4.1/socket.c 2019-09-15 17:48:53.000000000 +0200 ++++ fetchmail-6.4.1/socket.c 2019-09-30 07:13:58.260770910 +0200 +@@ -905,13 +905,8 @@ + } + + if (!strcasecmp("ssl3", *myproto)) { +-#if (HAVE_DECL_SSLV3_CLIENT_METHOD > 0) && (0 == OPENSSL_NO_SSL3 + 0) +- _ctx[sock] = SSL_CTX_new(SSLv3_client_method()); +- *avoid_ssl_versions &= ~SSL_OP_NO_SSLv3; +-#else + report(stderr, GT_("Your OpenSSL version does not support SSLv3.\n")); + return -1; +-#endif + } else if (!strcasecmp("ssl3+", *myproto)) { + *avoid_ssl_versions &= ~SSL_OP_NO_SSLv3; + *myproto = NULL; diff --git a/archlinuxaba/fetchmail/fetchmail.service b/archlinuxaba/fetchmail/fetchmail.service new file mode 100644 index 0000000..64c1182 --- /dev/null +++ b/archlinuxaba/fetchmail/fetchmail.service @@ -0,0 +1,11 @@ +[Unit] +Description=Fetchmail +After=network.target + +[Service] +User=fetchmail +ExecStart=/usr/bin/fetchmail -d 900 -f /etc/fetchmailrc +RestartSec=1 + +[Install] +WantedBy=multi-user.target diff --git a/archlinuxaba/fetchmail/fetchmail.sysusers b/archlinuxaba/fetchmail/fetchmail.sysusers new file mode 100644 index 0000000..57f99ee --- /dev/null +++ b/archlinuxaba/fetchmail/fetchmail.sysusers @@ -0,0 +1,2 @@ +u fetchmail 90 "Fetchmail daemon" /var/lib/fetchmail +m fetchmail nobody diff --git a/archlinuxaba/fetchmail/fetchmail.tmpfiles b/archlinuxaba/fetchmail/fetchmail.tmpfiles new file mode 100644 index 0000000..07945f8 --- /dev/null +++ b/archlinuxaba/fetchmail/fetchmail.tmpfiles @@ -0,0 +1 @@ +d /run/fetchmail 700 fetchmail nobody -- cgit v1.2.3-54-g00ecf