aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-01-28 16:03:00 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-01-28 16:06:40 +0000
commit345181630b18d57a365b32ebe4c9ea4d30969add (patch)
tree0e1032b52767c9ebdf3c69a43cabd1e6546d6ad6
parent9e604064c4ef6920584b8b72531fe37f0376bc24 (diff)
downloadaports-345181630b18d57a365b32ebe4c9ea4d30969add.tar.gz
aports-345181630b18d57a365b32ebe4c9ea4d30969add.tar.bz2
aports-345181630b18d57a365b32ebe4c9ea4d30969add.tar.xz
main/postfix: fix postfix user creation
(cherry picked from commit 618047dfcae121feeaf42f43a913ccd52b9b12a4)
-rw-r--r--main/postfix/APKBUILD4
-rw-r--r--main/postfix/postfix.pre-install3
2 files changed, 5 insertions, 2 deletions
diff --git a/main/postfix/APKBUILD b/main/postfix/APKBUILD
index 1c0b86f514..61ae147400 100644
--- a/main/postfix/APKBUILD
+++ b/main/postfix/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postfix
pkgver=3.0.3
-pkgrel=0
+pkgrel=1
pkgdesc="Secure and fast drop-in replacement for Sendmail (MTA)"
url="http://www.postfix.org/"
arch="all"
@@ -14,6 +14,8 @@ install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-ldap $pkgname-mysql $pkgname-pcre
$pkgname-pgsql $pkgname-sqlite"
options="suid"
+pkgusers="postfix"
+pkggroups="postfix postdrop"
source="ftp://ftp.porcupine.org/mirrors/$pkgname-release/official/$pkgname-$pkgver.tar.gz
$pkgname.initd
no-glibc.patch
diff --git a/main/postfix/postfix.pre-install b/main/postfix/postfix.pre-install
index f004ff658d..c3fc668dc9 100644
--- a/main/postfix/postfix.pre-install
+++ b/main/postfix/postfix.pre-install
@@ -2,7 +2,8 @@
addgroup -S postfix 2>/dev/null
addgroup -S postdrop 2>/dev/null
-adduser -S -h /var/spool/postfix -G postfix,mail postfix 2>/dev/null
+adduser -S -h /var/spool/postfix -G postfix postfix 2>/dev/null
+addgroup postfix mail 2>/dev/null
adduser -S -H -s /sbin/nologin -h /var/mail/domains -G postdrop vmail 2>/dev/null