[arch-commits] Commit in fetchmail/repos (12 files)

Felix Yan fyan at archlinux.org
Thu Mar 3 17:23:10 UTC 2016


    Date: Thursday, March 3, 2016 @ 18:23:10
  Author: fyan
Revision: 260670

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  fetchmail/repos/staging-i686/
  fetchmail/repos/staging-i686/PKGBUILD
    (from rev 260669, fetchmail/trunk/PKGBUILD)
  fetchmail/repos/staging-i686/disable-sslv3.patch
    (from rev 260669, fetchmail/trunk/disable-sslv3.patch)
  fetchmail/repos/staging-i686/fetchmail.install
    (from rev 260669, fetchmail/trunk/fetchmail.install)
  fetchmail/repos/staging-i686/fetchmail.service
    (from rev 260669, fetchmail/trunk/fetchmail.service)
  fetchmail/repos/staging-i686/fetchmail.tmpfiles
    (from rev 260669, fetchmail/trunk/fetchmail.tmpfiles)
  fetchmail/repos/staging-x86_64/
  fetchmail/repos/staging-x86_64/PKGBUILD
    (from rev 260669, fetchmail/trunk/PKGBUILD)
  fetchmail/repos/staging-x86_64/disable-sslv3.patch
    (from rev 260669, fetchmail/trunk/disable-sslv3.patch)
  fetchmail/repos/staging-x86_64/fetchmail.install
    (from rev 260669, fetchmail/trunk/fetchmail.install)
  fetchmail/repos/staging-x86_64/fetchmail.service
    (from rev 260669, fetchmail/trunk/fetchmail.service)
  fetchmail/repos/staging-x86_64/fetchmail.tmpfiles
    (from rev 260669, fetchmail/trunk/fetchmail.tmpfiles)

------------------------------------+
 staging-i686/PKGBUILD              |   45 +++++++++++++++++++++++++++++++++++
 staging-i686/disable-sslv3.patch   |   20 +++++++++++++++
 staging-i686/fetchmail.install     |   19 ++++++++++++++
 staging-i686/fetchmail.service     |   11 ++++++++
 staging-i686/fetchmail.tmpfiles    |    1 
 staging-x86_64/PKGBUILD            |   45 +++++++++++++++++++++++++++++++++++
 staging-x86_64/disable-sslv3.patch |   20 +++++++++++++++
 staging-x86_64/fetchmail.install   |   19 ++++++++++++++
 staging-x86_64/fetchmail.service   |   11 ++++++++
 staging-x86_64/fetchmail.tmpfiles  |    1 
 10 files changed, 192 insertions(+)

Copied: fetchmail/repos/staging-i686/PKGBUILD (from rev 260669, fetchmail/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1,45 @@
+# $Id$
+
+pkgname=fetchmail
+pkgver=6.3.26
+pkgrel=4
+pkgdesc="A remote-mail retrieval utility"
+arch=('i686' 'x86_64')
+url="http://www.fetchmail.info"
+license=('GPL')
+depends=('openssl')
+makedepends=('python2')
+optdepends=('tk: for using fetchmailconf'
+            'python2: for using fetchmailconf')
+options=('!makeflags')
+install='fetchmail.install'
+source=("http://sourceforge.net/projects/fetchmail/files/branch_6.3/${pkgname}-${pkgver}.tar.xz"
+        "http://sourceforge.net/projects/fetchmail/files/branch_6.3/${pkgname}-${pkgver}.tar.xz.asc"
+        'disable-sslv3.patch'
+        'fetchmail.tmpfiles' 'fetchmail.service')
+sha1sums=('de8dbe62a8edfa232ee4278257a1fe67aa1c797a'
+          'SKIP'
+          'dab3bf46b033e8ee7cadc020c1fb4ce325f46693'
+          '199ba749c829f22286c34aabcf8b7dd5bbd7c0e6'
+          '0fc1870a33d1e0efb70169ddf1b6adc9d253e076')
+validpgpkeys=('FDD00C436E3307E10758C6A8BE618339052E7D95')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i ../disable-sslv3.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' fetchmailconf.py
+  PYTHON=python2 ./configure --prefix=/usr --with-ssl=/usr
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -d -o 90 -g nobody "${pkgdir}/var/lib/fetchmail"
+  install -D -m644 ${srcdir}/fetchmail.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/fetchmail.conf
+  install -D -m644 ${srcdir}/fetchmail.service ${pkgdir}/usr/lib/systemd/system/fetchmail.service
+}

