From: Darshaka Pathirana Date: Thu, 26 Jan 2017 01:45:45 +0000 (+0100) Subject: Merge tag 'upstream/0.3.6' X-Git-Tag: v0.3.6-1~3 X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=commitdiff_plain;h=efa4a48c37a982c6a961469101f3e01f3639c323;hp=70cf739729db4c5d7f72b64207855889e57ee49a Merge tag 'upstream/0.3.6' Upstream version 0.3.6 --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c4a6dec --- /dev/null +++ b/debian/changelog @@ -0,0 +1,34 @@ +uanytun (0.3.5-1) unstable; urgency=medium + + * [71f6f66] Imported Upstream version 0.3.5 + - Includes support for clang [Closes: #745643] + * [d1e000b] Bump Standards-Version to 3.9.5 + * [a836c46] wrap-and-sort the debian directory + * [2fd4cc8] Update dependency from libgcrypt11-dev to libgcrypt20-dev + + -- Michael Prokop Fri, 29 Aug 2014 13:49:59 -0700 + +uanytun (0.3.3-1) unstable; urgency=low + + * New upstream release. + * Bump Standards-Version to 3.8.4 (no further changes). + * Add $remote_fs to Required-{Start,Stop} in initscript. + + -- Michael Prokop Wed, 17 Feb 2010 03:10:04 +0100 + +uanytun (0.3.2-2) unstable; urgency=low + + * Drop asciidoc and related packages from build-depends and ship + manpage statically instead. Upstream will ship manpage in + next release through the tarball. + * Apply patch based on the one from Cyril Brulebois for anytun to fix + FTBFS on GNU/kFreeBSD. + + -- Michael Prokop Wed, 23 Dec 2009 03:50:43 +0100 + +uanytun (0.3.2-1) unstable; urgency=low + + * Initial release (Closes: #531082) + + -- Michael Prokop Mon, 14 Dec 2009 17:43:13 +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..042f98f --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: uanytun +Section: net +Priority: extra +Maintainer: Michael Prokop +Build-Depends: debhelper (>= 9~), + libgcrypt20-dev +Standards-Version: 3.9.8 +Homepage: http://www.anytun.org/ +Vcs-git: git://git.grml.org/uanytun.git +Vcs-Browser: http://git.grml.org/?p=uanytun.git + +Package: uanytun +Architecture: any +Depends: adduser, + ${misc:Depends}, + ${shlibs:Depends} +Description: tiny implementation of the secure anycast tunneling protocol + uAnytun is a tiny implementation of SATP (Secure Anycast Tunneling + Protocol). Unlike Anytun which is a full featured implementation + uAnytun has no support for multiple connections or synchronisation. + It is a small single threaded implementation intended to act as a + client on small platforms. SATP defines a protocol used for + communication between any combination of unicast and anycast tunnel + endpoints. It has less protocol overhead than IPSec in Tunnel mode + and allows tunneling of every ETHER TYPE protocol (e.g. ethernet, + ip, arp ...). SATP directly includes cryptography and message + authentication based on the methodes used by SRTP (Secure Real-time + Transport Protocol). It is intended to deliver a generic, + scaleable and secure solution for tunneling and relaying of packets + of any protocol. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..def1194 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,35 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: uanytun +Upstream-Contact: Christian Pointner +Source: http://www.anytun.org/ + +Files: * +Copyright: 2007-2014 Christian Pointner +License: GPL-3+ + +Files: debian/* +Copyright: 2009-2017 Michael Prokop + 2017 Darshaka Pathirana +License: GPL-3+ + +License: GPL-3+ + 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 package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. diff --git a/debian/overrides b/debian/overrides new file mode 100644 index 0000000..b36a80a --- /dev/null +++ b/debian/overrides @@ -0,0 +1,5 @@ +uanytun: non-standard-file-perm usr/share/uanytun/examples/config/client1/config 0600 != 0644 +uanytun: non-standard-file-perm usr/share/uanytun/examples/config/client2/config 0600 != 0644 +uanytun: non-standard-file-perm usr/share/uanytun/examples/config/client3/config 0600 != 0644 +uanytun: non-standard-file-perm usr/share/uanytun/examples/config/p2p-a/config 0600 != 0644 +uanytun: non-standard-file-perm usr/share/uanytun/examples/config/p2p-b/config 0600 != 0644 diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..8b783fe --- /dev/null +++ b/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh +# postinst script for uanytun + +set -e + +if [ -x "/etc/init.d/uanytun" ]; then + update-rc.d uanytun defaults >/dev/null +fi + +if [ "$1" = "configure" ]; then + adduser --quiet --system --group --no-create-home --home /var/run/uanytun uanytun +fi + +#DEBHELPER# diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..345ff3c --- /dev/null +++ b/debian/postrm @@ -0,0 +1,17 @@ +#!/bin/sh +# postrm script for uanytun + +set -e + +if [ "$1" = "purge" ] ; then + update-rc.d uanytun remove >/dev/null || exit $? + + if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then + deluser --quiet --system uanytun || true + delgroup --quiet --system uanytun || true + else + echo "Not removing uanytun user and group: adduser package not found." >&2 + fi +fi + +#DEBHELPER# diff --git a/debian/prerm b/debian/prerm new file mode 100755 index 0000000..631c043 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,14 @@ +#!/bin/sh +# prerm script for uanytun + +set -e + +if [ -x "/etc/init.d/uanytun" ] && [ "$1" = remove ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d uanytun stop || true + else + /etc/init.d/uanytun stop || true + fi +fi + +#DEBHELPER# diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..08bfb72 --- /dev/null +++ b/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + cd src && ./configure --no-manpage --prefix=/usr --sysconfdir=/etc --examplesdir=/usr/share/uanytun/examples && cd .. + touch configure-stamp + +build: build-arch build-indep + +build-arch: build-stamp +build-indep: build-stamp + +build-stamp: configure-stamp + dh_testdir + + cd src && $(MAKE) && cd .. + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) --directory=$(CURDIR)/src distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_installdirs + + # Add here commands to install the package into debian/uanytun. + cd src && $(MAKE) DESTDIR=$(CURDIR)/debian/uanytun install && cd .. + # Fix unusual path: + mv debian/uanytun/usr/share/uanytun/examples/uanytun debian/uanytun/usr/share/uanytun/examples/config + echo "example configurations can be found at /usr/share/uanytun/examples/config" > debian/uanytun/etc/uanytun/README + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installinit + dh_installman doc/uanytun.8 + dh_link + dh_strip + dh_compress + mkdir -p debian/uanytun/usr/share/lintian/overrides/ + cp -av debian/overrides debian/uanytun/usr/share/lintian/overrides/uanytun + dh_fixperms + find debian/uanytun -type f -name config -exec chmod 600 {} \; + find debian/uanytun -type f -name post-up.sh -exec chmod 755 {} \; + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/uanytun.default b/debian/uanytun.default new file mode 100644 index 0000000..d9d62c4 --- /dev/null +++ b/debian/uanytun.default @@ -0,0 +1,5 @@ +# Defaults for uanytun initscript +# sourced by /etc/init.d/uanytun + +# Additional options that are passed to the Daemon. +DAEMONOPTS="--username uanytun" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..f0be410 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +https://www.anytun.org/download/ \ +uanytun-([\d\.]+)\.tar\.gz