[arch-commits] Commit in postfix/trunk (PKGBUILD install sysusers.d)
Gaëtan Bisson
bisson at archlinux.org
Sat Dec 16 22:35:52 UTC 2017
Date: Saturday, December 16, 2017 @ 22:35:51
Author: bisson
Revision: 312982
switch to systemd-sysusers
Added:
postfix/trunk/sysusers.d
Modified:
postfix/trunk/PKGBUILD
Deleted:
postfix/trunk/install
------------+
PKGBUILD | 7 ++++---
install | 16 ----------------
sysusers.d | 2 ++
3 files changed, 6 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-16 22:04:46 UTC (rev 312981)
+++ PKGBUILD 2017-12-16 22:35:51 UTC (rev 312982)
@@ -5,7 +5,7 @@
pkgname=postfix
pkgver=3.2.4
-pkgrel=2
+pkgrel=3
url='http://www.postfix.org/'
pkgdesc='Fast, easy to administer, secure mail server'
license=('custom')
@@ -14,9 +14,11 @@
'libmariadbclient' 'postgresql-libs' 'sqlite' 'tinycdb')
source=("ftp://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${pkgver}.tar.gz"
'aliases.patch'
+ 'sysusers.d'
'service')
sha256sums=('ec55ebaa2aa464792af8d5ee103eb68b27a42dc2b36a02fee42dafbf9740c7f6'
'f4c766efc20b4638f9fd72707ca6d4c2628279ebd79f5227276fa4ca6867c336'
+ '63f39147887336bdd173fb9425998f0a0c6f00a31241f922a255c157bfd8d02e'
'52781649c49a50cecd7d20f693f602d7dc78b985ac5f0e72c4abfa0d800e58f0')
backup=('etc/postfix/'{access,aliases,canonical,generic,header_checks,main.cf,master.cf,relocated,transport,virtual})
@@ -25,8 +27,6 @@
provides=('smtp-server' 'smtp-forwarder' 'postfix-tools')
replaces=('postfix-tools')
-install=install
-
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -73,6 +73,7 @@
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 ../service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+ install -Dm644 ../sysusers.d "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
for name in posttls-finger {smtp,qmqp}-{sink,source}; do
install -Dm644 "man/man1/${name}.1" "${pkgdir}/usr/share/man/man1/${name}.1"
Deleted: install
===================================================================
--- install 2017-12-16 22:04:46 UTC (rev 312981)
+++ install 2017-12-16 22:35:51 UTC (rev 312982)
@@ -1,16 +0,0 @@
-post_upgrade() {
- if [[ $(vercmp $2 3.0.0-3) -eq -1 ]]; then
- echo '==> The postfix daemon binaries have moved.'
- echo '==> Please restart postfix as soon as possible.'
- elif [[ $(vercmp $2 3.0.1-1) -eq -1 ]]; then
- echo '==> Several Postfix-internal protocols have changed.'
- echo '==> Please restart postfix as soon as possible.'
- fi
-}
-
-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
- true
-}
Added: sysusers.d
===================================================================
--- sysusers.d (rev 0)
+++ sysusers.d 2017-12-16 22:35:51 UTC (rev 312982)
@@ -0,0 +1,2 @@
+g postdrop 75 -
+u postfix 73 - /var/spool/postfix
More information about the arch-commits
mailing list