debian/0000755000000000000000000000000012205427151007165 5ustar debian/conf/0000755000000000000000000000000012033754405010116 5ustar debian/conf/turnserver.conf0000644000000000000000000000454712011253711013204 0ustar ## # TurnServer configuration file. # ## Public IPv4 address of any relayed address (if not set, no relay for IPv4). ## To have multiple address, separate addresses with a comma ## (i.e. listen_address = { "172.16.0.1", "172.17.0.1" }). listen_address = { "192.168.0.1" } ## Public IPv6 address of any relayed address (if not set, no relay for IPv6). ## To have multiple address, separate address with a comma ## (i.e. listen_addressv6 = { "2001:db8:1::1", "2001:db8:2::1" }). #listen_addressv6 = { "2001:db8::1" } ## UDP listening port. udp_port = 3478 ## TCP listening port. tcp_port = 3478 ## TLS listening port. tls_port = 5349 ## TLS support. tls = false ## DTLS support. It is an experimental feature and is not defined in TURN ## standard. dtls = false ## Maximum allocation port number. max_port = 65535 ## Minimum allocation port number. min_port = 49152 ## TURN-TCP support. turn_tcp = false ## TURN-TCP buffering mode: ## - true, use userspace buffering; ## - false, use kernel buffering. tcp_buffer_userspace = true ## TURN-TCP maximum buffer size. tcp_buffer_size = 32768 ## Daemon mode. daemon = true ## Unprivileged user. ## If you want to use this feature create a system user. ## On Linux: adduser --system --group turnserver unpriv_user = turnserver ## Realm value. realm = "domain.org" ## Nonce key. nonce_key = "hieKedq" ## Max relay per username. max_relay_per_username = 5 ## Allocation lifetime. allocation_lifetime = 1800 ## Allocation bandwidth limitation (in KBytes/s). ## 0 value means bandwidth quota disabled. bandwidth_per_allocation = 150 ## Restricted user bandwidth (in KBytes/s). ## 0 value means bandwidth limitation disabled. restricted_bandwidth = 10 ## Denied addresses. # disallow relaying to localhost denied_address { address = "127.0.0.1" mask = "8" port = 0 } # disallow relaying to ip6-localhost denied_address { address = "::1" mask = "128" port = 0 } #denied_address { # address = "10.1.4.0" # mask = 24 # port = 0 #} ## Certification Authority file. ca_file = "/etc/ssl/certs/ca-certificates.crt" ## Server certificate file. cert_file = "/etc/turnserver/ssl/server.crt" ## Private key file. private_key_file = "/etc/turnserver/ssl/server.key" ## Account method. account_method = "file" ## Account file (if account_method = file). account_file = "/etc/turnserver/turnusers.txt" ## mod_tmpuser. mod_tmpuser = false debian/conf/turnusers.txt0000644000000000000000000000000012032014135012703 0ustar debian/source/0000755000000000000000000000000012011257262010464 5ustar debian/source/format0000644000000000000000000000001412011257262011672 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000056612033754172011242 0ustar By default, no user accounts are created. TurnServer does not recognise UNIX accounts and requires accounts to be defined in it's own config file. Traditional STUN doesn't require an account anyway, but for TURN relay purposes, a user must authenticate. Please see the upstream README file for details. NOTE: ICE/STUN/TURN requires a host with TWO public IP addresses debian/compat0000644000000000000000000000000212011246107010356 0ustar 9 debian/control0000644000000000000000000000222312205426345010573 0ustar Source: turnserver Section: net Priority: extra Maintainer: Debian VoIP Team Uploaders: Daniel Pocock Build-Depends: debhelper (>= 9.0.0), dpkg-dev (>= 1.16.1~), libssl-dev, libconfuse-dev, automake, autotools-dev, pkg-config, autoconf Homepage: http://www.turnserver.org/ Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-voip/turnserver.git Vcs-Browser: http://git.debian.org/?p=pkg-voip/turnserver.git;a=summary Package: turnserver Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser Description: server for ICE/STUN/TURN, NAT traversal for SIP and Jabber TURN server developed by the team behind Jitsi. TURN (RFC 5766) provides a standardised solution for VoIP applications to find the most efficient way to route media streams when NAT and firewall devices may be present. . The TurnServer project aims to be compliant with the TURN and STUN Request For Comments (respectively RFC 5766 and RFC 5389). It also support RFC 6156 namely TURN-IPV6 (relay between IPv4-IPv6, IPv6-IPv4 and IPv6-IPv6 addresses) and RFC 6062 namely TURN-TCP (relay data with TCP). debian/copyright0000644000000000000000000000564712011261412011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: turnserver.org Upstream-Contact: dev@jitsi.java.net Source: https://turnserver.svn.sourceforge.net/svnroot/turnserver/ Files: * Copyright: 2008-2010, Sebastien Vincent License: GPL-3-TURNSERVER Comment: A special exemption to the GPL exists for linking with OpenSSL The GPL can be found in /usr/share/common-licenses/GPL-3 Files: debian/* Copyright: 2012, Daniel Pocock License: GPL-3+ Comment: The GPL can be found in /usr/share/common-licenses/GPL-3 License: GPL-3-TURNSERVER /* * TurnServer - TURN server implementation. * Copyright (C) 2008-2010 Sebastien Vincent * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * In addition, as a special exception, the copyright holders give * permission to link the code of portions of this program with the * OpenSSL library under certain conditions as described in each * individual source file, and distribute linked combinations * including the two. * You must obey the GNU General Public License in all respects * for all of the code used other than OpenSSL. If you modify * file(s) with this exception, you may extend this exception to your * version of the file(s), but you are not obligated to do so. If you * do not wish to do so, delete this exception statement from your * version. If you delete this exception statement from all source * files in the program, then also delete it here. */ . Certain source files in this program permit linking with the OpenSSL library (http://www.openssl.org), which otherwise wouldn't be allowed under the GPL. For purposes of identifying OpenSSL, most source files giving this permission limit it to versions of OpenSSL having a license identical to that listed in this file (LICENSE.OpenSSL). It is not necessary for the copyright years to match between this file and the OpenSSL version in question. However, note that because this file is an extension of the license statements of these source files, this file may not be changed except with permission from all copyright holders of source files in this program which reference this file. License: GPL-3+ The GPL can be found in /usr/share/common-licenses/GPL-3 debian/turnserver.dirs0000644000000000000000000000001712011251037012256 0ustar etc/turnserver debian/turnserver.docs0000644000000000000000000000000712033754317012261 0ustar README debian/turnserver.init0000644000000000000000000000273412033754706012307 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: turnserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: TurnServer.org TURN Server # Description: STUN and TURN Relay for VoIP media streams ### END INIT INFO set -e DAEMON=/usr/sbin/turnserver NAME=turnserver CONFIG=/etc/turnserver/turnserver.conf USER=turnserver GROUP=turnserver test -x $DAEMON || exit 0 PIDFILE="/var/run/$NAME/$NAME.pid" PIDFILE_DIR=`dirname $PIDFILE` umask 002 # Include defaults if available if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi if [ ! -d "$PIDFILE_DIR" ];then mkdir -p "$PIDFILE_DIR" chown $USER:$GROUP "$PIDFILE_DIR" fi case "$1" in start) echo "Starting $NAME" start-stop-daemon --start --background --pidfile $PIDFILE --exec $DAEMON -- -c $CONFIG -p $PIDFILE echo "." ;; stop) echo "Stopping $NAME" start-stop-daemon --stop --pidfile $PIDFILE --oknodo --exec $DAEMON -- rm -f /var/run/turnserver/turnserver.pid echo "." ;; restart|force-reload) echo "Restarting $NAME" start-stop-daemon --stop --pidfile $PIDFILE --oknodo --exec $DAEMON -- rm -f /var/run/turnserver/turnserver.pid sleep 2 start-stop-daemon --start --background -m --pidfile $PIDFILE --exec $DAEMON -- -c $CONFIG echo "." ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|restart}" exit 1 ;; esac exit 0 debian/turnserver.install0000644000000000000000000000012412032014505012762 0ustar debian/conf/turnserver.conf etc/turnserver debian/conf/turnusers.txt etc/turnserver debian/turnserver.manpages0000644000000000000000000000005312011251253013110 0ustar man/turnserver.man man/turnserver.conf.man debian/turnserver.postinst0000644000000000000000000000301712011251436013206 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # $1 = version of the package being upgraded. install() { TURNSERVER_GROUP=turnserver if ! getent group "$TURNSERVER_GROUP" >/dev/null; then addgroup --system "$TURNSERVER_GROUP" || exit 1 fi TURNSERVER_USER=turnserver if ! getent passwd "$TURNSERVER_USER" >/dev/null; then adduser --system \ --home / \ --shell /bin/false \ --no-create-home \ --ingroup "$TURNSERVER_GROUP" \ --disabled-password \ --disabled-login \ --gecos "turnserver daemon" \ "$TURNSERVER_USER" || exit 1 fi } case "$1" in configure) install "$2" ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/turnserver.postrm0000644000000000000000000000071312011251554012650 0ustar #!/bin/sh set -e TURNSERVER_USER=turnserver TURNSERVER_GROUP=turnserver if [ "$1" = "purge" ] ; then if getent passwd $TURNSERVER_USER >/dev/null; then userdel $TURNSERVER_USER fi if getent group $TURNSERVER_GROUP >/dev/null; then groupdel $TURNSERVER_GROUP fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/watch0000644000000000000000000000007512032013544010213 0ustar version=3 http://sf.net/turnserver/turnserver-(.+)\.tar\.bz2 debian/changelog0000644000000000000000000000072312205426454011046 0ustar turnserver (0.7.3-2) unstable; urgency=low * Add extra autotools dependencies -- Daniel Pocock Thu, 22 Aug 2013 17:24:08 +0200 turnserver (0.7.3-1) unstable; urgency=low * New upstream release -- Daniel Pocock Thu, 20 Jun 2013 19:40:14 +0200 turnserver (0.7.2-1) unstable; urgency=low * Initial Debian release (Closes: #684481) -- Daniel Pocock Mon, 19 Nov 2012 20:06:35 +0100 debian/rules0000755000000000000000000000100212160640712010236 0ustar #!/usr/bin/make -f DEB_DH_INSTALL_ARGS := --sourcedir=debian/tmp #LDFLAGS += -lcares #CPPFLAGS += -fPIC override_dh_auto_configure: autoreconf -fi dh_auto_configure override_dh_auto_build: dh_auto_build --parallel # don't actually run the test cases, they don't run well # automatically and require network access override_dh_auto_test: true override_dh_auto_install: dh_auto_install rm debian/turnserver/usr/bin/test_* # force building in the pkgroot or it won't build %: dh $@ --builddirectory=.