summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-24 20:36:08 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-24 20:36:08 +0000
commitef5b896a929fe3189b15fc43cafcfd145582dfe6 (patch)
treee380dcffcaedd549e273296437ac9ce660cdce45
parent68c67744c95645f7d3a81466cad56b8e43649f26 (diff)
downloadpackages-ef5b896a929fe3189b15fc43cafcfd145582dfe6.tar.gz
packages-ef5b896a929fe3189b15fc43cafcfd145582dfe6.tar.bz2
packages-ef5b896a929fe3189b15fc43cafcfd145582dfe6.tar.xz
packages-ef5b896a929fe3189b15fc43cafcfd145582dfe6.zip
user/postfix: add OpenRC script properly, fix permissions
-rw-r--r--user/postfix/APKBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/user/postfix/APKBUILD b/user/postfix/APKBUILD
index a48fcc7bd..5269c55bd 100644
--- a/user/postfix/APKBUILD
+++ b/user/postfix/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=postfix
pkgver=3.3.2
-pkgrel=0
+pkgrel=1
pkgdesc="Mail server (MTA) that is Sendmail outside and Qmail inside"
url="http://www.postfix.org/"
arch="all"
@@ -12,8 +12,8 @@ depends=""
makedepends="cyrus-sasl-dev db-dev icu-dev linux-pam-dev lmdb-dev openldap-dev
openssl-dev pcre-dev perl postgresql-dev sqlite-dev"
install="$pkgname.pre-install"
-subpackages="$pkgname-doc $pkgname-ldap $pkgname-lmdb $pkgname-pgsql
- $pkgname-sqlite"
+subpackages="$pkgname-doc $pkgname-ldap $pkgname-lmdb $pkgname-openrc
+ $pkgname-pgsql $pkgname-sqlite"
pkgusers="postfix"
pkggroups="postfix postdrop"
source="http://www.namesdir.com/mirrors/postfix-release/official/postfix-$pkgver.tar.gz
@@ -52,12 +52,16 @@ package() {
!var/spool/postfix
EOF
+ chown -R root:postfix \
+ "$pkgdir"/var/lib/postfix
chown -R postfix:postfix \
- "$pkgdir"/var/lib/postfix \
"$pkgdir"/var/spool/postfix
+ chgrp postdrop "$pkgdir"/var/spool/postfix/{public,maildrop}
chmod 0750 "$pkgdir"/var/lib/postfix
chgrp postdrop "$pkgdir"/usr/sbin/postdrop "$pkgdir"/usr/sbin/postqueue
chmod 2755 "$pkgdir"/usr/sbin/postdrop "$pkgdir"/usr/sbin/postqueue
+
+ install -D -m755 "$srcdir"/postfix.initd "$pkgdir"/etc/init.d/postfix
}
_database() {