Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Orlov <dorlov@undev.ru>2014-02-05 01:49:46 +0400
committerDmitry Orlov <dorlov@undev.ru>2014-02-05 01:50:54 +0400
commitb3611304b5dd1b69d2a6b68ec83a8ccc76f9b126 (patch)
treecdb0c929ab42ea12fda37609fc867ba6dbcd4563
parent001fd910fedfd0ef1690a9d3c50c1a28d1680d1d (diff)
Add simple debian packaging
-rwxr-xr-xdebian/bin/vpnbridge3
-rwxr-xr-xdebian/bin/vpnclient3
-rwxr-xr-xdebian/bin/vpncmd3
-rwxr-xr-xdebian/bin/vpnserver3
-rw-r--r--debian/changelog5
-rw-r--r--debian/control80
-rw-r--r--debian/init.d/vpnserver69
-rw-r--r--debian/makefile.patch19
-rwxr-xr-xdebian/rules22
-rw-r--r--debian/softether-vpnbridge.install2
-rw-r--r--debian/softether-vpnclient.install2
-rw-r--r--debian/softether-vpncmd.install2
-rw-r--r--debian/softether-vpnserver.install2
-rw-r--r--debian/source/format1
14 files changed, 216 insertions, 0 deletions
diff --git a/debian/bin/vpnbridge b/debian/bin/vpnbridge
new file mode 100755
index 00000000..93e0e6a6
--- /dev/null
+++ b/debian/bin/vpnbridge
@@ -0,0 +1,3 @@
+#!/bin/sh
+/opt/vpnbridge/vpnbridge "$@"
+exit $?
diff --git a/debian/bin/vpnclient b/debian/bin/vpnclient
new file mode 100755
index 00000000..dae45e13
--- /dev/null
+++ b/debian/bin/vpnclient
@@ -0,0 +1,3 @@
+#!/bin/sh
+/opt/vpnclient/vpnclient "$@"
+exit $?
diff --git a/debian/bin/vpncmd b/debian/bin/vpncmd
new file mode 100755
index 00000000..d3abbc4b
--- /dev/null
+++ b/debian/bin/vpncmd
@@ -0,0 +1,3 @@
+#!/bin/sh
+/opt/vpncmd/vpncmd "$@"
+exit $?
diff --git a/debian/bin/vpnserver b/debian/bin/vpnserver
new file mode 100755
index 00000000..f8e85f73
--- /dev/null
+++ b/debian/bin/vpnserver
@@ -0,0 +1,3 @@
+#!/bin/sh
+/opt/vpnserver/vpnserver "$@"
+exit $?
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..fc27eb06
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+softether-vpn (0:4.04.9412-rtm) unstable; urgency=low
+
+ * Testing debianization
+
+ -- Dmitry Orlov <me@mosquito.su> Tue, 4 Feb 2014 20:24:43 +0000
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..e25dd74e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,80 @@
+Source: softether-vpn
+Section: net
+Priority: optional
+Maintainer: Dmitry Orlov <me@mosquito.su>
+Build-Depends: debhelper (>= 7.0.50~), libncurses-dev, linux-libc-dev, libssl-dev, libreadline-dev, build-essential
+Standards-Version: 3.9.1
+Homepage: http://www.softether.org/
+
+Package: softether-vpnbridge
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, softether-vpncmd
+Section: net
+Description: VPN Bridge daemon
+ An Open-Source Free Cross-platform Multi-protocol VPN Program, as an academic project from University of Tsukuba.
+ SoftEther VPN ("SoftEther" means "Software Ethernet") is one of the world's most
+ powerful and easy-to-use multi-protocol VPN software.
+ It runs on Windows, Linux, Mac, FreeBSD and Solaris.
+ SoftEther VPN is open source. You can use SoftEther for any
+ personal or commercial use for free charge.
+ SoftEther VPN is an optimum alternative to
+ OpenVPN and Microsoft's VPN servers. SoftEther VPN
+ has a clone-function of OpenVPN Server.
+ You can integrate from OpenVPN to SoftEther VPN smoothly.
+ SoftEther VPN is faster than OpenVPN.
+ SoftEther VPN also supports Microsoft SSTP VPN for Windows Vista / 7 / 8.
+
+Package: softether-vpnclient
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, softether-vpncmd
+Section: net
+Description: VPN Client daemon
+ An Open-Source Free Cross-platform Multi-protocol VPN Program, as an academic project from University of Tsukuba.
+ SoftEther VPN ("SoftEther" means "Software Ethernet") is one of the world's most
+ powerful and easy-to-use multi-protocol VPN software.
+ It runs on Windows, Linux, Mac, FreeBSD and Solaris.
+ SoftEther VPN is open source. You can use SoftEther for any
+ personal or commercial use for free charge.
+ SoftEther VPN is an optimum alternative to
+ OpenVPN and Microsoft's VPN servers. SoftEther VPN
+ has a clone-function of OpenVPN Server.
+ You can integrate from OpenVPN to SoftEther VPN smoothly.
+ SoftEther VPN is faster than OpenVPN.
+ SoftEther VPN also supports Microsoft SSTP VPN for Windows Vista / 7 / 8.
+
+Package: softether-vpncmd
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Section: net
+Description: Command line utils
+ An Open-Source Free Cross-platform Multi-protocol VPN Program, as an academic project from University of Tsukuba.
+ SoftEther VPN ("SoftEther" means "Software Ethernet") is one of the world's most
+ powerful and easy-to-use multi-protocol VPN software.
+ It runs on Windows, Linux, Mac, FreeBSD and Solaris.
+ SoftEther VPN is open source. You can use SoftEther for any
+ personal or commercial use for free charge.
+ SoftEther VPN is an optimum alternative to
+ OpenVPN and Microsoft's VPN servers. SoftEther VPN
+ has a clone-function of OpenVPN Server.
+ You can integrate from OpenVPN to SoftEther VPN smoothly.
+ SoftEther VPN is faster than OpenVPN.
+ SoftEther VPN also supports Microsoft SSTP VPN for Windows Vista / 7 / 8.
+
+Package: softether-vpnserver
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, softether-vpncmd
+Section: net
+Description: VPN Server daemon
+ An Open-Source Free Cross-platform Multi-protocol VPN Program, as an academic project from University of Tsukuba.
+ SoftEther VPN ("SoftEther" means "Software Ethernet") is one of the world's most
+ powerful and easy-to-use multi-protocol VPN software.
+ It runs on Windows, Linux, Mac, FreeBSD and Solaris.
+ SoftEther VPN is open source. You can use SoftEther for any
+ personal or commercial use for free charge.
+ SoftEther VPN is an optimum alternative to
+ OpenVPN and Microsoft's VPN servers. SoftEther VPN
+ has a clone-function of OpenVPN Server.
+ You can integrate from OpenVPN to SoftEther VPN smoothly.
+ SoftEther VPN is faster than OpenVPN.
+ SoftEther VPN also supports Microsoft SSTP VPN for Windows Vista / 7 / 8.
+
diff --git a/debian/init.d/vpnserver b/debian/init.d/vpnserver
new file mode 100644
index 00000000..012e47bd
--- /dev/null
+++ b/debian/init.d/vpnserver
@@ -0,0 +1,69 @@
+#! /bin/sh
+#
+# Author: Dmitry Orlov <me@mosquito.su>
+# From Debian skeleton (Tom deLombarde)
+#
+
+set -e
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/qmsys/bin
+DAEMON=/usr/bin/vpnserver
+NAME=vpnserver
+DESC="SoftEtherVPN Server"
+
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Gracefully exit if the package has been removed.
+test -x $DAEMON || exit 0
+
+# Read config file if it is present.
+#if [ -r /etc/default/$NAME ]
+#then
+# . /etc/default/$NAME
+#fi
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: $NAME"
+ $DAEMON -start
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: $NAME"
+ $DAEMON -stop
+ echo "."
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo -n "Reloading $DESC configuration..."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # $PIDFILE --exec $DAEMON
+ # echo "done."
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart".
+ #
+ echo -n "Restarting $DESC: $NAME"
+ $DAEMON -stop
+ sleep 1
+ $DAEMON -start
+ echo "."
+ ;;
+ *)
+ # echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/makefile.patch b/debian/makefile.patch
new file mode 100644
index 00000000..9b2a723c
--- /dev/null
+++ b/debian/makefile.patch
@@ -0,0 +1,19 @@
+--- Makefile 2014-02-04 21:20:33.422762017 +0000
++++ Makefile.old 2014-02-04 21:20:10.298761727 +0000
+@@ -32,11 +32,11 @@
+
+ OPTIONS_LINK_RELEASE=-O2 -fsigned-char -m64 -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
+
+-INSTALL_BINDIR=/usr/bin/
+-INSTALL_VPNSERVER_DIR=/usr/vpnserver/
+-INSTALL_VPNBRIDGE_DIR=/usr/vpnbridge/
+-INSTALL_VPNCLIENT_DIR=/usr/vpnclient/
+-INSTALL_VPNCMD_DIR=/usr/vpncmd/
++INSTALL_BINDIR=usr/bin/
++INSTALL_VPNSERVER_DIR=usr/vpnserver/
++INSTALL_VPNBRIDGE_DIR=usr/vpnbridge/
++INSTALL_VPNCLIENT_DIR=usr/vpnclient/
++INSTALL_VPNCMD_DIR=usr/vpncmd/
+
+ ifeq ($(DEBUG),YES)
+ OPTIONS_COMPILE=$(OPTIONS_COMPILE_DEBUG)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..4eece040
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
+
+%:
+ dh $@
+
+override_dh_auto_configure: configure_config
+
+override_dh_auto_clean:
+ rm -fr Makefile* usr bin tmp src/bin/BuiltHamcoreFiles
+
+override_dh_auto_install:
+ patch -f < debian/makefile.patch
+ mkdir -p usr/bin
+ make install
+
+configure_config:
+ if [ $(shell uname -m) = 'x86_64' ]; then echo "1\n2\n" | ./configure; fi
+ if [ $(shell uname -m) = 'i686' ]; then echo "1\n1\n" | ./configure; fi
diff --git a/debian/softether-vpnbridge.install b/debian/softether-vpnbridge.install
new file mode 100644
index 00000000..5d506f28
--- /dev/null
+++ b/debian/softether-vpnbridge.install
@@ -0,0 +1,2 @@
+debian/bin/vpnbridge usr/bin/
+usr/vpnbridge opt/
diff --git a/debian/softether-vpnclient.install b/debian/softether-vpnclient.install
new file mode 100644
index 00000000..be384a10
--- /dev/null
+++ b/debian/softether-vpnclient.install
@@ -0,0 +1,2 @@
+debian/bin/vpnclient usr/bin/
+usr/vpnclient opt/
diff --git a/debian/softether-vpncmd.install b/debian/softether-vpncmd.install
new file mode 100644
index 00000000..4b6fbf2b
--- /dev/null
+++ b/debian/softether-vpncmd.install
@@ -0,0 +1,2 @@
+debian/bin/vpncmd usr/bin/
+usr/vpncmd opt/
diff --git a/debian/softether-vpnserver.install b/debian/softether-vpnserver.install
new file mode 100644
index 00000000..c83cedb5
--- /dev/null
+++ b/debian/softether-vpnserver.install
@@ -0,0 +1,2 @@
+debian/bin/vpnserver usr/bin/
+usr/vpnserver opt/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 00000000..163aaf8d
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)