[Pkg-voip-commits] [stunserver] 01/01: Imported Debian patch 1.2.7-1

Victor Seva Lopez maniac-guest at moszumanska.debian.org
Fri Aug 14 12:51:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

maniac-guest pushed a commit to branch master
in repository stunserver.

commit cce963c6d15320afef927f128a4a695c80a27eb9
Author: Kilian Krause <kilian at debian.org>
Date:   Mon Dec 22 01:10:19 2014 +0100

    Imported Debian patch 1.2.7-1
---
 debian/TODO                     |   2 +
 debian/changelog                |   5 ++
 debian/compat                   |   1 +
 debian/control                  |  38 ++++++++++++++
 debian/copyright                |  22 ++++++++
 debian/docs                     |   1 +
 debian/rules                    |   7 +++
 debian/stuntman-client.install  |   1 +
 debian/stuntman-client.manpages |   1 +
 debian/stuntman-server.default  |  20 +++++++
 debian/stuntman-server.init     | 113 ++++++++++++++++++++++++++++++++++++++++
 debian/stuntman-server.install  |   1 +
 debian/stuntman-server.manpages |   1 +
 debian/watch                    |   2 +
 14 files changed, 215 insertions(+)

diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..124a869
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1,2 @@
+- add own user account in postinst and throw away in postrm
+- fixup stuntman server invocation
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..292a7df
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+stunserver (1.2.7-1) unstable; urgency=low
+
+  * Initial upload
+
+ -- Kilian Krause <kilian at debian.org>  Mon, 22 Dec 2014 01:10:19 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e05afcc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: stunserver
+Section: net
+Priority: optional
+Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
+Uploaders: Kilian Krause <kilian at debian.org>
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..21e2333
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: STUNTMAN
+Upstream-Contact: jselbie at 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"
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c1daa35
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --parallel 
+
+override_dh_installchangelogs:
+	dh_installchangelogs HISTORY
diff --git a/debian/stuntman-client.install b/debian/stuntman-client.install
new file mode 100644
index 0000000..edf4844
--- /dev/null
+++ b/debian/stuntman-client.install
@@ -0,0 +1 @@
+stunclient usr/bin
diff --git a/debian/stuntman-client.manpages b/debian/stuntman-client.manpages
new file mode 100644
index 0000000..b001d70
--- /dev/null
+++ b/debian/stuntman-client.manpages
@@ -0,0 +1 @@
+resources/stunclient.1
diff --git a/debian/stuntman-server.default b/debian/stuntman-server.default
new file mode 100644
index 0000000..6f0d71a
--- /dev/null
+++ b/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
diff --git a/debian/stuntman-server.init b/debian/stuntman-server.init
new file mode 100644
index 0000000..5e5fed1
--- /dev/null
+++ b/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
diff --git a/debian/stuntman-server.install b/debian/stuntman-server.install
new file mode 100644
index 0000000..dc5098a
--- /dev/null
+++ b/debian/stuntman-server.install
@@ -0,0 +1 @@
+stunserver usr/sbin
diff --git a/debian/stuntman-server.manpages b/debian/stuntman-server.manpages
new file mode 100644
index 0000000..8f628c9
--- /dev/null
+++ b/debian/stuntman-server.manpages
@@ -0,0 +1 @@
+resources/stunserver.1
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..29aaa0f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+   http://www.stunprotocol.org/stunserver-([\d\.]+)\.tgz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/stunserver.git



More information about the Pkg-voip-commits mailing list