diff options
Diffstat (limited to 'community/postfixadmin/APKBUILD')
-rw-r--r-- | community/postfixadmin/APKBUILD | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/community/postfixadmin/APKBUILD b/community/postfixadmin/APKBUILD index b8e29135917..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.2.4 +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="2bd7ae05addbaf3c6c7eebea16ec1e21b2c67c8e6161446ed82a9553c26c04e19c1ec9ce248a9b9df504df56d309590259e6f04907b04b593548028b40e40d47 postfixadmin-3.2.4.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 +" |