summaryrefslogtreecommitdiff
path: root/extra/postfix
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-02-18 10:00:02 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-02-18 10:00:02 +0100
commit5b55de83000374d4ef867e32bc248e37a192bb00 (patch)
treed9c44a35082b26c62e4be4f78efd032088ab32ec /extra/postfix
parente07d778c19291820ea2c9612cfa83489d090748b (diff)
parent29883fd322e5c6464bf44e9eaa31b17790461bd0 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: extra/shared-mime-info/PKGBUILD
Diffstat (limited to 'extra/postfix')
-rw-r--r--extra/postfix/PKGBUILD4
-rw-r--r--extra/postfix/install29
2 files changed, 9 insertions, 24 deletions
diff --git a/extra/postfix/PKGBUILD b/extra/postfix/PKGBUILD
index 77ad39087..dac0a1c5e 100644
--- a/extra/postfix/PKGBUILD
+++ b/extra/postfix/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 177942 2013-02-12 02:33:16Z bisson $
+# $Id: PKGBUILD 178150 2013-02-17 00:23:28Z bisson $
# Contributor: Jeff Brodnax <tullyarcher@bellsouth.net>
# Contributor: Paul Mattal <paul@archlinux.org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
pkgname=postfix
pkgver=2.10.0
-pkgrel=1
+pkgrel=2
pkgdesc='Fast, easy to administer, secure mail server'
url='http://www.postfix.org/'
license=('custom')
diff --git a/extra/postfix/install b/extra/postfix/install
index cb97e2e6c..7230359fc 100644
--- a/extra/postfix/install
+++ b/extra/postfix/install
@@ -1,33 +1,18 @@
+post_upgrade() {
+ /usr/lib/postfix/post-install daemon_directory=/usr/lib/postfix upgrade-package
+ chown postfix var/lib/postfix
+}
+
post_install() {
getent group postdrop &>/dev/null || groupadd -g 75 postdrop >/dev/null
getent group postfix &>/dev/null || groupadd -g 73 postfix >/dev/null
getent passwd postfix &>/dev/null || useradd -u 73 -d /var/spool/postfix -g postfix -s /bin/false postfix >/dev/null
-
- cd var/spool/postfix
- chown postfix active bounce corrupt defer deferred flush hold incoming private public maildrop trace saved
- chgrp postdrop public maildrop
- cd ../../../usr/sbin
- chgrp postdrop postqueue postdrop
- chmod g+s postqueue postdrop
- cd ../..
- chown postfix var/lib/postfix
-
- newaliases
-}
-
-post_upgrade() {
- post_install
-
- if [ `vercmp $2 2.9.0` = -1 ]; then cat <<EOF
-
-==> You must now run "postfix reload" due to inter-daemon protocol change.
-
-EOF
- fi
+ post_upgrade
}
pre_remove() {
getent passwd postfix &>/dev/null && userdel postfix >/dev/null
getent group postfix &>/dev/null && groupdel postfix >/dev/null
getent group postdrop &>/dev/null && groupdel postdrop >/dev/null
+ true
}