From f3d1c3e213bd21e5aeca3277e3ac96b8f40f3529 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 16 Apr 2022 12:27:13 +0200 Subject: [PATCH] Add Debian packaging for OBS workflow Signed-off-by: Luca Boccassi --- .obs/debian/changelog | 5 +++++ .obs/debian/control | 29 +++++++++++++++++++++++++++++ .obs/debian/copyright | 32 ++++++++++++++++++++++++++++++++ .obs/debian/rules | 12 ++++++++++++ .obs/vpnc-scripts.dsc | 19 +++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 .obs/debian/changelog create mode 100644 .obs/debian/control create mode 100644 .obs/debian/copyright create mode 100755 .obs/debian/rules create mode 100644 .obs/vpnc-scripts.dsc diff --git a/.obs/debian/changelog b/.obs/debian/changelog new file mode 100644 index 0000000..ca672d9 --- /dev/null +++ b/.obs/debian/changelog @@ -0,0 +1,5 @@ +vpnc-scripts (0.1~git20220305) unstable; urgency=medium + + * Initial packaging. + + -- OpenConnect Team Sat, 16 Apr 2022 10:13:56 +0000 diff --git a/.obs/debian/control b/.obs/debian/control new file mode 100644 index 0000000..00193e6 --- /dev/null +++ b/.obs/debian/control @@ -0,0 +1,29 @@ +Source: vpnc-scripts +Maintainer: OpenConnect Team +Section: net +Priority: optional +Build-Depends: debhelper-compat (= 12) +Standards-Version: 4.6.0 +Rules-Requires-Root: no +Vcs-Browser: https://gitlab.com/openconnect/vpnc-scripts +Vcs-Git: https://gitlab.com/openconnect/vpnc-scripts.git +Homepage: https://www.infradead.org/openconnect/vpnc-script.html + +Package: vpnc-scripts +Architecture: all +Multi-Arch: foreign +Depends: iproute2 | net-tools, + ${misc:Depends} +Suggests: dnsmasq, + openssh-server, + resolvconf +Description: Network configuration scripts for VPNC and OpenConnect + This package contains scripts required to configure routing and name + services when invoked by the VPNC or OpenConnect VPN clients. + The primary script automatically configures network routes and name + servers for the active VPN connection. It also provides hooks for + executing custom actions at various stages of the connection and + disconnection process. + . + An alternate replacement script is also provided that contains the VPN + in a network namespace which is accessible via SSH. diff --git a/.obs/debian/copyright b/.obs/debian/copyright new file mode 100644 index 0000000..bd40349 --- /dev/null +++ b/.obs/debian/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: vpnc-scripts +Upstream-Contact: David Woodhouse +Source: https://gitlab.com/openconnect/vpnc-scripts + +Files: * +Copyright: 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al. + 2009-2020 David Woodhouse +License: GPL-2+ + +Files: debian/* +Copyright: 2012-2019 Mike Miller + 2020-2022 Luca Boccassi +License: GPL-2+ + +License: GPL-2+ + 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 2 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + . + On Debian systems, the complete text of the GNU General Public + License version 2 can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/.obs/debian/rules b/.obs/debian/rules new file mode 100755 index 0000000..ce7f23e --- /dev/null +++ b/.obs/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +SCRIPTS = vpnc-script vpnc-script-sshd + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install + mkdir -p debian/vpnc-scripts/usr/share/vpnc-scripts + cp $(SCRIPTS) debian/vpnc-scripts/usr/share/vpnc-scripts + chmod +x debian/vpnc-scripts/usr/share/vpnc-scripts/vpnc-script* diff --git a/.obs/vpnc-scripts.dsc b/.obs/vpnc-scripts.dsc new file mode 100644 index 0000000..6ed46f5 --- /dev/null +++ b/.obs/vpnc-scripts.dsc @@ -0,0 +1,19 @@ +Format: 1.0 +Source: vpnc-scripts +Binary: vpnc-scripts +Architecture: all +Version: 0.1~git20220305 +Maintainer: OpenConnect Team +Homepage: https://www.infradead.org/openconnect/vpnc-script.html +Standards-Version: 4.6.0 +Vcs-Browser: https://gitlab.com/openconnect/vpnc-scripts +Vcs-Git: https://gitlab.com/openconnect/vpnc-scripts.git +Build-Depends: debhelper-compat (= 12) +Package-List: + vpnc-scripts deb net optional arch=all +Checksums-Sha1: + 4ec0a3855a12e87879ee93ee18622f8d3ffe7dc8 39925 vpnc-scripts_0.1~git20210402.orig.tar.gz +Checksums-Sha256: + cd00e831904554c7acbc9cd20e6457c6e787fe52dc2f75d39263a65faccc19f0 39925 vpnc-scripts_0.1~git20210402.orig.tar.gz +Files: + 0de3882a4daed875229e3f25c7789d40 39925 vpnc-scripts_0.1~git20210402.orig.tar.gz -- 2.49.0