--- stunserver-1.2.7.orig/debian/TODO +++ stunserver-1.2.7/debian/TODO @@ -0,0 +1,2 @@ +- add own user account in postinst and throw away in postrm +- fixup stuntman server invocation --- stunserver-1.2.7.orig/debian/changelog +++ stunserver-1.2.7/debian/changelog @@ -0,0 +1,5 @@ +stunserver (1.2.7-1) unstable; urgency=low + + * Initial upload + + -- Kilian Krause Mon, 22 Dec 2014 01:10:19 +0100 --- stunserver-1.2.7.orig/debian/compat +++ stunserver-1.2.7/debian/compat @@ -0,0 +1 @@ +9 --- stunserver-1.2.7.orig/debian/control +++ stunserver-1.2.7/debian/control @@ -0,0 +1,38 @@ +Source: stunserver +Section: net +Priority: optional +Maintainer: Debian VoIP Team +Uploaders: Kilian Krause +Build-Depends: debhelper (>= 9), libboost-dev, libssl-dev +Standards-Version: 3.9.6 +Homepage: http://www.stunprotocol.org/ +Vcs-Svn: svn://anonscm.debian.org/pkg-voip/stunserver/trunk/ +Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-voip/stunserver/trunk/ + +Package: stuntman-server +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: stuntman-client, stun-client +Provides: stun, stun-server +Description: Server daemon for STUN + Open source implementation of the STUN protocol (Session Traversal Utilities + for NAT) as specified in RFCs 5389, 5769, and 5780. It also includes backwards + compatibility for RFC 3489. Source code distribution includes a high + performance STUN server, a client application, and a set of code libraries for + implementing a STUN client within an application + . + This package installs only the server part + +Package: stuntman-client +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: stun-server +Provides: stun-client +Description: Test client for STUN + Open source implementation of the STUN protocol (Session Traversal Utilities + for NAT) as specified in RFCs 5389, 5769, and 5780. It also includes backwards + compatibility for RFC 3489. Source code distribution includes a high + performance STUN server, a client application, and a set of code libraries for + implementing a STUN client within an application + . + This package installs only the client. --- stunserver-1.2.7.orig/debian/copyright +++ stunserver-1.2.7/debian/copyright @@ -0,0 +1,22 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: STUNTMAN +Upstream-Contact: jselbie@gmail.com +Source: http://www.stunprotocol.org/ + +Files: * +Copyright: 2011-2013 John Selbie +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache License 2.0 can + be found in "/usr/share/common-licenses/Apache-2.0" --- stunserver-1.2.7.orig/debian/docs +++ stunserver-1.2.7/debian/docs @@ -0,0 +1 @@ +README --- stunserver-1.2.7.orig/debian/rules +++ stunserver-1.2.7/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ --parallel + +override_dh_installchangelogs: + dh_installchangelogs HISTORY --- stunserver-1.2.7.orig/debian/stuntman-client.install +++ stunserver-1.2.7/debian/stuntman-client.install @@ -0,0 +1 @@ +stunclient usr/bin --- stunserver-1.2.7.orig/debian/stuntman-client.manpages +++ stunserver-1.2.7/debian/stuntman-client.manpages @@ -0,0 +1 @@ +resources/stunclient.1 --- stunserver-1.2.7.orig/debian/stuntman-server.default +++ stunserver-1.2.7/debian/stuntman-server.default @@ -0,0 +1,20 @@ +# Defaults for stuntman-server +# +# This is a POSIX shell fragment +# + +#uncommment the next line to allow the init.d script to start the STUN daemon +#START_DAEMON=true + +MODE="basic" +#PRIMARY_INTERFACE="" +#SECONDARY_INTERFACE="" +#PRIMARY_PORT=3478 +#SECONDARY_PORT=3479 + +# Additional options that are passed to the daemon +DAEMON_OPTS="" +# --maxconn MAXCONN + +# whom the daemons should run as +DAEMON_USER=nobody --- stunserver-1.2.7.orig/debian/stuntman-server.init +++ stunserver-1.2.7/debian/stuntman-server.init @@ -0,0 +1,113 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: stuntman-server +# Required-Start: $network $remote_fs +# Required-Stop: $network $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: STUN server to help clients with their NAT +# Description: STUN server to help clients identify and overcome limitations of their NAT +### END INIT INFO +# +# Please read /usr/share/doc/stuntman-server/README.Debian + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/stunserver +NAME=stuntman-server +DESC=stuntman-server +START_DAEMON=false +PIDFILE=/var/run/${NAME}.pid + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +# Include stun defaults if available +if [ -f /etc/default/stuntman-server ] ; then + . /etc/default/stuntman-server +fi +if [ "$START_DAEMON" != "true" ] ; then + exit 0 +fi + +ARGS="" +if [ -z "$MODE" ];then + echo "No mode given. Using basic" + MODE=basic +fi +[ -z "$MODE" ]||ARGS="$ARGS --mode $MODE" +[ -z "$PRIMARY_INTERFACE" ]||ARGS="$ARGS --primaryinterface $PRIMARY_INTERFACE" +[ -z "$SECONDARY_INTERFACE" ]||ARGS="$ARGS --altinterface $SECONDARY_INTERFACE" +[ -z "$PRIMARY_PORT" ]||ARGS="$ARGS --primaryport $PRIMARY_PORT" +[ -z "$SECONDARY_PORT" ]||ARGS="$ARGS --altport $SECONDARY_PORT" +if [ -z "$DAEMON_USER" ];then + DAEMON_USER=nobody +fi + +DAEMON_OPTS="$ARGS $DAEMON_OPTS " + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --background --make-pidfile \ + --pidfile "$PIDFILE" \ + --chuid "$DAEMON_USER" --exec "$DAEMON" -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile "$PIDFILE" \ + --oknodo --chuid "$DAEMON_USER" --exec "$DAEMON" + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # $PIDFILE --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + $0 stop + sleep 1 + $0 start + echo "$NAME." + ;; + status) + echo -n "Status of $DESC: " + + if [ ! -r "$PIDFILE" ]; then + echo "$NAME is not running." + exit 3 + fi + + if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then + echo "$NAME is running." + exit 0 + else + echo "$NAME is not running but $PIDFILE exists." + exit 1 + fi + ;; + *) + N="/etc/init.d/$NAME" + # echo "Usage: $N {start|stop|restart|status|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|status|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- stunserver-1.2.7.orig/debian/stuntman-server.install +++ stunserver-1.2.7/debian/stuntman-server.install @@ -0,0 +1 @@ +stunserver usr/sbin --- stunserver-1.2.7.orig/debian/stuntman-server.manpages +++ stunserver-1.2.7/debian/stuntman-server.manpages @@ -0,0 +1 @@ +resources/stunserver.1 --- stunserver-1.2.7.orig/debian/watch +++ stunserver-1.2.7/debian/watch @@ -0,0 +1,2 @@ +version=3 + http://www.stunprotocol.org/stunserver-([\d\.]+)\.tgz