mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
|
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
_php=php7
|
|
pkgname=postfixadmin
|
|
pkgver=3.2.2
|
|
pkgrel=0
|
|
pkgdesc="Web Based Management tool for Postfix"
|
|
url="http://postfixadmin.com/"
|
|
arch="noarch"
|
|
license="GPL"
|
|
depends="$_php"
|
|
options="!check"
|
|
source="https://github.com/postfixadmin/$pkgname/archive/postfixadmin-$pkgver.tar.gz"
|
|
|
|
# secfixes:
|
|
# 3.0.2-r0:
|
|
# - CVE-2017-5930
|
|
|
|
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
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
|
|
echo -e "User-Agent: *\nDisallow: /" \
|
|
> "$pkgdir"/usr/share/webapps/postfixadmin/robots.txt
|
|
}
|
|
|
|
sha512sums="6c84cb215e69c52c26db0651e5d0d9d8bcb0a63b00d3c197f10fa1f0442a1fde44bb514fb476a1e68a21741d603febac67282961d01270e5969ee13d145121ee postfixadmin-3.2.2.tar.gz"
|