diff options
Diffstat (limited to 'community/postfixadmin/APKBUILD')
-rw-r--r-- | community/postfixadmin/APKBUILD | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/community/postfixadmin/APKBUILD b/community/postfixadmin/APKBUILD index e88a08987db..28e50916f04 100644 --- a/community/postfixadmin/APKBUILD +++ b/community/postfixadmin/APKBUILD @@ -1,16 +1,17 @@ # Contributor: Sergei Lukin <sergej.lukin@gmail.com> # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> -_php=php7 +_php=php82 pkgname=postfixadmin -pkgver=3.3.8 -pkgrel=0 +pkgver=3.3.13 +pkgrel=1 pkgdesc="Web Based Management tool for Postfix" -url="http://postfixadmin.sourceforge.net/" +url="https://postfixadmin.github.io/postfixadmin/" arch="noarch" license="GPL-2.0-or-later" depends="$_php" options="!check" +subpackages="$pkgname-doc $pkgname-contrib" source="https://github.com/postfixadmin/postfixadmin/archive/postfixadmin-$pkgver.tar.gz" # secfixes: @@ -31,8 +32,26 @@ package() { "$pkgdir"/usr/share/webapps/postfixadmin/config.inc.php ln -s /etc/postfixadmin/config.local.php \ "$pkgdir"/usr/share/webapps/postfixadmin/config.local.php + mkdir -p "$pkgdir"/var/cache/postfixadmin/templates_c + ln -s /var/cache/postfixadmin/templates_c \ + "$pkgdir"/usr/share/webapps/postfixadmin/templates_c echo -e "User-Agent: *\nDisallow: /" \ > "$pkgdir"/usr/share/webapps/postfixadmin/robots.txt } -sha512sums="bfe5d874083568f1e8b1830394338d2aa29e39e30834d4c8c728836495f12f6d49c65b83b1fae1fce20e7456afaef0058320033866b720a5858911ceec22a022 postfixadmin-3.3.8.tar.gz" +doc() { + install -d "$subpkgdir"/usr/share/doc/$pkgname + mv "$builddir"/*.TXT "$subpkgdir"/usr/share/doc/$pkgname + mv "$builddir"/DOCUMENTS "$subpkgdir"/usr/share/doc/$pkgname +} + +contrib() { + install -d "$subpkgdir"/usr/share/webapps/$pkgname + for dir in debian ADDITIONS VIRTUAL_VACATION; do + mv "$builddir"/$dir "$subpkgdir"/usr/share/webapps/$pkgname/ + done +} + +sha512sums=" +bf7daaa089ee3adc4b557f1a7d0509d78979ef688fb725bab795f5c9d81e8774296245fde0cb184db51e9185cad381682c3ecc0bfadf852388b499a0a95cca64 postfixadmin-3.3.13.tar.gz +" |