# Contributor: Sergei Lukin # Contributor: Natanael Copa # Maintainer: Natanael Copa _php=php81 pkgname=postfixadmin pkgver=3.3.11 pkgrel=1 pkgdesc="Web Based Management tool for Postfix" url="https://postfixadmin.sourceforge.net/" 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: # 3.0.2-r0: # - CVE-2017-5930 builddir="$srcdir/$pkgname-$pkgname-$pkgver" package() { mkdir -p "$pkgdir"/usr/share/webapps/postfixadmin \ "$pkgdir"/etc/postfixadmin cp -r * "$pkgdir"/usr/share/webapps/postfixadmin/ # move config to /etc/postfixadmin and create symlink mv "$pkgdir"/usr/share/webapps/postfixadmin/config.inc.php \ "$pkgdir"/etc/postfixadmin/ ln -s /etc/postfixadmin/config.inc.php \ "$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 } 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=" 84b22fd1d162f723440fbfb9e20c01d7ddc7481556e340a80fda66658687878fd1668d164a216daed9badf4d2e308c958b0f678f7a4dc6a2af748e435a066072 postfixadmin-3.3.11.tar.gz "