Copied: fetchmail/repos/staging-i686/disable-sslv3.patch (from rev 260669, fetchmail/trunk/disable-sslv3.patch)
===================================================================
--- staging-i686/disable-sslv3.patch	                        (rev 0)
+++ staging-i686/disable-sslv3.patch	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1,20 @@
+diff -u -r fetchmail-6.3.26/socket.c fetchmail-6.3.26-nossl3/socket.c
+--- fetchmail-6.3.26/socket.c	2013-04-23 22:00:45.000000000 +0200
++++ fetchmail-6.3.26-nossl3/socket.c	2016-03-03 18:18:46.688881618 +0100
+@@ -907,14 +907,11 @@
+ 	_ssl_context[sock] = NULL;
+ 	if(myproto) {
+ 		if(!strcasecmp("ssl2",myproto)) {
+-#if HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0
+-			_ctx[sock] = SSL_CTX_new(SSLv2_client_method());
+-#else
+ 			report(stderr, GT_("Your operating system does not support SSLv2.\n"));
+ 			return -1;
+-#endif
+ 		} else if(!strcasecmp("ssl3",myproto)) {
+-			_ctx[sock] = SSL_CTX_new(SSLv3_client_method());
++			report(stderr, GT_("Your operating system does not support SSLv3.\n"));
++			return -1;
+ 		} else if(!strcasecmp("tls1",myproto)) {
+ 			_ctx[sock] = SSL_CTX_new(TLSv1_client_method());
+ 		} else if (!strcasecmp("ssl23",myproto)) {

Copied: fetchmail/repos/staging-i686/fetchmail.install (from rev 260669, fetchmail/trunk/fetchmail.install)
===================================================================
--- staging-i686/fetchmail.install	                        (rev 0)
+++ staging-i686/fetchmail.install	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1,19 @@
+post_install() {
+  # /etc/fetchmail must be owned by fetchmail for daemon to work.
+  echo "If you run fetchmail as a daemon and not a cron job"
+  echo "then 'chown fetchmail /etc/fetchmailrc'"
+  getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \
+      -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail
+  if [[ ! -d run/fetchmail ]]; then
+    usr/bin/systemd-tmpfiles --create fetchmail.conf
+  fi
+}
+
+post_upgrade() {
+  getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \
+      -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail
+
+  if [[ ! -d run/fetchmail ]]; then
+    usr/bin/systemd-tmpfiles --create fetchmail.conf
+  fi
+}

Copied: fetchmail/repos/staging-i686/fetchmail.service (from rev 260669, fetchmail/trunk/fetchmail.service)
===================================================================
--- staging-i686/fetchmail.service	                        (rev 0)
+++ staging-i686/fetchmail.service	2016-03-03 17:23:10 UTC (rev 260670)
@@ -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

Copied: fetchmail/repos/staging-i686/fetchmail.tmpfiles (from rev 260669, fetchmail/trunk/fetchmail.tmpfiles)
===================================================================
--- staging-i686/fetchmail.tmpfiles	                        (rev 0)
+++ staging-i686/fetchmail.tmpfiles	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1 @@
+d /run/fetchmail 700 fetchmail nobody

Copied: fetchmail/repos/staging-x86_64/PKGBUILD (from rev 260669, fetchmail/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1,45 @@
+# $Id$
+
+pkgname=fetchmail
+pkgver=6.3.26
+pkgrel=4
+pkgdesc="A remote-mail retrieval utility"
+arch=('i686' 'x86_64')
+url="http://www.fetchmail.info"
+license=('GPL')
+depends=('openssl')
+makedepends=('python2')
+optdepends=('tk: for using fetchmailconf'
+            'python2: for using fetchmailconf')
+options=('!makeflags')
+install='fetchmail.install'
+source=("http://sourceforge.net/projects/fetchmail/files/branch_6.3/${pkgname}-${pkgver}.tar.xz"
+        "http://sourceforge.net/projects/fetchmail/files/branch_6.3/${pkgname}-${pkgver}.tar.xz.asc"
+        'disable-sslv3.patch'
+        'fetchmail.tmpfiles' 'fetchmail.service')
+sha1sums=('de8dbe62a8edfa232ee4278257a1fe67aa1c797a'
+          'SKIP'
+          'dab3bf46b033e8ee7cadc020c1fb4ce325f46693'
+          '199ba749c829f22286c34aabcf8b7dd5bbd7c0e6'
+          '0fc1870a33d1e0efb70169ddf1b6adc9d253e076')
+validpgpkeys=('FDD00C436E3307E10758C6A8BE618339052E7D95')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i ../disable-sslv3.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' fetchmailconf.py
+  PYTHON=python2 ./configure --prefix=/usr --with-ssl=/usr
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -d -o 90 -g nobody "${pkgdir}/var/lib/fetchmail"
+  install -D -m644 ${srcdir}/fetchmail.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/fetchmail.conf
+  install -D -m644 ${srcdir}/fetchmail.service ${pkgdir}/usr/lib/systemd/system/fetchmail.service
+}

Copied: fetchmail/repos/staging-x86_64/disable-sslv3.patch (from rev 260669, fetchmail/trunk/disable-sslv3.patch)
===================================================================
--- staging-x86_64/disable-sslv3.patch	                        (rev 0)
+++ staging-x86_64/disable-sslv3.patch	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1,20 @@
+diff -u -r fetchmail-6.3.26/socket.c fetchmail-6.3.26-nossl3/socket.c
+--- fetchmail-6.3.26/socket.c	2013-04-23 22:00:45.000000000 +0200
++++ fetchmail-6.3.26-nossl3/socket.c	2016-03-03 18:18:46.688881618 +0100
+@@ -907,14 +907,11 @@
+ 	_ssl_context[sock] = NULL;
+ 	if(myproto) {
+ 		if(!strcasecmp("ssl2",myproto)) {
+-#if HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0
+-			_ctx[sock] = SSL_CTX_new(SSLv2_client_method());
+-#else
+ 			report(stderr, GT_("Your operating system does not support SSLv2.\n"));
+ 			return -1;
+-#endif
+ 		} else if(!strcasecmp("ssl3",myproto)) {
+-			_ctx[sock] = SSL_CTX_new(SSLv3_client_method());
++			report(stderr, GT_("Your operating system does not support SSLv3.\n"));
++			return -1;
+ 		} else if(!strcasecmp("tls1",myproto)) {
+ 			_ctx[sock] = SSL_CTX_new(TLSv1_client_method());
+ 		} else if (!strcasecmp("ssl23",myproto)) {

Copied: fetchmail/repos/staging-x86_64/fetchmail.install (from rev 260669, fetchmail/trunk/fetchmail.install)
===================================================================
--- staging-x86_64/fetchmail.install	                        (rev 0)
+++ staging-x86_64/fetchmail.install	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1,19 @@
+post_install() {
+  # /etc/fetchmail must be owned by fetchmail for daemon to work.
+  echo "If you run fetchmail as a daemon and not a cron job"
+  echo "then 'chown fetchmail /etc/fetchmailrc'"
+  getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \
+      -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail
+  if [[ ! -d run/fetchmail ]]; then
+    usr/bin/systemd-tmpfiles --create fetchmail.conf
+  fi
+}
+
+post_upgrade() {
+  getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \
+      -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail
+
+  if [[ ! -d run/fetchmail ]]; then
+    usr/bin/systemd-tmpfiles --create fetchmail.conf
+  fi
+}

Copied: fetchmail/repos/staging-x86_64/fetchmail.service (from rev 260669, fetchmail/trunk/fetchmail.service)
===================================================================
--- staging-x86_64/fetchmail.service	                        (rev 0)
+++ staging-x86_64/fetchmail.service	2016-03-03 17:23:10 UTC (rev 260670)
@@ -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

Copied: fetchmail/repos/staging-x86_64/fetchmail.tmpfiles (from rev 260669, fetchmail/trunk/fetchmail.tmpfiles)
===================================================================
--- staging-x86_64/fetchmail.tmpfiles	                        (rev 0)
+++ staging-x86_64/fetchmail.tmpfiles	2016-03-03 17:23:10 UTC (rev 260670)
@@ -0,0 +1 @@
+d /run/fetchmail 700 fetchmail nobody



More information about the arch-commits mailing list