blob: 4b877e0fd337c2a85fb85785782d87acd20f11bf (
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
42
43
44
45
46
47
48
49
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mediaproxy
pkgver=2.4.3
pkgrel=0
pkgdesc="MediaProxy"
url="http://www.ag-projects.com/MediaProxy/"
pkgusers="kamailio"
pkggroups="kamailio"
arch="x86 x86_64"
license="GPL"
depends="python py-application py-gnutls py-twisted py-cjson iptables"
makedepends="libnetfilter_conntrack-dev libnfnetlink-dev py-buildutils
py-setuptools python-dev"
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
}
package() {
cd "$srcdir"/$pkgname-$pkgver
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="a2497c7dac4e1fd90eca52c39412b8cb mediaproxy-2.4.3.tar.gz
cf081e451ab5d8d5ff66a8d9fa6707d6 mediaproxy-dispatcher.initd
1add855d86ead49c19798e9d86c69efe mediaproxy-relay.initd
d3df3569543d696ca102f131f7ad95e4 config.ini"
|