diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/postfix/APKBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/main/postfix/APKBUILD b/main/postfix/APKBUILD index 5e155f5ad9..27f7400975 100644 --- a/main/postfix/APKBUILD +++ b/main/postfix/APKBUILD @@ -29,9 +29,9 @@ _shared_libs() { awk -F: '$2 ~ /sharedlib/ {print $1}' } -_builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd $_builddir + cd $builddir for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; @@ -45,7 +45,7 @@ prepare() { } build() { - cd $_builddir + cd $builddir # needed for dynamic maps. local ccargs="-DHAS_SHL_LOAD -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\"" local auxlibs="$LDFLAGS" @@ -108,7 +108,8 @@ d } package() { - cd $_builddir + cd "$builddir" + make non-interactive-package \ install_root="$pkgdir" \ readme_directory=/usr/share/doc/$pkgname/readme \ @@ -128,7 +129,7 @@ package() { mv "$pkgdir"/etc/postfix/*LICENSE* \ "$pkgdir"/usr/share/licenses/${pkgname}/ || return 1 - install -d -o postfix -g postfix "$pkgdir"/var/spool/postfix + chown postfix:postfix "$pkgdir"/var/spool/postfix install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname chown postfix "$pkgdir"/var/spool/postfix/* "$pkgdir"/var/lib/postfix \ || return 1 @@ -163,7 +164,7 @@ pgsql() { _mv_dict pgsql ; } sqlite() { _mv_dict sqlite ; } stone() { - cd $_builddir + cd $builddir pkgdesc="Postfix simulation and testing tools" install -Dm755 src/fsstone/fsstone "$subpkgdir"/usr/bin/fsstone find src/smtpstone -perm 0755 -exec cp {} "$subpkgdir"/usr/bin \; |