aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openxcap/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-05-20 06:22:36 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-05-20 10:03:47 +0000
commit96ee98c664e964f813ea011974413a2fcf0c516d (patch)
treec50dfc811a066906c6372297a53c30db31fd7ab0 /testing/openxcap/APKBUILD
parent40446c186e93955efa055fb9dade491966e1cfe5 (diff)
downloadaports-96ee98c664e964f813ea011974413a2fcf0c516d.tar.bz2
aports-96ee98c664e964f813ea011974413a2fcf0c516d.tar.xz
testing/openxcap: new aport
Diffstat (limited to 'testing/openxcap/APKBUILD')
-rw-r--r--testing/openxcap/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/openxcap/APKBUILD b/testing/openxcap/APKBUILD
new file mode 100644
index 0000000000..c065028385
--- /dev/null
+++ b/testing/openxcap/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+
+pkgname=openxcap
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="Open source fully featured XCAP server "
+url="http://openxcap.org"
+pkgusers="openxcap"
+pkggroups="openxcap"
+license="GPL"
+depends="python python-application python-gnutls twisted twisted-web2 python-imaging python-lxml python-mysqldb"
+makedepends="python-dev"
+install="$pkgname.pre-install $pkgname.post-install"
+source="http://download.ag-projects.com/XCAP/$pkgname-$pkgver.tar.gz
+ config.ini
+ openxcap.initd
+"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
+
+ python setup.py install --root="$pkgdir" || return 1
+
+ echo "/usr/lib/python2.6/site-packages/$pkgname-$pkgver-py2.6.egg" \
+ > "$pkgdir"/usr/lib/python2.6/site-packages/$pkgname.pth
+
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -d -o openxcap "$pkgdir"/var/run/openxcap
+}
+
+md5sums="ec34570deee2019a1ebf9a012a476c26 openxcap-1.2.0.tar.gz
+7a18872843586717eaf3879444cc13d2 config.ini
+dad5f337c29c9e245846d9991d057b6e openxcap.initd"