void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit 573244d15a07e5681bcaea4dfcb23b07e106f879
parent 1e17b77b2f56ed0a88862ecf3ea3ff969f798adb
Author: Dash Eclipse <dash@ezup.dev>
Date:   Sat, 26 Sep 2020 20:32:27 +0000

New package: softethervpn

Diffstat:
MREADME | 3++-
Aezup/delete-pkg.sh | 7+++++++
Asrcpkgs/softethervpn/template | 39+++++++++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/README b/README @@ -23,8 +23,9 @@ New packages rig scroll #git sls #security_risk + softethervpn #nocross swaylock-effects trojan - wshowkeys #git + wshowkeys #git #nocross wterm #git ydotool diff --git a/ezup/delete-pkg.sh b/ezup/delete-pkg.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for dir in aarch64 musl; do + rm -v hostdir/binpkgs/$dir/${1}-*.xbps 2>/dev/null + rm -v hostdir/binpkgs/$dir/${1}-*.xbps.sig 2>/dev/null + rm -v hostdir/binpkgs/$dir/*-repodata 2>/dev/null +done diff --git a/srcpkgs/softethervpn/template b/srcpkgs/softethervpn/template @@ -0,0 +1,39 @@ +# Template file for 'softethervpn' +pkgname=softethervpn +version=4.29 +revision=1 +version_full="${version}-9680-rtm" +wrksrc="SoftEtherVPN_Stable-${version_full}" +build_style=gnu-configure +makedepends="readline-devel libressl-devel zlib-devel" +short_desc="Multi-protocol VPN Program from University of Tsukuba" +maintainer="Dash Eclipse <dash@ezup.dev>" +license="Apache-2.0" +homepage="https://www.softether.org/" +distfiles="https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/archive/v${version_full}.tar.gz" +checksum="c19cd49835c613cb5551ce66c91f90da3d3496ab3e15e8c61e22b464dc55d9b0" +nocross="tmp/hamcorebuilder: cannot execute binary file" + +#pre_build() { + #case "$ARCH" in + #"aarch64*") cp src/makefiles/linux_64bit.mak Makefile && sed -i 's/ -m64//g' Makefile;; + #"ppc64*|x86_64*") cp src/makefiles/linux_64bit.mak Makefile;; + #*) cp src/makefiles/linux_32bit.mak Makefile;; + #esac +#} + +do_install() { + vinstall bin/vpnserver/hamcore.se2 444 usr/share/softethervpn + #vinstall bin/vpnclient/lang.config 444 usr/share/softethervpn + vmkdir usr/libexec/softethervpn + ln -s ../../share/softethervpn/hamcore.se2 ${DESTDIR}/usr/libexec/softethervpn/hamcore.se2 + #ln -s ../../share/softethervpn/lang.config ${DESTDIR}/usr/libexec/softethervpn/lang.config + vmkdir usr/bin + for cmd in vpnbridge vpnclient vpncmd vpnserver; do + vcopy bin/$cmd/$cmd usr/libexec/softethervpn + echo "#!/bin/sh" >$DESTDIR/usr/bin/$cmd + echo /usr/libexec/softethervpn/$cmd '"$@"' >>$DESTDIR/usr/bin/$cmd + echo 'exit $?' >>$DESTDIR/usr/bin/$cmd + chmod 755 $DESTDIR/usr/bin/$cmd + done +}