diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-09 09:50:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-09 09:50:47 +0000 |
commit | 01a2df4077ec994413a07ee3bf094fb6e560dba2 (patch) | |
tree | 23bd55425d0eb0820c713d1da89ae2bb9f85cd67 /extra/postfix | |
parent | a8c1cbfd6a50aa3dbeb216eb83134f27bfb9d3b2 (diff) | |
download | aports-01a2df4077ec994413a07ee3bf094fb6e560dba2.tar.bz2 aports-01a2df4077ec994413a07ee3bf094fb6e560dba2.tar.xz |
extra/postfix: slit install script to .pre-install and .post-install
we also needed a rebuild with linking to correct db
Diffstat (limited to 'extra/postfix')
-rw-r--r-- | extra/postfix/APKBUILD | 7 | ||||
-rw-r--r-- | extra/postfix/postfix.install | 13 | ||||
-rw-r--r-- | extra/postfix/postfix.post-install | 6 | ||||
-rw-r--r-- | extra/postfix/postfix.pre-install | 7 |
4 files changed, 17 insertions, 16 deletions
diff --git a/extra/postfix/APKBUILD b/extra/postfix/APKBUILD index a015f5922f..a79598af87 100644 --- a/extra/postfix/APKBUILD +++ b/extra/postfix/APKBUILD @@ -1,13 +1,13 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=postfix pkgver=2.5.6 -pkgrel=1 +pkgrel=2 pkgdesc="Secure and fast drop-in replacement for Sendmail (MTA)" url="http://www.postfix.org/" license="IPL-1" depends="db pcre openssl" makedepends="db-dev pcre-dev openssl-dev" -install=postfix.install +install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-doc" source="ftp://ftp.porcupine.org/mirrors/$pkgname-release/official/$pkgname-$pkgver.tar.gz $pkgname.initd @@ -53,4 +53,5 @@ build () { } md5sums="ec2cb63b53f5f36c3ca91da8f3bc9407 postfix-2.5.6.tar.gz 8416354d402f3be288fa98b60af86240 postfix.initd -a62143036f227a7e781b57a97457d180 postfix.install" +2bfc3864183694e5484ac073bb0cb7ef postfix.pre-install +0064d45c2c8a46c374b55c4abc46cfb2 postfix.post-install" diff --git a/extra/postfix/postfix.install b/extra/postfix/postfix.install deleted file mode 100644 index d2d0813a16..0000000000 --- a/extra/postfix/postfix.install +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -case "$1" in - pre_install) - addgroup postfix 2>/dev/null - addgroup postdrop 2>/dev/null - adduser postfix -h /var/spool/postfix -G postfix,mail 2>/dev/null - ;; - post_install) - chown postfix /var/spool/postfix/* /var/lib/postfix - chgrp postdrop /var/spool/postfix/maildrop /var/spool/postfix/public -esac -exit 0 diff --git a/extra/postfix/postfix.post-install b/extra/postfix/postfix.post-install new file mode 100644 index 0000000000..98e01db0bb --- /dev/null +++ b/extra/postfix/postfix.post-install @@ -0,0 +1,6 @@ +#!/bin/sh + +chown postfix /var/spool/postfix/* /var/lib/postfix +chgrp postdrop /var/spool/postfix/maildrop /var/spool/postfix/public + +exit 0 diff --git a/extra/postfix/postfix.pre-install b/extra/postfix/postfix.pre-install new file mode 100644 index 0000000000..22414ef615 --- /dev/null +++ b/extra/postfix/postfix.pre-install @@ -0,0 +1,7 @@ +#!/bin/sh + +addgroup postfix 2>/dev/null +addgroup postdrop 2>/dev/null +adduser postfix -h /var/spool/postfix -G postfix,mail 2>/dev/null + +exit 0 |