summaryrefslogtreecommitdiff
path: root/extra/fetchmail
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-05 22:48:57 +0000
committerroot <root@rshg047.dnsready.net>2011-06-05 22:48:57 +0000
commit3695b5d62c2aef6e82abc95d775a2ebd89bce081 (patch)
treedb3a874c568e5f5ad3dfe651ceda1df63d5f354f /extra/fetchmail
parent80ba845c7cb571644d9dea61b9872c393d128c37 (diff)
Sun Jun 5 22:48:57 UTC 2011
Diffstat (limited to 'extra/fetchmail')
-rw-r--r--extra/fetchmail/PKGBUILD5
-rw-r--r--extra/fetchmail/fetchmail.install8
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
}