debian package

This commit is contained in:
Xavier Henner 2019-08-17 11:23:45 +02:00
parent b93211cdf2
commit 6dd6211f79
14 changed files with 89 additions and 1 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
openvpn-mgt (0.1.0-0) bionic; urgency=low
* Initial release
-- Xavier Henner <xavier@euclide.org> Sat, 17 Aug 2019 11:00:00 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

12
debian/control vendored Normal file
View File

@ -0,0 +1,12 @@
Source: openvpn-mgt
Section: net
Priority: optional
Maintainer: Xavier Henner <xavier@euclide.org>
Build-Depends: debhelper (>= 5), golang-1.11
Standards-Version: 3.7.2
Package: openvpn-mgt
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, openvpn
Description: OpenVPN Management Server, manage expressvpn

1
debian/install vendored Normal file
View File

@ -0,0 +1 @@
openvpn-mgt usr/bin

5
debian/openvpn-mgt.default vendored Normal file
View File

@ -0,0 +1,5 @@
#openvpn-mgt base config
ENABLED=1
CONFIGURATION="/etc/openvpn/vpn-mgt.conf"
OPTS="-syslog"

4
debian/openvpn-mgt.postinst vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
addgroup --system openvpn
adduser --system openvpn --home /etc/openvpn --ingroup openvpn --no-create-home

8
debian/openvpn-mgt.postinst.debhelper vendored Normal file
View File

@ -0,0 +1,8 @@
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/openvpn-mgt" ]; then
update-rc.d openvpn-mgt defaults >/dev/null
invoke-rc.d openvpn-mgt start || exit $?
fi
fi
# End automatically added section

3
debian/openvpn-mgt.postrm vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exit 0

12
debian/openvpn-mgt.postrm.debhelper vendored Normal file
View File

@ -0,0 +1,12 @@
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d openvpn-mgt remove >/dev/null
fi
# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section

5
debian/openvpn-mgt.prerm.debhelper vendored Normal file
View File

@ -0,0 +1,5 @@
# Automatically added by dh_installinit
if [ -x "/etc/init.d/openvpn-mgt" ]; then
invoke-rc.d openvpn-mgt stop || exit $?
fi
# End automatically added section

17
debian/openvpn-mgt.service vendored Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=openvpn-mgt
After=network.target
[Service]
User=openvpn
Group=openvpn
EnvironmentFile=/etc/default/openvpn-mgt
StandardOutput=null
StandardError=journal
LimitNOFILE=65536
ExecStart=/usr/bin/openvpn-mgt -config ${CONFIGURATION} ${OPTS}
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target

3
debian/openvpn-mgt.substvars vendored Normal file
View File

@ -0,0 +1,3 @@
shlibs:Depends=libc6 (>= 2.3.2)
misc:Depends=
misc:Pre-Depends=

12
debian/rules vendored Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/default.mk
DEB_BUILD_OPTIONS=nostrip
override_dh_strip:
override_dh_strip_nondeterminism:
%:
dh $@

File diff suppressed because one or more lines are too long