summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/autogen.sh11
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control15
-rw-r--r--debian/copyright36
-rw-r--r--debian/docs1
-rw-r--r--debian/lintian2
-rwxr-xr-xdebian/rules15
8 files changed, 87 insertions, 0 deletions
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 <daniil@vyos.io> 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 <maintainers@vyos.net>
+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 <daniil@baturin.org> on
+Thu, 12 Nov 2020.
+
+It's original content from the GIT repository
+ <https://github.com/duosecurity/duo_openvpn>
+
+Upstream Author:
+
+ <support@duosecurity.com>
+
+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 <daniil@vyos.io> 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)