summaryrefslogtreecommitdiff
path: root/community/mediaproxy
diff options
context:
space:
mode:
Diffstat (limited to 'community/mediaproxy')
-rw-r--r--community/mediaproxy/PKGBUILD37
-rw-r--r--community/mediaproxy/mediaproxy-dispatcher.service11
-rw-r--r--community/mediaproxy/mediaproxy-relay.service11
-rw-r--r--community/mediaproxy/mediaproxy.tmpfiles1
4 files changed, 60 insertions, 0 deletions
diff --git a/community/mediaproxy/PKGBUILD b/community/mediaproxy/PKGBUILD
new file mode 100644
index 000000000..940e7b69f
--- /dev/null
+++ b/community/mediaproxy/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 90685 2013-05-13 14:28:43Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Colin Pitrat <colin.pitrat@gmail.com>
+
+pkgname=mediaproxy
+pkgver=2.5.2
+pkgrel=5
+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=('840de8f52e656991be728c15ec30bb5e'
+ '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
+}
diff --git a/community/mediaproxy/mediaproxy-dispatcher.service b/community/mediaproxy/mediaproxy-dispatcher.service
new file mode 100644
index 000000000..500bb33c7
--- /dev/null
+++ b/community/mediaproxy/mediaproxy-dispatcher.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Mediaproxy dispatcher service
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/mediaproxy/dispatcher.pid
+ExecStart=media-dispatcher
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/mediaproxy/mediaproxy-relay.service b/community/mediaproxy/mediaproxy-relay.service
new file mode 100644
index 000000000..2618800e6
--- /dev/null
+++ b/community/mediaproxy/mediaproxy-relay.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Mediaproxy relay service
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/mediaproxy/relay.pid
+ExecStart=media-relay
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/mediaproxy/mediaproxy.tmpfiles b/community/mediaproxy/mediaproxy.tmpfiles
new file mode 100644
index 000000000..a102c489f
--- /dev/null
+++ b/community/mediaproxy/mediaproxy.tmpfiles
@@ -0,0 +1 @@
+d /var/run/mediaproxy 0755 root root -