aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openxcap/APKBUILD
blob: 4ee40c401910907877ba4d4556e3fe7a0c30ad07 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=openxcap
pkgver=2.0.0
pkgrel=1
pkgdesc="Open source fully featured XCAP server "
url="http://openxcap.org"
pkgusers="openxcap"
pkggroups="openxcap"
arch="noarch"
license="GPL"
depends="python py-application py-gnutls py-twisted py-twisted-web2 py-imaging
	py-lxml py-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 -m644 -D "$srcdir"/config.ini \
	                "$pkgdir"/etc/openxcap/config.ini
        install -d -o openxcap "$pkgdir"/var/run/openxcap
}

md5sums="155b1ee85dd3217e5647ad3ac9f72cf6  openxcap-2.0.0.tar.gz
7a18872843586717eaf3879444cc13d2  config.ini
0043d28e9e6e51e03661755d12080a28  openxcap.initd"