diff options
Diffstat (limited to 'extra/fetchmail')
-rw-r--r-- | extra/fetchmail/PKGBUILD | 5 | ||||
-rw-r--r-- | extra/fetchmail/fetchmail.install | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/extra/fetchmail/PKGBUILD b/extra/fetchmail/PKGBUILD index 796d84761..511538481 100644 --- a/extra/fetchmail/PKGBUILD +++ b/extra/fetchmail/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 124586 2011-05-23 05:55:07Z eric $ +# $Id: PKGBUILD 126284 2011-06-04 05:34:18Z eric $ # Maintainer: Aaron Griffin <aaron@archlinux.org> pkgname=fetchmail pkgver=6.3.19 -pkgrel=2 +pkgrel=3 pkgdesc="A remote-mail retrieval utility" arch=('i686' 'x86_64') url="http://fetchmail.berlios.de/" @@ -34,4 +34,5 @@ package() { make DESTDIR="${pkgdir}" install install -Dm755 "${srcdir}/fetchmail.rc" "${pkgdir}/etc/rc.d/fetchmail" install -Dm644 "${srcdir}/fetchmail.conf" "${pkgdir}/etc/conf.d/fetchmail" + install -d "${pkgdir}/var/lib/fetchmail" } diff --git a/extra/fetchmail/fetchmail.install b/extra/fetchmail/fetchmail.install index 711cbe568..0b1cc6ae3 100644 --- a/extra/fetchmail/fetchmail.install +++ b/extra/fetchmail/fetchmail.install @@ -3,15 +3,15 @@ post_install() { 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/run/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail + -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail } post_upgrade() { getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \ - -d '/var/run/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail + -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail - if [ "$(vercmp $2 6.3.19)" -lt 0 ] ; then - chsh -s /bin/false fetchmail + if [ "$(vercmp $2 6.3.19-3)" -lt 0 ] ; then + usermod -d '/var/lib/fetchmail' -s /bin/false fetchmail fi } |