diff --git a/debian/changelog b/debian/changelog index a21ad22..66369e7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,18 @@ +tinc (1.0.19-2~bpo60+1) squeeze-backports; urgency=low + + * Rebuild for squeeze-backports. + * Build-depend on libvdeplug2-dev, not libvdeplug-dev, + as it is how it is named in squeeze. + + -- Michael Tokarev Fri, 28 Dec 2012 23:49:04 +0400 + +tinc (1.0.19-2) unstable; urgency=low + + * Fix behaviour of tinc-pidfile. Closes: #679130 + * Enable parallel building in debian/rules. + + -- Guus Sliepen Tue, 26 Jun 2012 18:28:34 +0200 + tinc (1.0.19-1) unstable; urgency=low * New upstream release. diff --git a/debian/control b/debian/control index ace6328..e223ccf 100644 --- a/debian/control +++ b/debian/control @@ -2,8 +2,9 @@ Source: tinc Section: net Priority: optional Maintainer: Guus Sliepen +Uploaders: Michael Tokarev Standards-Version: 3.9.3 -Build-Depends: libssl-dev, debhelper (>= 9), gettext, texi2html, texinfo, zlib1g-dev, liblzo2-dev, libvdeplug-dev +Build-Depends: libssl-dev, debhelper (>= 9), gettext, texi2html, texinfo, zlib1g-dev, liblzo2-dev, libvdeplug-dev | libvdeplug2-dev Homepage: http://www.tinc-vpn.org/ Package: tinc diff --git a/debian/rules b/debian/rules index 3c36ef2..cf68c18 100755 --- a/debian/rules +++ b/debian/rules @@ -10,7 +10,7 @@ #export DH_VERBOSE=1 %: - dh $@ + dh $@ --parallel override_dh_auto_configure: dh_auto_configure -- --enable-uml --enable-vde diff --git a/debian/tinc.if-post-down b/debian/tinc.if-post-down index e48b24a..fb77810 100755 --- a/debian/tinc.if-post-down +++ b/debian/tinc.if-post-down @@ -3,10 +3,12 @@ set -e if [ "$IF_TINC_NET" ] ; then - tincd -n "$IF_TINC_NET" -k + EXTRA="" + [ -n "$IF_TINC_PIDFILE" ] && EXTRA="--pidfile=$IF_TINC_PIDFILE" || IF_TINC_PIDFILE=/var/run/tinc.$IF_TINC_NET.pid + tincd -n "$IF_TINC_NET" -k $EXTRA sleep 0.1 i=0; - while [ -f "/var/run/tinc.$IF_TINC_NET.pid" ] ; do + while [ -f "$IF_TINC_PIDFILE" ] ; do if [ $i = '30' ] ; then echo 'Failed to stop tinc daemon!' exit 1 diff --git a/debian/tinc.if-pre-up b/debian/tinc.if-pre-up index a7c917e..99d36ca 100755 --- a/debian/tinc.if-pre-up +++ b/debian/tinc.if-pre-up @@ -14,10 +14,11 @@ set -e [ -n "$IF_TINC_DEBUG" ] && EXTRA="$EXTRA -d$IF_TINC_DEBUG" [ -n "$IF_TINC_MLOCK" ] && EXTRA="$EXTRA --mlock" [ -n "$IF_TINC_LOGFILE" ] && EXTRA="$EXTRA --logfile=$IF_TINC_LOGFILE" -[ -n "$IF_TINC_PIDFILE" ] && EXTRA="$EXTRA --logfile=$IF_TINC_PIDFILE" +[ -n "$IF_TINC_PIDFILE" ] && EXTRA="$EXTRA --pidfile=$IF_TINC_PIDFILE" || IF_TINC_PIDFILE=/var/run/tinc.$IF_TINC_NET.pid [ -n "$IF_TINC_CHROOT" ] && EXTRA="$EXTRA --chroot" [ -n "$IF_TINC_USER" ] && EXTRA="$EXTRA --user=$IF_TINC_USER" + # Start tinc daemon /usr/sbin/tincd -n "$IF_TINC_NET" -o "Interface=$IFACE" $EXTRA @@ -26,7 +27,7 @@ set -e sleep 0.1 i=0; -while [ ! -f "/var/run/tinc.$IF_TINC_NET.pid" ] ; do +while [ ! -f "$IF_TINC_PIDFILE" ] ; do if [ $i = '30' ] ; then echo 'Failed to start tinc daemon!' exit 1