diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-02 14:52:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-02 14:53:02 +0000 |
commit | 2d6ee89aef0c78c45e4d90daa2867a66281335cf (patch) | |
tree | 8aba8b9557dcefa2c7a9bdd7041ffd296a6de312 /main/postfixadmin | |
parent | 09e7d91f2305af10495b1810838720230537eaad (diff) | |
download | aports-2d6ee89aef0c78c45e4d90daa2867a66281335cf.tar.bz2 aports-2d6ee89aef0c78c45e4d90daa2867a66281335cf.tar.xz |
main/postfixadmin: moved from testing
fixes #610
Diffstat (limited to 'main/postfixadmin')
-rw-r--r-- | main/postfixadmin/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/postfixadmin/APKBUILD b/main/postfixadmin/APKBUILD new file mode 100644 index 0000000000..90a46fbb3a --- /dev/null +++ b/main/postfixadmin/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=postfixadmin +pkgver=2.3.5 +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="9a72ed8d827fa2c7f641001f2aa87814 postfixadmin-2.3.5.tar.gz" |