aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mediaproxy/APKBUILD
blob: 6ddd882d21fb0ca2405e49fedef667758ead89cf (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
# Contributor: 
# Maintainer: 
pkgname=mediaproxy
pkgver=2.3.8
pkgrel=1
pkgdesc="MediaProxy"
url="http://www.ag-projects.com/MediaProxy/"
license="GPL"
depends="python"
makedepends="libnetfilter_conntrack-dev libnfnetlink-dev python26-buildutils
	python26-setuptools python-application python-cjson python-gnutls python-dev twisted"
install=
subpackages=""
#subpackages="$pkgname-dev $pkgname-doc"
source="http://download.ag-projects.com/MediaProxy/$pkgname-$pkgver.tar.gz
	mediaproxy-dispatcher.initd
	mediaproxy-relay.initd
	config.ini
"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages

	python setup.py install --root="$pkgdir"

	echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth

	sed -i -e 's:net.ipv4.ip_forward = 0:net.ipv4.ip_forward = 1:' /etc/sysctl.conf

	install -D -m755 "$srcdir"/$pkgname-dispatcher.initd "$pkgdir"/etc/init.d/$pkgname-dispatcher
	install -D -m755 "$srcdir"/$pkgname-relay.initd "$pkgdir"/etc/init.d/$pkgname-relay
	install -D -m755 "$srcdir"/config.ini "$pkgdir"/etc/mediaproxy/config.ini
	install -d -o kamailio "$pkgdir"/etc/mediaproxy/tls/
	install -d -o kamailio "$pkgdir"/var/run/$pkgname
}

md5sums="8914a2b69415946e5ffdb843823b3ef1  mediaproxy-2.3.8.tar.gz
7fa7907b87777281c31e5ff49d8d5011  mediaproxy-dispatcher.initd
842beb8bca2dbbf16a092fbc27ee4ac2  mediaproxy-relay.initd
2e58c2bc3e5984f74f01e3c701fa3467  config.ini"