blob: 7cb0d472f32a68317953b6a1f5bcedf12b333a0b (
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
50
51
52
53
54
55
56
57
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mediaproxy
pkgver=2.6.1
pkgrel=0
pkgdesc="MediaProxy"
url="http://www.ag-projects.com/MediaProxy/"
pkgusers="kamailio"
pkggroups="kamailio"
arch="noarch"
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 iptables-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="72443d6137c77c3c9cd446ca98ec5d21 mediaproxy-2.6.1.tar.gz
cf081e451ab5d8d5ff66a8d9fa6707d6 mediaproxy-dispatcher.initd
1add855d86ead49c19798e9d86c69efe mediaproxy-relay.initd
d3df3569543d696ca102f131f7ad95e4 config.ini"
sha256sums="a424893f951f233d3f31e286034aabde07b9625f8d79a808ff28d2cf3eda0854 mediaproxy-2.6.1.tar.gz
f0574385a12799038f162d2845f8d5719b894d5c757ac299a8fefdba529eac57 mediaproxy-dispatcher.initd
f8397afb079dc7a93f72943a021a3f3e27c670f842f3ae41f8cd3e57fef5a231 mediaproxy-relay.initd
80765183172bab483ba749222af9a685ff44b3399426d8fba6562b6afba75ad2 config.ini"
sha512sums="f4da0dcf2347911feacfa9b6757738d94d8f1fdd7eae885ba13e49aa590bb9f195c76c8928b11564d7e51d7f0e2e89ee277e0b58e7450b6a68f91d56b8428c8a mediaproxy-2.6.1.tar.gz
4c4d38c846e8e75cf4d65e95d5ead8f953566a1ed5bb14d54b628cc19235b87f39e2a4207df44924df4ae5bbe97189187b80db57c3a9e9e88f0012bd117cedcc mediaproxy-dispatcher.initd
cda84a3afe5240c0ad18e558c6b734135c978e3fc32331413b1c4c7690724aad95a34757fdf6e2fdbc3de85861283fed2d734c7a36e8a604cf8d852226f58c93 mediaproxy-relay.initd
f911664ac80024086a391c4d8653c36d82a9c626f0eef9c4758dd8c7a0276a814e1e8889afcf43aabf9460a6bb8037ca0d584a0a2de6e2a020711b151156c898 config.ini"
|