From 91116306a13ef67223b5940b03ddae1e577eb5c6 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 4 Mar 2021 16:41:52 +0100 Subject: [PATCH] Add initial Debian packages files --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 14 ++++++++++++++ debian/install | 3 +++ debian/postinst | 15 +++++++++++++++ debian/rules | 13 +++++++++++++ 6 files changed, 51 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/install create mode 100644 debian/postinst create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1e55a02 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +omr-server (0.1025) unstable; urgency=medium + + * Wireguard support and fixed + + -- OpenMPTCProuter Thu, 04 Mar 2021 14:36:12 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..9a03714 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 \ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5f0b05c --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: omr-server +Section: net +Priority: optional +Maintainer: OpenMPTCProuter +Build-Depends: debhelper (>= 10) +X-Python-Version: >= 3.2 +Standards-Version: 0.0.1 +Homepage: https://github.com/ysurac/openmptcprouter-vps + +Package: omr-server +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends} +Description: OpenMPTCProuter Server script \ No newline at end of file diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..2595ec1 --- /dev/null +++ b/debian/install @@ -0,0 +1,3 @@ +* usr/share/omr-server +shorewall4/* usr/share/omr-server/shorewall4 +shorewall6/* usr/share/omr-server/shorewall6 diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..9631851 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,15 @@ +#!/bin/sh -e + +test $DEBIAN_SCRIPT_DEBUG && set -v -x + +# use debconf +. /usr/share/debconf/confmodule + +cd /usr/share/omr-server +LOCALFILES=no SOURCES=no sh build.sh + +db_stop + +#DEBHELPER# +exit 0 +# vim:set ai et sts=2 sw=2 tw=0: \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a45cfea --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +# Security Hardening +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ + +override_dh_auto_install: + mkdir -p /usr/share/omr-server/shorewall4 + mkdir -p /usr/share/omr-server/shorewall6 +