blob: 9845a2d732339e05210873a67dfa95fcedee7b60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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"
|