aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/mediaproxy
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
commitb6af1e02efe594039707cd882517663d5370f375 (patch)
treeff9c2d55873e051e82972ba64c017352d3a75d34 /unmaintained/mediaproxy
parenta71346b7acebc600960a98c84fb32cfd72fe864b (diff)
downloadaports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2
aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz
testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community
Diffstat (limited to 'unmaintained/mediaproxy')
-rw-r--r--unmaintained/mediaproxy/APKBUILD57
-rw-r--r--unmaintained/mediaproxy/config.ini19
-rw-r--r--unmaintained/mediaproxy/mediaproxy-dispatcher.initd22
-rw-r--r--unmaintained/mediaproxy/mediaproxy-relay.initd22
4 files changed, 120 insertions, 0 deletions
diff --git a/unmaintained/mediaproxy/APKBUILD b/unmaintained/mediaproxy/APKBUILD
new file mode 100644
index 0000000000..7cb0d472f3
--- /dev/null
+++ b/unmaintained/mediaproxy/APKBUILD
@@ -0,0 +1,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"
diff --git a/unmaintained/mediaproxy/config.ini b/unmaintained/mediaproxy/config.ini
new file mode 100644
index 0000000000..995c006d2b
--- /dev/null
+++ b/unmaintained/mediaproxy/config.ini
@@ -0,0 +1,19 @@
+[Dispatcher]
+socket = /var/run/mediaproxy/proxydispatcher.sock
+defaultproxy = /var/run/mediaproxy/mediaproxy.sock
+
+[MediaProxy]
+start = yes
+socket = /var/run/mediaproxy/mediaproxy.sock
+group = kamailio
+listen = 0.0.0.0
+allow = None
+proxyIP = # This is where your Kamailio is installed
+portRange = 9000:9049 # These values are set same in ATA's configs for RTP Port Range
+idleTimeout = 60
+holdTimeout = 180
+forceClose = 0
+
+[Accounting]
+accounting = off
+
diff --git a/unmaintained/mediaproxy/mediaproxy-dispatcher.initd b/unmaintained/mediaproxy/mediaproxy-dispatcher.initd
new file mode 100644
index 0000000000..9b37a7e064
--- /dev/null
+++ b/unmaintained/mediaproxy/mediaproxy-dispatcher.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+
+daemon=/usr/bin/media-dispatcher
+pidfile=/var/run/mediaproxy/dispatcher.pid
+
+depend() {
+ need net
+ after firewall
+ after kamailio
+}
+
+start() {
+ ebegin "Starting Mediaproxy Dispatcher"
+ start-stop-daemon --start --verbose --pidfile $pidfile --exec $daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Mediaproxy Dispatcher"
+ start-stop-daemon --stop --quiet --pidfile $pidfile
+ eend $?
+}
diff --git a/unmaintained/mediaproxy/mediaproxy-relay.initd b/unmaintained/mediaproxy/mediaproxy-relay.initd
new file mode 100644
index 0000000000..09b842f072
--- /dev/null
+++ b/unmaintained/mediaproxy/mediaproxy-relay.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+
+daemon=/usr/bin/media-relay
+pidfile=/var/run/mediaproxy/relay.pid
+
+depend() {
+ need net
+ after firewall
+ after mediaproxy-dispatcher
+}
+
+start() {
+ ebegin "Starting Mediaproxy Relay"
+ start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Mediaproxy Relay"
+ start-stop-daemon --stop --quiet --pidfile $pidfile
+ eend $?
+}