blob: fc09c4561dad9ae805270d4fdfdac46db05a265c (
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
|
# $Id: PKGBUILD 111231 2014-05-15 14:32:13Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Colin Pitrat <colin.pitrat@gmail.com>
pkgname=mediaproxy
pkgver=2.6.1
pkgrel=1
pkgdesc="Open-source media proxy for OpenSER"
url="http://mediaproxy.ag-projects.com/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('python2' 'libnetfilter_conntrack' 'iptables'
'python2-application' 'python2-cjson' 'python2-gnutls')
#backup=('opt/mediaproxy/config.ini')
source=("http://download.ag-projects.com/MediaProxy/mediaproxy-$pkgver.tar.gz"
"mediaproxy-dispatcher.service"
"mediaproxy-relay.service"
"mediaproxy.tmpfiles")
md5sums=('72443d6137c77c3c9cd446ca98ec5d21'
'4a1fa0b6ce0a8bd44bf0f1d9d36a6154'
'23c1a584835de00a958ef963cdd40040'
'60a25f2cb6429a0a7d62d45d0c75a0ea')
build() {
cd $srcdir/mediaproxy-$pkgver
sed -i "s|libraries = get_link_libraries(),|libraries = ['netfilter_conntrack', 'ip4tc'],|g" setup.py
}
package() {
cd $srcdir/mediaproxy-$pkgver
python2 setup.py install --root=$pkgdir
install -Dm0644 $srcdir/$pkgname-dispatcher.service $pkgdir/usr/lib/systemd/system/$pkgname-dispatcher.service
install -Dm0644 $srcdir/$pkgname-relay.service $pkgdir/usr/lib/systemd/system/$pkgname-relay.service
install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
}
|