summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-06 07:00:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-06 07:02:21 +0000
commita6b596a7674ba7b46e0bce85fd9ebf6909188846 (patch)
tree70d4e8c2052fd0fa9e7672d7acd952164f32630b /testing
parent3bea9d5e13f8f936fdc61aca3c65b4959ee02fb6 (diff)
downloadaports-a6b596a7674ba7b46e0bce85fd9ebf6909188846.tar.bz2
aports-a6b596a7674ba7b46e0bce85fd9ebf6909188846.tar.xz
testing/postfixadmin: new aport
Web Based Management tool for Postfix http://postfixadmin.com/ ref #610
Diffstat (limited to 'testing')
-rw-r--r--testing/postfixadmin/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/postfixadmin/APKBUILD b/testing/postfixadmin/APKBUILD
new file mode 100644
index 000000000..8043f1a0d
--- /dev/null
+++ b/testing/postfixadmin/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=postfixadmin
+pkgver=2.3.3
+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="0dfcd8a4535e00aced45c82dbcedf859 postfixadmin-2.3.3.tar.gz"