aboutsummaryrefslogtreecommitdiffstats
path: root/main/postfixadmin/APKBUILD
blob: 7d280a79bfcfb24dc806ae9510101fbc7f6a3a70 (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
46
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postfixadmin
pkgver=2.3.7
pkgrel=0
pkgdesc="Web Based Management tool for Postfix"
url="http://postfixadmin.com/"
arch="noarch"
license="GPL"
depends="php postfix"
makedepends=""
install=""
subpackages=""
source="http://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-$pkgver/postfixadmin-$pkgver.tar.gz"

_builddir="$srcdir"/postfixadmin-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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
}

md5sums="35265807e815fbfbec5d7246e5b5e978  postfixadmin-2.3.7.tar.gz"
sha256sums="761074e711ab618deda425dc013133b9d5968e0859bb883f10164061fd87006e  postfixadmin-2.3.7.tar.gz"
sha512sums="2d217874832bb3e70b200d7ddadcfdc81f0e9d3119bb54070fd645e055e4fd69b8fd9470b88af630a38c4053f4dd132425448b0dbe6525966aa5a4a2d8a1e7d0  postfixadmin-2.3.7.tar.gz"