void-packages

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

template (1578B)


      1# Template file for 'softethervpn'
      2pkgname=softethervpn
      3version=4.29
      4revision=2
      5wrksrc="SoftEtherVPN_Stable-${version_full}"
      6build_style=gnu-configure
      7makedepends="readline-devel libressl-devel zlib-devel"
      8short_desc="Multi-protocol VPN Program from University of Tsukuba"
      9maintainer="Dash Eclipse <dashezup@disroot.org>"
     10license="Apache-2.0"
     11homepage="https://www.softether.org/"
     12distfiles="https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/archive/v${version_full}.tar.gz"
     13checksum="c19cd49835c613cb5551ce66c91f90da3d3496ab3e15e8c61e22b464dc55d9b0"
     14version_full="${version}-9680-rtm"
     15nocross="tmp/hamcorebuilder: cannot execute binary file"
     16tags="ezup"
     17
     18#pre_build() {
     19	#case "$ARCH" in
     20		#"aarch64*") cp src/makefiles/linux_64bit.mak Makefile && sed -i 's/ -m64//g' Makefile;;
     21		#"ppc64*|x86_64*") cp src/makefiles/linux_64bit.mak Makefile;;
     22		#*) cp src/makefiles/linux_32bit.mak Makefile;;
     23	#esac
     24#}
     25
     26do_install() {
     27	vinstall bin/vpnserver/hamcore.se2 444 usr/share/softethervpn
     28	#vinstall bin/vpnclient/lang.config 444 usr/share/softethervpn
     29	vmkdir usr/libexec/softethervpn
     30	ln -s ../../share/softethervpn/hamcore.se2 ${DESTDIR}/usr/libexec/softethervpn/hamcore.se2
     31	#ln -s ../../share/softethervpn/lang.config ${DESTDIR}/usr/libexec/softethervpn/lang.config
     32	vmkdir usr/bin
     33	for cmd in vpnbridge vpnclient vpncmd vpnserver; do
     34		vcopy bin/$cmd/$cmd usr/libexec/softethervpn
     35		echo "#!/bin/sh" >$DESTDIR/usr/bin/$cmd
     36		echo /usr/libexec/softethervpn/$cmd '"$@"' >>$DESTDIR/usr/bin/$cmd
     37		echo 'exit $?' >>$DESTDIR/usr/bin/$cmd
     38		chmod 755 $DESTDIR/usr/bin/$cmd
     39	done
     40}