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

Pierre Schmitz pierre at nymeria.archlinux.org
Tue Mar 19 19:05:20 UTC 2013


    Date: Tuesday, March 19, 2013 @ 20:05:19
  Author: pierre
Revision: 180292

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

Added:
  fetchmail/repos/testing-i686/
  fetchmail/repos/testing-i686/PKGBUILD
    (from rev 180291, fetchmail/trunk/PKGBUILD)
  fetchmail/repos/testing-i686/fetchmail.install
    (from rev 180291, fetchmail/trunk/fetchmail.install)
  fetchmail/repos/testing-i686/fetchmail.service
    (from rev 180291, fetchmail/trunk/fetchmail.service)
  fetchmail/repos/testing-i686/fetchmail.tmpfiles
    (from rev 180291, fetchmail/trunk/fetchmail.tmpfiles)
  fetchmail/repos/testing-x86_64/
  fetchmail/repos/testing-x86_64/PKGBUILD
    (from rev 180291, fetchmail/trunk/PKGBUILD)
  fetchmail/repos/testing-x86_64/fetchmail.install
    (from rev 180291, fetchmail/trunk/fetchmail.install)
  fetchmail/repos/testing-x86_64/fetchmail.service
    (from rev 180291, fetchmail/trunk/fetchmail.service)
  fetchmail/repos/testing-x86_64/fetchmail.tmpfiles
    (from rev 180291, fetchmail/trunk/fetchmail.tmpfiles)

-----------------------------------+
 testing-i686/PKGBUILD             |   38 ++++++++++++++++++++++++++++++++++++
 testing-i686/fetchmail.install    |   26 ++++++++++++++++++++++++
 testing-i686/fetchmail.service    |   11 ++++++++++
 testing-i686/fetchmail.tmpfiles   |    1 
 testing-x86_64/PKGBUILD           |   38 ++++++++++++++++++++++++++++++++++++
 testing-x86_64/fetchmail.install  |   26 ++++++++++++++++++++++++
 testing-x86_64/fetchmail.service  |   11 ++++++++++
 testing-x86_64/fetchmail.tmpfiles |    1 
 8 files changed, 152 insertions(+)

Copied: fetchmail/repos/testing-i686/PKGBUILD (from rev 180291, fetchmail/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1,38 @@
+# $Id$
+
+pkgname=fetchmail
+pkgver=6.3.25
+pkgrel=1
+pkgdesc="A remote-mail retrieval utility"
+arch=('i686' 'x86_64')
+url="http://fetchmail.berlios.de/"
+license=('GPL')
+depends=('openssl')
+makedepends=('python2')
+optdepends=('tk: for using fetchmailconf'
+            'python2: for using fetchmailconf')
+backup=('etc/conf.d/fetchmail')
+options=('!makeflags')
+install='fetchmail.install'
+source=("http://download.berlios.de/$pkgname/${pkgname}-${pkgver}.tar.xz"
+        "http://download.berlios.de/$pkgname/${pkgname}-${pkgver}.tar.xz.asc"
+        'fetchmail.tmpfiles' 'fetchmail.service')
+sha1sums=('a246a6a3caf90e1106448c9dde4463e87d816031'
+          '9a7f76c9fd9f85fc4b421e34fa8c15d2838d61fc'
+          '199ba749c829f22286c34aabcf8b7dd5bbd7c0e6'
+          '69caf3fd4d4446db3bf53144e4fa8edbdbbfcd10')
+
+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/testing-i686/fetchmail.install (from rev 180291, fetchmail/trunk/fetchmail.install)
===================================================================
--- testing-i686/fetchmail.install	                        (rev 0)
+++ testing-i686/fetchmail.install	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1,26 @@
+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 [ "$(vercmp $2 6.3.19-3)" -lt 0 ] ; then
+    usermod -d '/var/lib/fetchmail' -s /bin/false fetchmail
+  fi
+  if [[ ! -d run/fetchmail ]]; then
+    usr/bin/systemd-tmpfiles --create fetchmail.conf
+  fi
+}
+
+pre_remove() {
+  usr/sbin/userdel fetchmail &>/dev/null
+}

Copied: fetchmail/repos/testing-i686/fetchmail.service (from rev 180291, fetchmail/trunk/fetchmail.service)
===================================================================
--- testing-i686/fetchmail.service	                        (rev 0)
+++ testing-i686/fetchmail.service	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1,11 @@
+[Unit]
+Description=A remote-mail retrieval utility
+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/testing-i686/fetchmail.tmpfiles (from rev 180291, fetchmail/trunk/fetchmail.tmpfiles)
===================================================================
--- testing-i686/fetchmail.tmpfiles	                        (rev 0)
+++ testing-i686/fetchmail.tmpfiles	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1 @@
+d /run/fetchmail 700 fetchmail nobody

Copied: fetchmail/repos/testing-x86_64/PKGBUILD (from rev 180291, fetchmail/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1,38 @@
+# $Id$
+
+pkgname=fetchmail
+pkgver=6.3.25
+pkgrel=1
+pkgdesc="A remote-mail retrieval utility"
+arch=('i686' 'x86_64')
+url="http://fetchmail.berlios.de/"
+license=('GPL')
+depends=('openssl')
+makedepends=('python2')
+optdepends=('tk: for using fetchmailconf'
+            'python2: for using fetchmailconf')
+backup=('etc/conf.d/fetchmail')
+options=('!makeflags')
+install='fetchmail.install'
+source=("http://download.berlios.de/$pkgname/${pkgname}-${pkgver}.tar.xz"
+        "http://download.berlios.de/$pkgname/${pkgname}-${pkgver}.tar.xz.asc"
+        'fetchmail.tmpfiles' 'fetchmail.service')
+sha1sums=('a246a6a3caf90e1106448c9dde4463e87d816031'
+          '9a7f76c9fd9f85fc4b421e34fa8c15d2838d61fc'
+          '199ba749c829f22286c34aabcf8b7dd5bbd7c0e6'
+          '69caf3fd4d4446db3bf53144e4fa8edbdbbfcd10')
+
+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/testing-x86_64/fetchmail.install (from rev 180291, fetchmail/trunk/fetchmail.install)
===================================================================
--- testing-x86_64/fetchmail.install	                        (rev 0)
+++ testing-x86_64/fetchmail.install	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1,26 @@
+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 [ "$(vercmp $2 6.3.19-3)" -lt 0 ] ; then
+    usermod -d '/var/lib/fetchmail' -s /bin/false fetchmail
+  fi
+  if [[ ! -d run/fetchmail ]]; then
+    usr/bin/systemd-tmpfiles --create fetchmail.conf
+  fi
+}
+
+pre_remove() {
+  usr/sbin/userdel fetchmail &>/dev/null
+}

Copied: fetchmail/repos/testing-x86_64/fetchmail.service (from rev 180291, fetchmail/trunk/fetchmail.service)
===================================================================
--- testing-x86_64/fetchmail.service	                        (rev 0)
+++ testing-x86_64/fetchmail.service	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1,11 @@
+[Unit]
+Description=A remote-mail retrieval utility
+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/testing-x86_64/fetchmail.tmpfiles (from rev 180291, fetchmail/trunk/fetchmail.tmpfiles)
===================================================================
--- testing-x86_64/fetchmail.tmpfiles	                        (rev 0)
+++ testing-x86_64/fetchmail.tmpfiles	2013-03-19 19:05:19 UTC (rev 180292)
@@ -0,0 +1 @@
+d /run/fetchmail 700 fetchmail nobody




More information about the arch-commits mailing list