aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-09-13 18:46:25 +0800
committermiwi <miwi@FreeBSD.org>2006-09-13 18:46:25 +0800
commitd251275dbaba4d55f2de899f9014e1b2b80abc98 (patch)
tree13d23b2de7b1e8f29ece7aadf923d9eba2388817 /net
parent7e31ad77d1342ac8348c1b6931be4dc64be6a017 (diff)
downloadfreebsd-ports-graphics-d251275dbaba4d55f2de899f9014e1b2b80abc98.tar.gz
freebsd-ports-graphics-d251275dbaba4d55f2de899f9014e1b2b80abc98.tar.zst
freebsd-ports-graphics-d251275dbaba4d55f2de899f9014e1b2b80abc98.zip
MediaProxy is a far-end NAT traversal solution for OpenSER
and SIP Express Router that has the following features: - Distributed geographical location - Scalability, load balancing and redundancy - Real-time sessions statistics - Configurable IP and UDP port range - Support for audio and video streams - Support for multiple media streams per call - Accounting of network traffic PR: ports/102977 Submitted by: Stefan Sperling <freebsd-gnats(at)stsp.in-berlin.de>
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/mediaproxy/Makefile35
-rw-r--r--net/mediaproxy/distinfo3
-rw-r--r--net/mediaproxy/files/mediaproxy86
-rw-r--r--net/mediaproxy/files/patch-Makefile8
-rw-r--r--net/mediaproxy/pkg-descr12
-rw-r--r--net/mediaproxy/pkg-plist220
7 files changed, 365 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 3a9c1dcf365..915f0d6d946 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -287,6 +287,7 @@
SUBDIR += mad_fcl
SUBDIR += mars_nwe
SUBDIR += mcast-tools
+ SUBDIR += mediaproxy
SUBDIR += merlinmon
SUBDIR += mgen
SUBDIR += micro_inetd
diff --git a/net/mediaproxy/Makefile b/net/mediaproxy/Makefile
new file mode 100644
index 00000000000..5cb3da58ffc
--- /dev/null
+++ b/net/mediaproxy/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: mediaproxy
+# Date created: 08 August 2006
+# Whom: Steve Ames <steve@energistic.com>
+#
+# $FreeBSD$
+
+PORTNAME= mediaproxy
+PORTVERSION= 1.7.2
+CATEGORIES= net
+MASTER_SITES= http://mediaproxy.ag-projects.com/
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= steve@energistic.com
+COMMENT= A far-end NAT traversal solution for SER/OpenSER
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_PYTHON= 2.3+
+
+OPTIONS= ACCOUNTING "ACCOUNTING support (Requires MySQL)" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ACCOUNTING)
+USE_MYSQL= yes
+.endif
+
+post-install:
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' files/mediaproxy
+
+ ${CP} -pRP ${WRKSRC}/ ${PREFIX}/mediaproxy
+ ${CHOWN} -R 0:0 ${PREFIX}/mediaproxy
+ ${INSTALL_SCRIPT} -b files/mediaproxy ${PREFIX}/etc/rc.d/mediaproxy
+
+.include <bsd.port.post.mk>
diff --git a/net/mediaproxy/distinfo b/net/mediaproxy/distinfo
new file mode 100644
index 00000000000..a5b0b0aabc8
--- /dev/null
+++ b/net/mediaproxy/distinfo
@@ -0,0 +1,3 @@
+MD5 (mediaproxy-1.7.2.tar.gz) = 80f0ac55d38586385b7d31b962190666
+SHA256 (mediaproxy-1.7.2.tar.gz) = 11c2523ac5e072298dcd337cf36f1cbc86a9d0ffa7dbb83f928c6bfcee8c19ab
+SIZE (mediaproxy-1.7.2.tar.gz) = 399127
diff --git a/net/mediaproxy/files/mediaproxy b/net/mediaproxy/files/mediaproxy
new file mode 100644
index 00000000000..fdb47658fb0
--- /dev/null
+++ b/net/mediaproxy/files/mediaproxy
@@ -0,0 +1,86 @@
+#!/bin/sh
+#
+# mediaproxy starts and stops the SER MediaProxy server
+
+# PROVIDE: mediaproxy
+
+# Add the following line to /etc/rc.conf to enable mysql:
+# mediaproxy_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable mediaproxy.
+
+. /etc/rc.subr
+
+name="mediaproxy"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${mediaproxy_enable="NO"}
+
+INSTALL_DIR="/usr/local"
+RUNTIME_DIR="/var/run"
+
+PROXY="$INSTALL_DIR/mediaproxy/mediaproxy.py"
+DISPATCHER="$INSTALL_DIR/mediaproxy/proxydispatcher.py"
+PROXY_PID="$RUNTIME_DIR/mediaproxy.pid"
+DISPATCHER_PID="$RUNTIME_DIR/proxydispatcher.pid"
+
+# Options for mediaproxy and dispatcher. Do not include --pid <pidfile>
+# --pid <pidfile> will be added automatically if needed.
+PROXY_OPTIONS=""
+DISPATCHER_OPTIONS=""
+
+NAME="mediaproxy"
+DESC="SER MediaProxy server"
+
+echo $PROXY
+test -f $PROXY || exit 0
+test -f $DISPATCHER || exit 0
+
+if [ "$PROXY_PID" != "/var/run/mediaproxy.pid" ]; then
+ PROXY_OPTIONS="--pid $PROXY_PID $PROXY_OPTIONS"
+fi
+if [ "$DISPATCHER_PID" != "/var/run/proxydispatcher.pid" ]; then
+ DISPATCHER_OPTIONS="--pid $DISPATCHER_PID $DISPATCHER_OPTIONS"
+fi
+
+start() {
+ if [ $mediaproxy_enable = "YES" ]; then
+ echo -n "Starting $DESC: $NAME"
+ $PROXY $PROXY_OPTIONS
+ $DISPATCHER $DISPATCHER_OPTIONS
+ echo "."
+ fi
+}
+
+stop () {
+ echo -n "Stopping $DESC: $NAME"
+ if [ -f $PROXY_PID ]; then
+ kill `cat $PROXY_PID`
+ fi
+ if [ -f $DISPATCHER_PID ]; then
+ kill `cat $DISPATCHER_PID`
+ fi
+ echo "."
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|force-reload)
+ stop
+ #sleep 1
+ start
+ ;;
+ *)
+ echo "Usage: ${INSTALL_DIR}/etc/init.d/$NAME {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
diff --git a/net/mediaproxy/files/patch-Makefile b/net/mediaproxy/files/patch-Makefile
new file mode 100644
index 00000000000..b2a3aa94410
--- /dev/null
+++ b/net/mediaproxy/files/patch-Makefile
@@ -0,0 +1,8 @@
+--- Makefile Wed Dec 31 19:00:00 1969
++++ Makefile Tue Aug 8 15:01:10 2006
+@@ -0,0 +1,4 @@
++all:
++
++install:
++
+
diff --git a/net/mediaproxy/pkg-descr b/net/mediaproxy/pkg-descr
new file mode 100644
index 00000000000..d2b25584322
--- /dev/null
+++ b/net/mediaproxy/pkg-descr
@@ -0,0 +1,12 @@
+MediaProxy is a far-end NAT traversal solution for OpenSER
+and SIP Express Router that has the following features:
+
+ - Distributed geographical location
+ - Scalability, load balancing and redundancy
+ - Real-time sessions statistics
+ - Configurable IP and UDP port range
+ - Support for audio and video streams
+ - Support for multiple media streams per call
+ - Accounting of network traffic
+
+WWW: http://mediaproxy.ag-projects.com/
diff --git a/net/mediaproxy/pkg-plist b/net/mediaproxy/pkg-plist
new file mode 100644
index 00000000000..12cd2e0bac7
--- /dev/null
+++ b/net/mediaproxy/pkg-plist
@@ -0,0 +1,220 @@
+mediaproxy/Changelog
+mediaproxy/INSTALL
+mediaproxy/LICENSE
+mediaproxy/Makefile
+mediaproxy/Makefile.orig
+mediaproxy/NATtraversal-BestPractices.pdf
+mediaproxy/README
+mediaproxy/geodistribution.txt
+mediaproxy/mediaproxy.ini.sample
+mediaproxy/mediaproxy.py
+mediaproxy/proxydispatcher.py
+mediaproxy/sessions.py
+
+mediaproxy/boot/mediaproxy.debian
+mediaproxy/boot/mediaproxy.other
+
+mediaproxy/boot/macosx/README
+
+mediaproxy/boot/macosx/MEDIAPROXY/MEDIAPROXY
+mediaproxy/boot/macosx/MEDIAPROXY/StartupParameters.plist
+
+@dirrm mediaproxy/boot/macosx/MEDIAPROXY
+@dirrm mediaproxy/boot/macosx
+@dirrm mediaproxy/boot
+
+@dirrmtry mediaproxy/log
+
+mediaproxy/modules/accounting.py
+mediaproxy/modules/configuration.py
+mediaproxy/modules/daemon.py
+mediaproxy/modules/datatypes.py
+mediaproxy/modules/dispatcher.py
+mediaproxy/modules/formatting.py
+mediaproxy/modules/mysql.py
+mediaproxy/modules/options.py
+mediaproxy/modules/request.py
+mediaproxy/modules/rtphandler.py
+mediaproxy/modules/serialize.py
+mediaproxy/modules/utilities.py
+mediaproxy/modules/version.py
+
+mediaproxy/modules/external/timeoutsocket.py
+
+mediaproxy/modules/external/DNS/Base.py
+mediaproxy/modules/external/DNS/Class.py
+mediaproxy/modules/external/DNS/Lib.py
+mediaproxy/modules/external/DNS/Opcode.py
+mediaproxy/modules/external/DNS/Status.py
+mediaproxy/modules/external/DNS/Type.py
+mediaproxy/modules/external/DNS/__init__.py
+mediaproxy/modules/external/DNS/lazy.py
+
+@dirrm mediaproxy/modules/external/DNS
+@dirrm mediaproxy/modules/external
+@dirrm mediaproxy/modules
+
+mediaproxy/utils/fakeconversations.py
+mediaproxy/utils/rtpgenerator.py
+
+@dirrm mediaproxy/utils
+
+mediaproxy/web/media_sessions.phtml
+
+mediaproxy/web/config/media_servers.php.sample
+mediaproxy/web/config/phone_images.php
+
+@dirrm mediaproxy/web/config
+
+mediaproxy/web/images/30/aastra.png
+mediaproxy/web/images/30/asterisk.png
+mediaproxy/web/images/30/audiocodes-mp124.png
+mediaproxy/web/images/30/avm-fritzbox-wlan.png
+mediaproxy/web/images/30/avm-fritzbox-wlan2.png
+mediaproxy/web/images/30/budgetone100.png
+mediaproxy/web/images/30/cirpack.png
+mediaproxy/web/images/30/cisco-5380.png
+mediaproxy/web/images/30/cisco-7960.png
+mediaproxy/web/images/30/cisco-ata.png
+mediaproxy/web/images/30/cisco.png
+mediaproxy/web/images/30/draytek-vigor2600v.png
+mediaproxy/web/images/30/draytek-vigor2600vg.png
+mediaproxy/web/images/30/draytek-vigor2800g.png
+mediaproxy/web/images/30/draytek-vigor2900g.png
+mediaproxy/web/images/30/eStara.png
+mediaproxy/web/images/30/eyebeam.png
+mediaproxy/web/images/30/handytone.png
+mediaproxy/web/images/30/hitachi-wip5000-2.png
+mediaproxy/web/images/30/hitachi-wip5000-3.png
+mediaproxy/web/images/30/hitachi-wip5000.png
+mediaproxy/web/images/30/innomedia-mta5000.png
+mediaproxy/web/images/30/ipDialog.png
+mediaproxy/web/images/30/linksys-pap2-vert.png
+mediaproxy/web/images/30/linksys-pap2.png
+mediaproxy/web/images/30/messenger.png
+mediaproxy/web/images/30/session.png
+mediaproxy/web/images/30/siemens-3610.png
+mediaproxy/web/images/30/sipps.png
+mediaproxy/web/images/30/sjphone.png
+mediaproxy/web/images/30/snom100.png
+mediaproxy/web/images/30/snom200.png
+mediaproxy/web/images/30/snom320-front.png
+mediaproxy/web/images/30/snom320-left.png
+mediaproxy/web/images/30/snom320.png
+mediaproxy/web/images/30/snom360-front.png
+mediaproxy/web/images/30/snom360-left.png
+mediaproxy/web/images/30/snom360.png
+mediaproxy/web/images/30/spa2000.png
+mediaproxy/web/images/30/unknown.png
+mediaproxy/web/images/30/unknown3.png
+mediaproxy/web/images/30/vizufon.png
+mediaproxy/web/images/30/vizufon2.png
+mediaproxy/web/images/30/xten.png
+mediaproxy/web/images/30/zoep.png
+mediaproxy/web/images/30/zyxel-p2000.png
+
+@dirrm mediaproxy/web/images/30
+
+mediaproxy/web/images/35/aastra.png
+mediaproxy/web/images/35/asterisk.png
+mediaproxy/web/images/35/audiocodes-mp124.png
+mediaproxy/web/images/35/avm-fritzbox-wlan.png
+mediaproxy/web/images/35/avm-fritzbox-wlan2.png
+mediaproxy/web/images/35/budgetone100.png
+mediaproxy/web/images/35/cirpack.png
+mediaproxy/web/images/35/cisco-5380.png
+mediaproxy/web/images/35/cisco-7960.png
+mediaproxy/web/images/35/cisco-ata.png
+mediaproxy/web/images/35/cisco.png
+mediaproxy/web/images/35/draytek-vigor2600v.png
+mediaproxy/web/images/35/draytek-vigor2600vg.png
+mediaproxy/web/images/35/draytek-vigor2800g.png
+mediaproxy/web/images/35/draytek-vigor2900g.png
+mediaproxy/web/images/35/eStara.png
+mediaproxy/web/images/35/eyebeam.png
+mediaproxy/web/images/35/handytone.png
+mediaproxy/web/images/35/hitachi-wip5000-2.png
+mediaproxy/web/images/35/hitachi-wip5000-3.png
+mediaproxy/web/images/35/hitachi-wip5000.png
+mediaproxy/web/images/35/innomedia-mta5000.png
+mediaproxy/web/images/35/ipDialog.png
+mediaproxy/web/images/35/linksys-pap2-vert.png
+mediaproxy/web/images/35/linksys-pap2.png
+mediaproxy/web/images/35/messenger.png
+mediaproxy/web/images/35/session.png
+mediaproxy/web/images/35/siemens-3610.png
+mediaproxy/web/images/35/sipps.png
+mediaproxy/web/images/35/sjphone.png
+mediaproxy/web/images/35/snom100.png
+mediaproxy/web/images/35/snom200.png
+mediaproxy/web/images/35/snom320-front.png
+mediaproxy/web/images/35/snom320-left.png
+mediaproxy/web/images/35/snom320.png
+mediaproxy/web/images/35/snom360-front.png
+mediaproxy/web/images/35/snom360-left.png
+mediaproxy/web/images/35/snom360.png
+mediaproxy/web/images/35/spa2000.png
+mediaproxy/web/images/35/unknown.png
+mediaproxy/web/images/35/unknown3.png
+mediaproxy/web/images/35/vizufon.png
+mediaproxy/web/images/35/vizufon2.png
+mediaproxy/web/images/35/xten.png
+mediaproxy/web/images/35/zoep.png
+mediaproxy/web/images/35/zyxel-p2000.png
+
+@dirrm mediaproxy/web/images/35
+
+mediaproxy/web/images/40/aastra.png
+mediaproxy/web/images/40/asterisk.png
+mediaproxy/web/images/40/audiocodes-mp124.png
+mediaproxy/web/images/40/avm-fritzbox-wlan.png
+mediaproxy/web/images/40/avm-fritzbox-wlan2.png
+mediaproxy/web/images/40/budgetone100.png
+mediaproxy/web/images/40/cirpack.png
+mediaproxy/web/images/40/cisco-5380.png
+mediaproxy/web/images/40/cisco-7960.png
+mediaproxy/web/images/40/cisco-ata.png
+mediaproxy/web/images/40/cisco.png
+mediaproxy/web/images/40/draytek-vigor2600v.png
+mediaproxy/web/images/40/draytek-vigor2600vg.png
+mediaproxy/web/images/40/draytek-vigor2800g.png
+mediaproxy/web/images/40/draytek-vigor2900g.png
+mediaproxy/web/images/40/eStara.png
+mediaproxy/web/images/40/eyebeam.png
+mediaproxy/web/images/40/handytone.png
+mediaproxy/web/images/40/hitachi-wip5000-2.png
+mediaproxy/web/images/40/hitachi-wip5000-3.png
+mediaproxy/web/images/40/hitachi-wip5000.png
+mediaproxy/web/images/40/innomedia-mta5000.png
+mediaproxy/web/images/40/ipDialog.png
+mediaproxy/web/images/40/linksys-pap2-vert.png
+mediaproxy/web/images/40/linksys-pap2.png
+mediaproxy/web/images/40/messenger.png
+mediaproxy/web/images/40/session.png
+mediaproxy/web/images/40/siemens-3610.png
+mediaproxy/web/images/40/sipps.png
+mediaproxy/web/images/40/sjphone.png
+mediaproxy/web/images/40/snom100.png
+mediaproxy/web/images/40/snom200.png
+mediaproxy/web/images/40/snom320-front.png
+mediaproxy/web/images/40/snom320-left.png
+mediaproxy/web/images/40/snom320.png
+mediaproxy/web/images/40/snom360-front.png
+mediaproxy/web/images/40/snom360-left.png
+mediaproxy/web/images/40/snom360.png
+mediaproxy/web/images/40/spa2000.png
+mediaproxy/web/images/40/unknown.png
+mediaproxy/web/images/40/unknown3.png
+mediaproxy/web/images/40/vizufon.png
+mediaproxy/web/images/40/vizufon2.png
+mediaproxy/web/images/40/xten.png
+mediaproxy/web/images/40/zoep.png
+mediaproxy/web/images/40/zyxel-p2000.png
+
+@dirrm mediaproxy/web/images/40
+@dirrm mediaproxy/web/images
+@dirrm mediaproxy/web
+
+@dirrmtry mediaproxy
+
+etc/rc.d/mediaproxy