Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 942AE78104B for <~alpine/aports@lists.alpinelinux.org>; Fri, 14 Jan 2022 21:57:16 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E1C5732005BC for <~alpine/aports@lists.alpinelinux.org>; Fri, 14 Jan 2022 16:57:13 -0500 (EST) Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Fri, 14 Jan 2022 16:57:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=QWJmPeFPjMVxJzgSVSBBCz9OogNyd7lWpUguWbSmRXg=; b=LqyfZJQD K05vf6sb1D1sOTIi17ept4IJSITcyrSvEkqDL6FGrFxAnr/BGq3nLdNeJLd/Glt6 OqM1iQUKHK52gynQN2B5pjFCQb+V5UrwCepm6VkkI9I163GnMFp1JvOBD+vL0yAN 3kBJiJVJh51XFh1KBq+gG/Y1ds1Hv3YNlgP3r53GC4aTCK9QvkfEx9PkW3zNkbKA 3Tf2aYYEvDGFBc4C8IAlvIelGSeGB0lw7yok66x/Aql6BZLt2Is56IgkcgIDDetw xhKkK+mlTcC1Mg0Y8YyERcp0zm/4XJxDigTRwAw8tgqxPz9SBTfX7Udn7jpY6bLI zOdumTN+9gQ6qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=QWJmPeFPjMVxJzgSVSBBCz9OogNyd 7lWpUguWbSmRXg=; b=blRV+LJcj1v0FmrzV2gTNOJpU0ZQzaHto0uk2ZWFstc9W Y3a6gAgQ1rDQCGpy7aDKjSHa7dZcDpaa1SZzKVa9VNySZF7A5PYCtmSmCR6giMxA B+ByUhKIzOMuWoJMpSXuD+DC0OE3o8qFkiRdH3u2icyTlVZVB7dXhIadCr65rmXX fzT+1mpvDCD87lHZaeX/fK9HyjctcA7fFC46BiAakNgXcZZaZ33BgIclizhm56V8 WFXz2GfMW1QNJxXsywVZPPbw58P8iYzhsquSOB+ndWH8SqjOYPc3tbCsoMOf/mU2 MRPQWWbuWcG184dE2o48E6ayOYc0ORXz8okE1CAgw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrtdehgdduheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfuegvnhcuhggvihhsshdfuceosgdrfigvihhsshesfhgrshht mhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepffelveelheegfeetledujeehveefie egteehvdehudelheekhfejjefgieeitddvnecuffhomhgrihhnpehsohhfthgvthhhvghr rdhorhhgpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegsrdifvghishhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0FDF2FA0AA6; Fri, 14 Jan 2022 16:57:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4569-g891f756243-fm-20220111.001-g891f7562 Mime-Version: 1.0 Message-Id: Date: Fri, 14 Jan 2022 15:56:52 -0600 From: "Ben Weiss" To: ~alpine/aports@lists.alpinelinux.org Subject: [PATCH] testing/softether: new aport Content-Type: text/plain https://www.softether.org SoftEther VPN client and server --- testing/softether/APKBUILD | 109 ++++++++++++++++++++++++++++++ testing/softether/vpnbridge.initd | 16 +++++ testing/softether/vpnclient.initd | 16 +++++ testing/softether/vpnserver.initd | 16 +++++ 4 files changed, 157 insertions(+) create mode 100644 testing/softether/APKBUILD create mode 100644 testing/softether/vpnbridge.initd create mode 100644 testing/softether/vpnclient.initd create mode 100644 testing/softether/vpnserver.initd diff --git a/testing/softether/APKBUILD b/testing/softether/APKBUILD new file mode 100644 index 0000000000..4b2ef9075d --- /dev/null +++ b/testing/softether/APKBUILD @@ -0,0 +1,109 @@ +# Contributor: bweiss +# Maintainer: bweiss +pkgname=softether +pkgver=4.38 +_buildnumber=9760 +_buildtype=rtm +pkgrel=0 +pkgdesc="Softether VPN" +url="http://www.softether.org" +arch="all" +license="Apache-2.0" +depends="readline + openssl + zlib" +#note- if running a custom kernel, CONFIG_TUN must be set +makedepends="readline-dev + openssl-dev + zlib-dev" +source="https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v$pkgver-$_buildnumber-$_buildtype/softether-src-v$pkgver-$_buildnumber-$_buildtype.tar.gz + vpnclient.initd + vpnserver.initd + vpnbridge.initd" +builddir="$srcdir/v$pkgver-$_buildnumber" +options="!check" #no tests are implemented +subpackages=" + $pkgname-client + $pkgname-server + $pkgname-bridge + $pkgname-openrc" + +prepare() { + ./configure + default_prepare +} + +build() { + make +} + +#default make install is inflexible, and installs everything. So not using stock make install. +#base installs only libraries and management utility- then server, client, or bridge can be installed as desired seperately. +#these subpackage entries basically duplicate the relevant install sections in the original makefile (which cannot be called independantly) + +package() { + pkgdesc="$pkgdesc main library and configuration utility" + mkdir -p "$pkgdir"/usr/vpncmd + mkdir -p "$pkgdir"/usr/bin + cp "$builddir"/bin/vpncmd/hamcore.se2 "$pkgdir"/usr/vpncmd/ + cp "$builddir"/bin/vpncmd/vpncmd "$pkgdir"/usr/vpncmd + echo "#!/bin/sh" > "$pkgdir"/usr/bin/vpncmd + echo /usr/vpncmd/vpncmd '"$@"' >> "$pkgdir"/usr/bin/vpncmd + echo 'exit $?' >> "$pkgdir"/usr/bin/vpncmd + chmod 755 "$pkgdir"/usr/bin/vpncmd +} + +client() { + pkgdesc="$pkgdesc client" + depends="$depends softether" + mkdir -p "$subpkgdir"/usr/vpnclient + mkdir -p "$subpkgdir"/usr/bin + mkdir -p "$pkgdir"/etc/init.d + cp "$builddir"/bin/vpnclient/hamcore.se2 "$subpkgdir"/usr/vpnclient/ + cp "$builddir"/bin/vpnclient/vpnclient "$subpkgdir"/usr/vpnclient + echo "#!/bin/sh" > "$subpkgdir"/usr/bin/vpnclient + echo /usr/vpnclient/vpnclient '"$@"' >> "$subpkgdir"/usr/bin/vpnclient + echo 'exit $?' >> "$subpkgdir"/usr/bin/vpnclient + chmod 755 "$subpkgdir"/usr/bin/vpnclient + install -Dm755 "$srcdir"/vpnclient.initd "$pkgdir"/etc/init.d/vpnclient + +} + +server() { + pkgdesc="$pkgdesc server" + depends="$depends softether" + mkdir -p "$subpkgdir"/usr/vpnserver + mkdir -p "$subpkgdir"/usr/bin + mkdir -p "$pkgdir"/etc/init.d + cp "$builddir"/bin/vpnserver/hamcore.se2 "$subpkgdir"/usr/vpnserver/ + cp "$builddir"/bin/vpnserver/vpnserver "$subpkgdir"/usr/vpnserver + echo "#!/bin/sh" > "$subpkgdir"/usr/bin/vpnserver + echo /usr/vpnserver/vpnserver '"$@"' >> "$subpkgdir"/usr/bin/vpnserver + echo 'exit $?' >> "$subpkgdir"/usr/bin/vpnserver + chmod 755 "$subpkgdir"/usr/bin/vpnserver + install -Dm755 "$srcdir"/vpnserver.initd "$pkgdir"/etc/init.d/vpnserver + +} + +bridge() { + pkgdesc="$pkgdesc bridge" + depends="$depends softether" + mkdir -p "$subpkgdir"/usr/vpnbridge + mkdir -p "$subpkgdir"/usr/bin + mkdir -p "$pkgdir"/etc/init.d + cp "$builddir"/bin/vpnbridge/hamcore.se2 "$subpkgdir"/usr/vpnbridge/ + cp "$builddir"/bin/vpnbridge/vpnbridge "$subpkgdir"/usr/vpnbridge + echo "#!/bin/sh" > "$subpkgdir"/usr/bin/vpnbridge + echo /usr/vpnbridge/vpnbridge '"$@"' >> "$subpkgdir"/usr/bin/vpnbridge + echo 'exit $?' >> "$subpkgdir"/usr/bin/vpnbridge + chmod 755 "$subpkgdir"/usr/bin/vpnbridge + install -Dm755 "$srcdir"/vpnbridge.initd "$pkgdir"/etc/init.d/vpnbridge + +} + +sha512sums=" +48be7a4a014f85967bb3beb906a7ff34b51e0828ff4cf9844520815fc83333f453fb71b6924fe62050c3e96cab03266f92465aadb8f2d83bec2addfe9f18c8a8 softether-src-v4.38-9760-rtm.tar.gz +333b58e1c945fefc25227eba7f5de21ec12e1c12f50ddc9fa0763272c19eb9c4c64239b7e540b7e35808440913e1448be7cf4ed3495624cc9bbf209a5fd6a49f vpnclient.initd +d511a56418d46ca75dfb61b73850f70ed161a1129397ef6f68938004bce54540196c8e7e56a1ef8402293b81eac1a54b98220a9b2926e6a1df719d22c47cf1c3 vpnserver.initd +a52e1d9b535957df3c0abda34d75d367f5d83278009fdad58c43cf71557cd1901039e216dda00b23cc2bbef8de14a33f5cc04d6ab3ac247b9113bf2273dfb1f6 vpnbridge.initd +" diff --git a/testing/softether/vpnbridge.initd b/testing/softether/vpnbridge.initd new file mode 100644 index 0000000000..3d3f85fd3c --- /dev/null +++ b/testing/softether/vpnbridge.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +description="Starts or Stops the Softether VPN Bridge" +procname="vpnbridge" + +start(){ + ebegin "Starting Softether VPN Bridge" + /usr/bin/vpnbridge start + eend $? +} + +stop(){ + ebegin "Stopping Softether VPN Bridge" + /usr/bin/vpnbridge stop + eend $? +} diff --git a/testing/softether/vpnclient.initd b/testing/softether/vpnclient.initd new file mode 100644 index 0000000000..e391ed5353 --- /dev/null +++ b/testing/softether/vpnclient.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +description="Starts or Stops the Softether VPN client" +procname="vpnclient" + +start(){ + ebegin "Starting Softether VPN Client" + /usr/bin/vpnclient start + eend $? +} + +stop(){ + ebegin "Stopping Softether VPN Client" + /usr/bin/vpnclient stop + eend $? +} diff --git a/testing/softether/vpnserver.initd b/testing/softether/vpnserver.initd new file mode 100644 index 0000000000..e9844c3491 --- /dev/null +++ b/testing/softether/vpnserver.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +description="Starts or Stops the Softether VPN Server" +procname="vpnserver" + +start(){ + ebegin "Starting Softether VPN Server" + /usr/bin/vpnserver start + eend $? +} + +stop(){ + ebegin "Stopping Softether VPN Server" + /usr/bin/vpnserver stop + eend $? +} -- 2.32.0