[NetworkManager-openconnect: 1/5] Add Debian packaging for OBS workflow




commit dae4c87d7df10d5a1fdbd48487b56ae92df5fdea
Author: Luca Boccassi <bluca debian org>
Date:   Thu Apr 14 14:17:21 2022 +0200

    Add Debian packaging for OBS workflow

 .obs/debian/changelog                              |  5 ++
 .obs/debian/control                                | 55 ++++++++++++++++++
 .obs/debian/copyright                              | 66 ++++++++++++++++++++++
 .../network-manager-openconnect-gnome.install      |  3 +
 .obs/debian/network-manager-openconnect.install    |  5 ++
 .obs/debian/network-manager-openconnect.postinst   | 28 +++++++++
 .obs/debian/network-manager-openconnect.postrm     | 22 ++++++++
 .obs/debian/rules                                  | 29 ++++++++++
 .obs/network-manager-openconnect.dsc               | 21 +++++++
 9 files changed, 234 insertions(+)
---
diff --git a/.obs/debian/changelog b/.obs/debian/changelog
new file mode 100644
index 0000000..a6f1376
--- /dev/null
+++ b/.obs/debian/changelog
@@ -0,0 +1,5 @@
+network-manager-openconnect (1.2.9-0) unstable; urgency=medium
+
+  * Initial packaging.
+
+ -- OpenConnect Team <openconnect-devel lists infradead org>  Thu, 14 Apr 2022 11:21:53 +0000
diff --git a/.obs/debian/control b/.obs/debian/control
new file mode 100644
index 0000000..62a6297
--- /dev/null
+++ b/.obs/debian/control
@@ -0,0 +1,55 @@
+Source: network-manager-openconnect
+Maintainer: OpenConnect Team <openconnect-devel lists infradead org>
+Section: net
+Priority: optional
+Build-Depends: debhelper-compat (= 12),
+               intltool,
+               libgcr-3-dev,
+               libglib2.0-dev,
+               libgtk-3-dev,
+# Added via OBS prjconf, so that it still builds on older Ubuntu/Debian versions
+#               libgtk-4-bin,
+#               libgtk-4-dev,
+               libnm-dev,
+               libnma-dev,
+#               libnma-gtk4-dev,
+               libopenconnect-dev (>= 8.20~),
+               libsecret-1-dev,
+               libxml2-dev
+Rules-Requires-Root: no
+Standards-Version: 4.6.0
+Vcs-Browser: https://gitlab.gnome.org/GNOME/NetworkManager-openconnect
+Vcs-Git: https://gitlab.gnome.org/GNOME/NetworkManager-openconnect.git
+Homepage: https://www.gnome.org/projects/NetworkManager/
+
+Package: network-manager-openconnect
+Architecture: any
+Depends: adduser,
+         network-manager,
+         openconnect,
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: network management framework (OpenConnect plugin core)
+ NetworkManager is a system network service that manages your network devices
+ and connections, attempting to keep active network connectivity when
+ available. It manages ethernet, Wi-Fi, mobile broadband (WWAN), and PPPoE
+ devices, and provides VPN integration with a variety of different VPN
+ services.
+ .
+ This package provides a VPN plugin for OpenConnect, an open client for
+ Cisco's AnyConnect SSL VPN, Juniper's Pulse Connect Secure and Palo Alto's
+ GlobalProtect.
+
+Package: network-manager-openconnect-gnome
+Architecture: any
+Depends: network-manager-openconnect (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: network management framework (OpenConnect plugin GNOME GUI)
+ NetworkManager is a system network service that manages your network devices
+ and connections, attempting to keep active network connectivity when
+ available. It manages ethernet, Wi-Fi, mobile broadband (WWAN), and PPPoE
+ devices, and provides VPN integration with a variety of different VPN
+ services.
+ .
+ This package provides the GNOME bits of NetworkManager's OpenConnect plugin.
diff --git a/.obs/debian/copyright b/.obs/debian/copyright
new file mode 100644
index 0000000..fbf1e3b
--- /dev/null
+++ b/.obs/debian/copyright
@@ -0,0 +1,66 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: NetworkManager-openconnect
+Upstream-Contact: Dan Williams <dcbw redhat com>
+Source: https://ftp.gnome.org/pub/GNOME/sources/NetworkManager-openconnect/
+
+Files: *
+Copyright: 2008-2010 Intel Corporation.
+           2005-2011 Red Hat, Inc.
+           2007-2008 Novell, Inc.
+           2005-2008 Dan Williams <dcbw redhat com>
+           2005 David Zeuthen <davidz redhat com>
+           2008 Tambet Ingo <tambet gmail com>
+License: GPL-2+
+
+Files: appdata/network-manager-openconnect.metainfo.xml
+Copyright: 2016-2018 Lubomir Rintel <lkundrak v3 sk>
+License: CC0-1.0
+
+Files: auth-dialog/main.c
+Copyright: 2008-2012 Intel Corporation.
+License: LGPL-2.1
+
+Files: debian/*
+Copyright: 2012-2019 Mike Miller <mtmiller debian org>
+           2009-2011 Ross Burton <ross debian org>
+           2020-2022 Luca Boccassi <bluca debian org>
+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'.
+
+License: LGPL-2.1
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License version 2.1, as published by the Free Software Foundation.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+License: CC0-1.0
+ On Debian systems the full text of the CC0-1.0 license can be found in
+ /usr/share/common-licenses/CC0-1.0
diff --git a/.obs/debian/network-manager-openconnect-gnome.install 
b/.obs/debian/network-manager-openconnect-gnome.install
new file mode 100644
index 0000000..d43c48d
--- /dev/null
+++ b/.obs/debian/network-manager-openconnect-gnome.install
@@ -0,0 +1,3 @@
+usr/lib/*/NetworkManager/libnm-*vpn-plugin-openconnect-editor.so
+usr/lib/NetworkManager/nm-openconnect-auth-dialog
+usr/share/appdata/network-manager-openconnect.metainfo.xml usr/share/metainfo/
diff --git a/.obs/debian/network-manager-openconnect.install b/.obs/debian/network-manager-openconnect.install
new file mode 100644
index 0000000..5cd20ff
--- /dev/null
+++ b/.obs/debian/network-manager-openconnect.install
@@ -0,0 +1,5 @@
+etc
+usr/lib/*/NetworkManager/libnm-vpn-plugin-openconnect.so
+usr/lib/NetworkManager/VPN/nm-openconnect-service.name
+usr/lib/NetworkManager/nm-openconnect-service*
+usr/share/locale
diff --git a/.obs/debian/network-manager-openconnect.postinst 
b/.obs/debian/network-manager-openconnect.postinst
new file mode 100644
index 0000000..9174662
--- /dev/null
+++ b/.obs/debian/network-manager-openconnect.postinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+        # Create user account for dropping privileges to run openconnect.
+        adduser --system --quiet \
+            --home /var/lib/NetworkManager --no-create-home \
+            --gecos "NetworkManager OpenConnect plugin" \
+            --group nm-openconnect
+
+        # Ask dbus to reload the VPN service config file.
+        if [ -x "/etc/init.d/dbus" ]; then
+            invoke-rc.d dbus force-reload || true
+        fi
+        ;;
+    abort-upgrade|abort-remove|abort-deconfigure)
+        ;;
+    *)
+        echo "postinst called with unknown arguments \`$1'" >&2
+        exit 1
+        ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/.obs/debian/network-manager-openconnect.postrm b/.obs/debian/network-manager-openconnect.postrm
new file mode 100644
index 0000000..155acfd
--- /dev/null
+++ b/.obs/debian/network-manager-openconnect.postrm
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    purge)
+        # Delete user account, user owns no files so nothing else to remove.
+        # Fail silently if deluser fails or is not installed, may leave the
+        # account on the system but that is ok.
+        deluser --system --quiet nm-openconnect 2> /dev/null || true
+        ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        ;;
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+        ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/.obs/debian/rules b/.obs/debian/rules
new file mode 100755
index 0000000..558a8f8
--- /dev/null
+++ b/.obs/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+include /usr/share/dpkg/architecture.mk
+
+# Support older distros without GTK4
+ifneq ("$(shell dpkg -l | grep libgtk-4-dev)","")
+       GTK4=yes
+else
+       GTK4=no
+endif
+
+%:
+       dh $@
+
+override_dh_auto_configure:
+       intltoolize --force
+       dh_auto_configure -- \
+               --with-gnome \
+               --with-gtk4=$(GTK4) \
+               --libexecdir=/usr/lib/NetworkManager \
+               --disable-static
+
+execute_before_dh_install:
+       find debian/tmp -name '*.la' -print -delete
+
+override_dh_makeshlibs:
+       dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/NetworkManager/
diff --git a/.obs/network-manager-openconnect.dsc b/.obs/network-manager-openconnect.dsc
new file mode 100644
index 0000000..1d7d401
--- /dev/null
+++ b/.obs/network-manager-openconnect.dsc
@@ -0,0 +1,21 @@
+Format: 1.0
+Source: network-manager-openconnect
+Binary: network-manager-openconnect, network-manager-openconnect-gnome
+Architecture: any
+Version: 1.2.9-0
+Maintainer: OpenConnect Team <openconnect-devel lists infradead org>
+Homepage: https://www.gnome.org/projects/NetworkManager/
+Standards-Version: 4.6.0
+Vcs-Browser: https://gitlab.gnome.org/GNOME/NetworkManager-openconnect
+Vcs-Git: https://gitlab.gnome.org/GNOME/NetworkManager-openconnect.git
+Build-Depends: debhelper-compat (= 12), intltool, libgcr-3-dev, libglib2.0-dev, libgtk-3-dev, libnm-dev, 
libnma-dev, libopenconnect-dev (>= 8.20~), libsecret-1-dev, libxml2-dev
+Package-List:
+ network-manager-openconnect deb net optional arch=any
+ network-manager-openconnect-gnome deb net optional arch=any
+Checksums-Sha1:
+ 5cdf1e1380070fcb471c0b6775075c237393f2c0 857808 network-manager-openconnect_1.2.9.tar.xz
+Checksums-Sha256:
+ 5dedaa785d82d8e239ddd082bfac5250c691e964464be1807b6827263633cdcc 857808 
network-manager-openconnect_1.2.9.tar.xz
+Files:
+ 8c858ae6f4ba6c0c4931d8a707bb40c6 857808 network-manager-openconnect_1.2.9.tar.xz
+DEBTRANSFORM-RELEASE: 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]