blob: 4cff510c5c34fb207b1d856d6781fac33c202218 (
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
42
43
44
45
|
# 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.1
pkgrel=0
pkgdesc="Web Based Management tool for Postfix"
url="http://postfixadmin.com/"
arch="noarch"
license="GPL"
depends="$_php"
options="!check"
source="http://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-$pkgver/postfixadmin-$pkgver.tar.gz"
# secfixes:
# 3.0.2-r0:
# - CVE-2017-5930
builddir="$srcdir"/postfixadmin-$pkgver
prepare() {
default_prepare || return 1
}
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="a3e1ecb3ac4ff4d604533bce532694bcc304b9b3d3e1b1ec840be6d007027705113f067393486f58908dd3846332ecf59c9c3c1a5123d03aa088f47593a75812 postfixadmin-3.1.tar.gz"
|