debian/0000755000000000000000000000000012153530151007162 5ustar debian/compat0000644000000000000000000000000212144537471010374 0ustar 8 debian/postrm0000644000000000000000000000025412144537224010442 0ustar #! /bin/sh # postrm script for l2tpns set -e # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/dirs0000644000000000000000000000005712144537224010060 0ustar usr/bin usr/sbin usr/lib/l2tpns var/lib/l2tpns debian/source/0000755000000000000000000000000012144537272010475 5ustar debian/source/format0000644000000000000000000000001412144537272011703 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000016412144537224010224 0ustar # format version number, currently 3; this line is compulsory! version=3 http://sf.net/l2tpns/l2tpns-(.*)\.tar\.gz debian/prerm0000644000000000000000000000025512144537224010244 0ustar #! /bin/sh # prerm script for l2tpns set -e # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/control0000644000000000000000000000134312153463354010600 0ustar Source: l2tpns Section: net Priority: optional Maintainer: Jonathan McDowell Build-Depends: debhelper (>> 8), libcli-dev (>> 1.8.5) Standards-Version: 3.9.4.0 Package: l2tpns Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: layer 2 tunnelling protocol network server (LNS) l2tpns is a daemon designed to terminate large volumes of layer 2 tunnelling protocol (RFC 2661: L2TP) sessions. . The daemon supports up to 65535 sessions plus features such as rate limiting, walled garden, usage accounting, and clustering (for both load-sharing and redundancy). . Note that only the LNS side of the L2TP protocol is implemented, for a more complete L2TP implementation see the l2tpd package. debian/patches/0000755000000000000000000000000012153452254010620 5ustar debian/patches/series0000644000000000000000000000006112153452027012030 0ustar 01-harden-compile.patch 02-fix-syslog-null.patch debian/patches/02-fix-syslog-null.patch0000644000000000000000000000116512153452254015137 0ustar Description: Fix syslog.h requirement for NULL / compilation with GCC 4.8 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707385 Author: Jonathan McDowell --- a/l2tpns.c 2013-06-04 13:53:46.000000000 -0700 +++ b/l2tpns.c 2013-06-04 13:54:10.000000000 -0700 @@ -10,6 +10,7 @@ #include #include #define SYSLOG_NAMES +#include #include #include #include @@ -20,7 +21,6 @@ #include #include #include -#include #include #include #include debian/patches/01-harden-compile.patch0000644000000000000000000000175612153452136014756 0ustar Description: Enable hardened build flags Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=l2tpns-harden.patch;att=1;bug=657846 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657846 Author: Moritz Muehlenhoff diff -aur l2tpns-2.1.21.harden/Makefile l2tpns-2.1.21/Makefile --- l2tpns-2.1.21.harden/Makefile 2005-12-07 06:21:37.000000000 +0100 +++ l2tpns-2.1.21/Makefile 2012-01-29 12:14:37.000000000 +0100 @@ -10,16 +10,14 @@ DEFINES += -DLIBDIR='"$(libdir)"' DEFINES += -DETCDIR='"$(etcdir)"' -OPTIM = -OPTIM += -g -OPTIM += -O3 +DEB_CFLAGS_MAINT_APPEND=-Wall -O3 -Wno-format-zero-length CC = gcc LD = gcc INCLUDES = -I. -CPPFLAGS = $(INCLUDES) $(DEFINES) -CFLAGS = -Wall -Wformat-security -Wno-format-zero-length $(OPTIM) -LDFLAGS = +CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` $(INCLUDES) $(DEFINES) +CFLAGS = `dpkg-buildflags --get CFLAGS` +LDFLAGS = `dpkg-buildflags --get LDFLAGS` LDLIBS = INSTALL = install -c -D -o root -g root debian/copyright0000644000000000000000000000203512153464260011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: l2tpns Upstream-Contact: Brendan O'Dea Source: https://github.com/bodea/l2tpns License: GPL+ You are free to distribute this software under the terms of the GNU General Public License. The full text of this license can be found in the file /usr/share/common-licenses/GPL Files: * Copyright: 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) 2002 Adrian Kennard 2003, 2004, 2005, 2006 Optus Internet Engineering 2003 David Parrish 2004 Brendan O'Dea License: GPL+ You are free to distribute this software under the terms of the GNU General Public License. The full text of this license can be found in the file /usr/share/common-licenses/GPL Files: md5.* Copyright: 2001 Solar Designer License: public-domain Written by Solar Designer in 2001, and placed in the public domain. There's absolutely no warranty. debian/postinst0000644000000000000000000000031012144537224010772 0ustar #! /bin/sh # postinst script for l2tpns # # see: dh_installdeb(1) set -e # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/rules0000755000000000000000000000310312153463501010243 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) #/usr/bin/docbook-to-man debian/l2tpns.sgml > l2tpns.1 touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/l2tpns install -D -m 644 -o root -g root etc/l2tpns.logrotate \ $(CURDIR)/debian/l2tpns/etc/logrotate.d/l2tpns # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot # dh_installdebconf dh_installdocs dh_installexamples dh_installmenu # dh_installlogrotate # dh_installpam dh_installinit dh_installcron dh_installman dh_installinfo dh_installchangelogs Changes dh_link dh_strip dh_compress dh_fixperms dh_installdeb # dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/changelog0000644000000000000000000000511012153527505011042 0ustar l2tpns (2.2.1-1) unstable; urgency=low * New upstream release. * Enabled hardened build flags, thanks Moritz Muehlenhoff (closes: #657846) * Packaging updates * Move to 3.0 (quilt) source format * Bump DH compat level to 8 * Acknowledge NMU (closes: #468889) * Fix ordering of stdio.h/syslog.h includes (closes: #707385) * Create accounting_dir in init script if necessary (closes: #418156) * Bump Standards-Version to 3.9.4.0 * Add build-arch/build-indep targets to debian/rules -- Jonathan McDowell Tue, 04 Jun 2013 20:23:37 -0700 l2tpns (2.1.21-1.1) unstable; urgency=low * Non-maintainer upload. * Added LSB formatted dependency info in init.d script (closes: #468889) -- Peter Eisentraut Wed, 02 Apr 2008 01:58:55 +0200 l2tpns (2.1.21-1) unstable; urgency=high * New upstream release. * Fixes potential remote code execution; hence urgency=high -- Jonathan McDowell Tue, 05 Dec 2006 16:52:54 +0000 l2tpns (2.1.19-1) unstable; urgency=low * New upstream release. * Add debian/watch file. * Bump Standards-Version to 3.7.2.0 (no changes). -- Jonathan McDowell Sat, 22 Jul 2006 14:11:14 +0100 l2tpns (2.1.16-1) unstable; urgency=low * New upstream release. -- Jonathan McDowell Tue, 21 Mar 2006 10:43:11 +0000 l2tpns (2.1.15-1) unstable; urgency=low * New upstream release. -- Jonathan McDowell Tue, 20 Dec 2005 11:00:23 +0000 l2tpns (2.1.10-1) unstable; urgency=low * New upstream release. -- Jonathan McDowell Sun, 13 Nov 2005 17:49:49 +0000 l2tpns (2.1.8-1) unstable; urgency=low * New upstream release. * Update Standards-Version to 3.6.2.0 (no changes). -- Jonathan McDowell Tue, 27 Sep 2005 17:20:19 +0100 l2tpns (2.1.3-1) unstable; urgency=low * New upstream release. -- Jonathan McDowell Wed, 24 Aug 2005 13:05:42 +0100 l2tpns (2.0.22-1) unstable; urgency=low * New upstream release; last of the 2.0 releases as I plan to upload 2.1.1 once I've tested it in production myself. -- Jonathan McDowell Thu, 23 Jun 2005 13:41:57 +0100 l2tpns (2.0.14-1) unstable; urgency=low * New upstream release. * Tidy up spelling in Description. * Make lintian happy by lowering case of Layer 2. -- Jonathan McDowell Thu, 06 Jan 2005 14:22:33 +0000 l2tpns (2.0.8-1) unstable; urgency=low * Initial Debian upload. (closes: #280675) -- Jonathan McDowell Fri, 26 Nov 2004 10:27:01 +0000 debian/init.d0000644000000000000000000000371112153530144010276 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: l2tpns # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # # l2tpns Based on skeleton example file. # # Written by Miquel van Smoorenburg . # Modified for Debian GNU/Linux # by Ian Murdock . # PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/l2tpns NAME=l2tpns DESC=l2tpns ARGS="-d" ACCTDIR=$(grep "set accounting_dir" /etc/l2tpns/startup-config | sed -e 's/.* "//' -e 's/".*//') test -f $DAEMON || exit 0 set -e case "$1" in start) echo -n "Starting $DESC: " if [ ! -d "$ACCTDIR" ]; then mkdir -p "$ACCTDIR" fi start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON -- $ARGS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --oknodo --stop --signal 3 --quiet \ --pidfile /var/run/$NAME.pid --exec $DAEMON -- $ARGS 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 \ /var/run/$NAME.pid --exec $DAEMON -- $ARGS ;; 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: " start-stop-daemon --stop --quiet --pidfile \ /var/run/$NAME.pid --exec $DAEMON -- $ARGS sleep 5 start-stop-daemon --start --quiet --pidfile \ /var/run/$NAME.pid --exec $DAEMON -- $ARGS echo "$NAME." ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0