* Enabled hardened build flags, thanks Moritz Muehlenhoff (closes: #657846)
* Packaging updates * Move to 3.0 (native) source format * Bump DH compat level to 8 * 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 * Fix: compiling Warning
This commit is contained in:
parent
26a2025a1b
commit
ecdddd6065
10 changed files with 35 additions and 46 deletions
2
debian/compat
vendored
2
debian/compat
vendored
|
|
@ -1 +1 @@
|
|||
4
|
||||
8
|
||||
|
|
|
|||
6
debian/control
vendored
6
debian/control
vendored
|
|
@ -2,12 +2,12 @@ Source: l2tpns
|
|||
Section: net
|
||||
Priority: optional
|
||||
Maintainer: Jonathan McDowell <noodles@earth.li>
|
||||
Build-Depends: debhelper (>> 4), libcli-dev (>> 1.8.5)
|
||||
Standards-Version: 3.7.2.0
|
||||
Build-Depends: debhelper (>> 8), libcli-dev (>> 1.8.5)
|
||||
Standards-Version: 3.9.4.0
|
||||
|
||||
Package: l2tpns
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}
|
||||
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.
|
||||
|
|
|
|||
4
debian/init.d
vendored
4
debian/init.d
vendored
|
|
@ -19,6 +19,7 @@ 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
|
||||
|
||||
|
|
@ -27,6 +28,9 @@ 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."
|
||||
|
|
|
|||
13
debian/preinst
vendored
13
debian/preinst
vendored
|
|
@ -1,13 +0,0 @@
|
|||
#! /bin/sh
|
||||
# preinst script for l2tpns
|
||||
|
||||
set -e
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
12
debian/rules
vendored
12
debian/rules
vendored
|
|
@ -2,9 +2,6 @@
|
|||
# Sample debian/rules that uses debhelper.
|
||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||
|
||||
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
||||
CFLAGS += -g
|
||||
endif
|
||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||
INSTALL_PROGRAM += -s
|
||||
endif
|
||||
|
|
@ -16,8 +13,9 @@ configure-stamp:
|
|||
|
||||
touch configure-stamp
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build: build-arch build-indep
|
||||
build-arch: build-stamp
|
||||
build-indep: build-stamp
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
|
||||
|
|
@ -33,14 +31,14 @@ clean:
|
|||
rm -f build-stamp configure-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
-$(MAKE) clean
|
||||
[ ! -f Makefile ] || $(MAKE) clean
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
|
||||
$(MAKE) install DESTDIR=$(CURDIR)/debian/l2tpns
|
||||
|
|
|
|||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.0 (native)
|
||||
Loading…
Add table
Add a link
Reference in a new issue