From 67f27f74466ef1a85aef9bb6833a1437cb3d46f7 Mon Sep 17 00:00:00 2001 From: Tun Win Naing Date: Mon, 15 Feb 2016 13:44:18 +0630 Subject: [PATCH] initial commit --- .SRCINFO | 23 +++++++++++++++++ PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++ softethervpn-bridge.service | 11 ++++++++ softethervpn-client.service | 11 ++++++++ softethervpn-server.service | 11 ++++++++ 5 files changed, 106 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 softethervpn-bridge.service create mode 100644 softethervpn-client.service create mode 100644 softethervpn-server.service diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..f794bb9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by mksrcinfo v8 +# Mon Feb 15 07:03:40 UTC 2016 +pkgbase = softethervpn + pkgdesc = Multi-protocol VPN Program from University of Tsukuba + pkgver = v4.18_9570 + pkgrel = 1 + url = http://www.softether.org/ + arch = i686 + arch = x86_64 + license = GPL + depends = bash + depends = openssl + source = http://www.softether-download.com/files/softether/v4.18-9570-rtm-2015.07.26-tree/Source_Code/softether-src-v4.18-9570-rtm.tar.gz + source = softethervpn-bridge.service + source = softethervpn-client.service + source = softethervpn-server.service + sha1sums = 1ab52bd794a3ae9cf6b9b8c0ad978ef0d222349b + sha1sums = e3d0c38be26123bb533e80f0a595e9867e9cf6ad + sha1sums = efd246e8176683237609b7dae2e12300169b297f + sha1sums = cdfb0c943128286bb318b5c044e5ca53c1dcffff + +pkgname = softethervpn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..491b2fd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Tun Win Naing +pkgname=softethervpn +pkgver=v4.18_9570 +pkgrel=1 +pkgdesc="Multi-protocol VPN Program from University of Tsukuba" +arch=('i686' 'x86_64') +source=('http://www.softether-download.com/files/softether/v4.18-9570-rtm-2015.07.26-tree/Source_Code/softether-src-v4.18-9570-rtm.tar.gz' + 'softethervpn-bridge.service' + 'softethervpn-client.service' + 'softethervpn-server.service') +sha1sums=('1ab52bd794a3ae9cf6b9b8c0ad978ef0d222349b' + 'e3d0c38be26123bb533e80f0a595e9867e9cf6ad' + 'efd246e8176683237609b7dae2e12300169b297f' + 'cdfb0c943128286bb318b5c044e5ca53c1dcffff') +license=('GPL') +makedepends=() +depends=('bash' 'openssl') +url="http://www.softether.org/" + +#pkgver() { +# cd "SoftEtherVPN" +# git log | grep -o -m1 'v[0-9].*' | tr '-' '.' +#} + +build(){ + cd "${srcdir}/${pkgver//_/-}" + if [ "${CARCH}" == "i686" ]; then + cp src/makefiles/linux_32bit.mak Makefile + elif [ "${CARCH}" == "x86_64" ]; then + cp src/makefiles/linux_64bit.mak Makefile + fi + make +} + +package(){ + cd "${srcdir}/${pkgver//_/-}" + install -Dm644 bin/vpnserver/hamcore.se2 "${pkgdir}"/usr/lib/softethervpn/hamcore.se2 + install -d "${pkgdir}"/usr/bin + for inst in vpnclient vpnserver vpnbridge vpncmd + do + install -Dm755 bin/${inst}/${inst} "${pkgdir}"/usr/lib/softethervpn/${inst}/${inst} + ln -s /usr/lib/softethervpn/hamcore.se2 "${pkgdir}"/usr/lib/softethervpn/${inst}/hamcore.se2 + echo "#!/bin/sh" > "${pkgdir}"/usr/bin/${inst} + echo /usr/lib/softethervpn/${inst}/${inst} '"$@"' >> "${pkgdir}"/usr/bin/${inst} + echo 'exit $?' >> "${pkgdir}"/usr/bin/${inst} + chmod 755 "${pkgdir}"/usr/bin/${inst} + done + install -d "${pkgdir}"/usr/lib/systemd/system + install -Dm644 "${srcdir}"/*.service "${pkgdir}"/usr/lib/systemd/system +} diff --git a/softethervpn-bridge.service b/softethervpn-bridge.service new file mode 100644 index 0000000..f18fe71 --- /dev/null +++ b/softethervpn-bridge.service @@ -0,0 +1,11 @@ +[Unit] +Description=SoftEther VPN Bridge daemon +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/vpnbridge start +ExecReload=/usr/bin/vpnbridge stop + +[Install] +WantedBy=multi-user.target diff --git a/softethervpn-client.service b/softethervpn-client.service new file mode 100644 index 0000000..b6c674c --- /dev/null +++ b/softethervpn-client.service @@ -0,0 +1,11 @@ +[Unit] +Description=SoftEther VPN Client daemon +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/vpnclient start +ExecReload=/usr/bin/vpnclient stop + +[Install] +WantedBy=multi-user.target diff --git a/softethervpn-server.service b/softethervpn-server.service new file mode 100644 index 0000000..50984e2 --- /dev/null +++ b/softethervpn-server.service @@ -0,0 +1,11 @@ +[Unit] +Description=SoftEther VPN Server daemon +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/vpnserver start +ExecReload=/usr/bin/vpnserver stop + +[Install] +WantedBy=multi-user.target