From 68b0bb754f190d900aefb43099a3088884babc4a Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 12 Nov 2020 07:27:00 +0100 Subject: Add Debian packaging. --- debian/autogen.sh | 11 +++++++++++ debian/changelog | 6 ++++++ debian/compat | 1 + debian/control | 15 +++++++++++++++ debian/copyright | 36 ++++++++++++++++++++++++++++++++++++ debian/docs | 1 + debian/lintian | 2 ++ debian/rules | 15 +++++++++++++++ 8 files changed, 87 insertions(+) create mode 100755 debian/autogen.sh create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/lintian create mode 100755 debian/rules (limited to 'debian') diff --git a/debian/autogen.sh b/debian/autogen.sh new file mode 100755 index 0000000..e8c94af --- /dev/null +++ b/debian/autogen.sh @@ -0,0 +1,11 @@ +#!/bin/sh + + +rm -rf config +rm -f aclocal.m4 config.guess config.statusconfig.sub configure INSTALL + +autoreconf --force --install + +rm -f config.sub config.guess +ln -s /usr/share/misc/config.sub . +ln -s /usr/share/misc/config.guess . diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2767cff --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +openvpn-plugin-duo (2.4) unstable; urgency=low + + * Initial packaging. + + -- Daniil Baturin Thu, 12 Nov 2020 07:43:59 +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..3d13048 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: openvpn-plugin-duo +Section: contrib/net +Priority: extra +Maintainer: VyOS maintainers and contributors +Standards-Version: 3.9.1 +Build-Depends: debhelper (>= 9), autotools-dev, autoconf, quilt, python3 + +Package: openvpn-plugin-duo +Architecture: any +Depends: openvpn, + python3 + ${misc:Depends} +Replaces: openvpn-plugin-duo +Description: OpenVPN plugin for Duo 2FA + OpenVPN plugin for Duo 2FA diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a71ba45 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Daniil Baturin on +Thu, 12 Nov 2020. + +It's original content from the GIT repository + + +Upstream Author: + + + +Copyright: + + Copyright (C) 2018 Duo Security. + All Rights Reserved. + +License: + +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, 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. + +A copy of the GNU General Public License is available as +`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution +or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'. +You can also obtain it by writing to the Free Software Foundation, +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + +The Debian packaging is (C) 2020 Daniil Baturin and +is licensed under the GPL, see above. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/lintian b/debian/lintian new file mode 100644 index 0000000..dc04aef --- /dev/null +++ b/debian/lintian @@ -0,0 +1,2 @@ +vyatta-cron: file-in-unusual-dir +vyatta-cron: dir-or-file-in-opt diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0b2cbc2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +DIR := debian/openvpn-plugin-duo +PREFIX := /usr/lib/openvpn/duo + +%: + dh $@ --with python3, --with quilt + +override_dh_auto_build: + make PREFIX=$(PREFIX) + +override_dh_auto_install: + mkdir -p $(DIR)/$(PREFIX) + + make install DESTDIR=$(DIR) PREFIX=$(PREFIX) -- cgit v1.2.3