Added softether ebuild
This commit is contained in:
parent
21e2a4df9f
commit
aff7fe4e3e
12
net-vpn/softether/Manifest
Normal file
12
net-vpn/softether/Manifest
Normal file
|
@ -0,0 +1,12 @@
|
|||
AUX softether-4.04-sandbox.patch 771 SHA256 7dde5e08d01af6c8015432eb36edb549acc071d6abd531fc336ffa3236b1fe9d SHA512 2b3942337b4ecae197e9382c4895eedf43bae76222838475f95c9d60fc78bd16f0ae93f952d4d36de207d51276acb629c8172fd01a1c39b11592a97a9de1c42b WHIRLPOOL 43838c9cc5d1de852f5c698086b59fec2a436a2809f9c5c7b45c707fb927e58844c94942f4418c536966a750650861896a64b9b0ed31d4369660de447c56a8ca
|
||||
AUX softether-bridge.confd 36 SHA256 3029e8108e0eb17e8d36b3536bd1d4959e21b9cd79f494731eba6c0a04ba30fa SHA512 2261dc21b23b0e745b611c4e79a3ce940068007512308b2acef9db860e8b6fa86693447968ddeed1dbe9d25601f1ace88064ea49f106a450f65eee24dfb11e2b WHIRLPOOL d6e419af971d9d03d9bbceb233f05bb043a48f0f2f80e896f927c17dcee1127d3c72e8c0f690f74c7b7fa9e56fa88a44b19e284101630f2eaf1ba49c7f09e535
|
||||
AUX softether-bridge.initd 1012 SHA256 c9d31c96dc67af588d3c4872c0a72206383a99ae488781000e4dfb67e75aaae5 SHA512 73c56bd43bcbfd22841d91953b961f5b109d11a674daee1b4c8e3e147471b0f710f281ec173f369e63098697709e6286e510bb74e46013049faf4ef538d0c519 WHIRLPOOL e273f88db50d350a9b60b4f6f4ac410a971e18c131dd5e7b1f261cabed64f520eab9f62bfe15bc58d945270e3affd1798eb36e77b7012f48db6c16d11462ad02
|
||||
AUX softether-client.confd 36 SHA256 3029e8108e0eb17e8d36b3536bd1d4959e21b9cd79f494731eba6c0a04ba30fa SHA512 2261dc21b23b0e745b611c4e79a3ce940068007512308b2acef9db860e8b6fa86693447968ddeed1dbe9d25601f1ace88064ea49f106a450f65eee24dfb11e2b WHIRLPOOL d6e419af971d9d03d9bbceb233f05bb043a48f0f2f80e896f927c17dcee1127d3c72e8c0f690f74c7b7fa9e56fa88a44b19e284101630f2eaf1ba49c7f09e535
|
||||
AUX softether-client.initd 1012 SHA256 1a6ea9946dac4dae37e345618f774576d6d7886fda0fdc696810708628eab7de SHA512 82193c7706865c23e1f7784ce5672dfe402366d7487245faabbb2668ba722a1945ac0aa26ee63357a12d85853c7071dbc0ab87b5598fbbc9587435984175f953 WHIRLPOOL 17b4159c10f9f410d1fe55c40f2f82aead704ce770a09735071f553cd73a5a5001fbd5ac49942e1a0d9803008420e29c5deba8b12739f41fcd45f8425544261b
|
||||
AUX softether-server.confd 36 SHA256 3029e8108e0eb17e8d36b3536bd1d4959e21b9cd79f494731eba6c0a04ba30fa SHA512 2261dc21b23b0e745b611c4e79a3ce940068007512308b2acef9db860e8b6fa86693447968ddeed1dbe9d25601f1ace88064ea49f106a450f65eee24dfb11e2b WHIRLPOOL d6e419af971d9d03d9bbceb233f05bb043a48f0f2f80e896f927c17dcee1127d3c72e8c0f690f74c7b7fa9e56fa88a44b19e284101630f2eaf1ba49c7f09e535
|
||||
AUX softether-server.initd 1012 SHA256 e1cdde64cf751686030a63fd6c742e6a8f4088d5fe062d9c0cbe7f4bbb6932c7 SHA512 53c17c72670952b472bc70666870bfcd3eb7dc11ce4d00e77319969554c002d013af7b4688c6c610350ae657deaebba014a5d495165e3073f23a84ada6c11af8 WHIRLPOOL 3c77a7642a0f3614e23fe2678153c56aa2065b255a0b031699eb4fccd9ac4f7fceaac19f973c86283eb11bb54a8abd8d8fc0a31ca44afcbe6220dca7c4e79512
|
||||
DIST softether-src-v4.17-9562-beta.tar.gz 35144546 SHA256 d2b6333de02c7bd6158adad2fd7e5415ee724576675509b1945a6e8ae1a40876 SHA512 7c6c43aafad9062c05de0a558e4d3a76bac2e0429b33441fee41ca778e01a2dabb8ca418f506bc659a4e36d205602f97bbf145351654b70e6cabbc7b493e9e7d WHIRLPOOL cbaa55c410eff2b3ec58734cf3943cb8fbfdc614ab10350d0ec78abd3e68997a3a818896dfcd9f5cb9c3541c1c9d9a7b5bc8c28195fcd97ade73e9bbf50ffbf5
|
||||
DIST softether-src-v4.24-9651-beta.tar.gz 33744399 SHA256 49ee65b6b6af77dcc6ca240973cac43f61ac5ed6bd5e4ca9afd7b4c6e84beb88 SHA512 397c7d989301eb93af471ae2bd1211967ac4119c28705d90a4274a18a2f0068947408f197300d9938c5f499e838c4848fdd9a94170ac2204e73f7e677e01e1c2 WHIRLPOOL 52e58f7a2e0e22b6028ff23a6691a1e23d74b68c4042990754f350786680c838892ebb32a6d43002fe6c4bc4741a751f8fe98b9350eba7ea56e62d59b28173cc
|
||||
EBUILD softether-4.17_beta9562.ebuild 1664 SHA256 e0412a155dfaef9b44ebc8e879f30ff0c3e01562f1a15969901cbc2ef1dd83e8 SHA512 f6e9c93e896fc0b78f280bf1406d55e954300217972948529a86461fd75d2b3303891723125da2793814ae6653470afa51d58548be4c8eb5772565350deed9c0 WHIRLPOOL da65c073bbf186bd666f337d4976db8bfff6bc703553bff502a33c749f0314f7d35b675c6a8a058faf6eed26baf037f677ddbc5ddf7502bf296e6586a14ec893
|
||||
EBUILD softether-4.24_beta9651.ebuild 1662 SHA256 c18924f32c1917a1aec656fc27498d2989c5384c6796f35a0b2d8c0fd3b02040 SHA512 a798d2079463f628d491a8120ffbc89b656ce303155e834815afe7f9e298e71ac98d2534e189273ce10689c2d869016875bb3c525e276886458e2fde62a0ca93 WHIRLPOOL 7113b0127eead1d270b33eab9d75ba729815e68fa9d686b14693de25eac445216de41b7d642b77d233e43feeb456dc28347427bce99408c7f5b962046154c25a
|
||||
MISC metadata.xml 1015 SHA256 779b0c0652f63431c6c48644841dd9ba63c992eaf4c698b4a49fef9963b5de22 SHA512 c11c41731fd992670c74343c54ba5b390da650b99a1292cd2a0f882ff876e8f6341ab0bcca9fb3b464b0e77ee0d09247c240bc880369fe13ca61435bbfc72217 WHIRLPOOL b6a2ca885d893adf9a72a636ffd611ec5da1496e8d56b33341ae8bef391176ff47566f12cb5e0a5b97611c3aa9833dda3c7247ce2ccce36d519438565c57fc3c
|
25
net-vpn/softether/files/softether-4.04-sandbox.patch
Normal file
25
net-vpn/softether/files/softether-4.04-sandbox.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
--- src/Mayaqua/Unix.c.org 2014-03-05 07:24:37.000000000 +0200
|
||||
+++ src/Mayaqua/Unix.c 2014-03-05 07:24:48.000000000 +0200
|
||||
@@ -2150,14 +2150,14 @@
|
||||
#endif // RLIMIT_NPROC
|
||||
|
||||
// Write a value to the threads-max of the proc file system
|
||||
- o = UnixFileCreate("/proc/sys/kernel/threads-max");
|
||||
- if (o != NULL)
|
||||
- {
|
||||
- char tmp[128];
|
||||
- sprintf(tmp, "%u\n", UNIX_LINUX_MAX_THREADS);
|
||||
- UnixFileWrite(o, tmp, strlen(tmp));
|
||||
- UnixFileClose(o, false);
|
||||
- }
|
||||
+ //o = UnixFileCreate("/proc/sys/kernel/threads-max");
|
||||
+ //if (o != NULL)
|
||||
+ //{
|
||||
+ // char tmp[128];
|
||||
+ // sprintf(tmp, "%u\n", UNIX_LINUX_MAX_THREADS);
|
||||
+ // UnixFileWrite(o, tmp, strlen(tmp));
|
||||
+ // UnixFileClose(o, false);
|
||||
+ //}
|
||||
|
||||
// Set the signals that is to be ignored
|
||||
signal(SIGPIPE, SIG_IGN);
|
2
net-vpn/softether/files/softether-bridge.confd
Normal file
2
net-vpn/softether/files/softether-bridge.confd
Normal file
|
@ -0,0 +1,2 @@
|
|||
OPTS_START="start"
|
||||
OPTS_STOP="stop"
|
39
net-vpn/softether/files/softether-bridge.initd
Normal file
39
net-vpn/softether/files/softether-bridge.initd
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
NAME=${SVCNAME##*.}
|
||||
if [ -n "${NAME}" -a "${SVCNAME}" != "softether-bridge" ]; then
|
||||
PID="/run/softether-bridge.${NAME}.pid"
|
||||
PNAME=$(echo ${RC_SVCNAME} | sed 's/.*\-/vpn/;s/\..*//g')
|
||||
CONF_DEFAULT="/etc/conf.d/softether-bridge.${NAME}"
|
||||
else
|
||||
PID="/run/softether-bridge.pid"
|
||||
PNAME=$(echo ${RC_SVCNAME} | sed 's/.*\-/vpn/')
|
||||
CONF_DEFAULT="/etc/conf.d/softether-bridge"
|
||||
fi
|
||||
CONF=${CONF:-${CONF_DEFAULT}}
|
||||
EXEC=${EXEC:-/opt/softether/bin/vpnbridge/vpnbridge}
|
||||
|
||||
depend() {
|
||||
need net
|
||||
provide softether-bridge
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting softether-bridge"
|
||||
start-stop-daemon --start --quiet --make-pidfile --pidfile ${PID} --exec ${EXEC} -- ${OPTS_START}
|
||||
eend $?
|
||||
}
|
||||
|
||||
start_post() {
|
||||
pgrep -n $(echo ${PNAME}) > ${PID}
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping softether-bridge"
|
||||
start-stop-daemon --stop --quiet --pidfile ${PID} -- ${OPTS_STOP}
|
||||
rm -f ${PID}
|
||||
eend $?
|
||||
}
|
2
net-vpn/softether/files/softether-client.confd
Normal file
2
net-vpn/softether/files/softether-client.confd
Normal file
|
@ -0,0 +1,2 @@
|
|||
OPTS_START="start"
|
||||
OPTS_STOP="stop"
|
39
net-vpn/softether/files/softether-client.initd
Normal file
39
net-vpn/softether/files/softether-client.initd
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
NAME=${SVCNAME##*.}
|
||||
if [ -n "${NAME}" -a "${SVCNAME}" != "softether-client" ]; then
|
||||
PID="/run/softether-client.${NAME}.pid"
|
||||
PNAME=$(echo ${RC_SVCNAME} | sed 's/.*\-/vpn/;s/\..*//g')
|
||||
CONF_DEFAULT="/etc/conf.d/softether-client.${NAME}"
|
||||
else
|
||||
PID="/run/softether-client.pid"
|
||||
PNAME=$(echo ${RC_SVCNAME} | sed 's/.*\-/vpn/')
|
||||
CONF_DEFAULT="/etc/conf.d/softether-client"
|
||||
fi
|
||||
CONF=${CONF:-${CONF_DEFAULT}}
|
||||
EXEC=${EXEC:-/opt/softether/bin/vpnclient/vpnclient}
|
||||
|
||||
depend() {
|
||||
need net
|
||||
provide softether-client
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting softether-client"
|
||||
start-stop-daemon --start --quiet --make-pidfile --pidfile ${PID} --exec ${EXEC} -- ${OPTS_START}
|
||||
eend $?
|
||||
}
|
||||
|
||||
start_post() {
|
||||
pgrep -n $(echo ${PNAME}) > ${PID}
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping softether-client"
|
||||
start-stop-daemon --stop --quiet --pidfile ${PID} -- ${OPTS_STOP}
|
||||
rm -f ${PID}
|
||||
eend $?
|
||||
}
|
2
net-vpn/softether/files/softether-server.confd
Normal file
2
net-vpn/softether/files/softether-server.confd
Normal file
|
@ -0,0 +1,2 @@
|
|||
OPTS_START="start"
|
||||
OPTS_STOP="stop"
|
39
net-vpn/softether/files/softether-server.initd
Normal file
39
net-vpn/softether/files/softether-server.initd
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
NAME=${SVCNAME##*.}
|
||||
if [ -n "${NAME}" -a "${SVCNAME}" != "softether-server" ]; then
|
||||
PID="/run/softether-server.${NAME}.pid"
|
||||
PNAME=$(echo ${RC_SVCNAME} | sed 's/.*\-/vpn/;s/\..*//g')
|
||||
CONF_DEFAULT="/etc/conf.d/softether-server.${NAME}"
|
||||
else
|
||||
PID="/run/softether-server.pid"
|
||||
PNAME=$(echo ${RC_SVCNAME} | sed 's/.*\-/vpn/')
|
||||
CONF_DEFAULT="/etc/conf.d/softether-server"
|
||||
fi
|
||||
CONF=${CONF:-${CONF_DEFAULT}}
|
||||
EXEC=${EXEC:-/opt/softether/bin/vpnserver/vpnserver}
|
||||
|
||||
depend() {
|
||||
need net
|
||||
provide softether-server
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting softether-server"
|
||||
start-stop-daemon --start --quiet --make-pidfile --pidfile ${PID} --exec ${EXEC} -- ${OPTS_START}
|
||||
eend $?
|
||||
}
|
||||
|
||||
start_post() {
|
||||
pgrep -n $(echo ${PNAME}) > ${PID}
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping softether-server"
|
||||
start-stop-daemon --stop --quiet --pidfile ${PID} -- ${OPTS_STOP}
|
||||
rm -f ${PID}
|
||||
eend $?
|
||||
}
|
23
net-vpn/softether/metadata.xml
Normal file
23
net-vpn/softether/metadata.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<longdescription>
|
||||
An Open-Source Free Cross-platform Multi-protocol VPN Program,
|
||||
as an academic project from University of Tsukuba.
|
||||
SoftEther VPN runs on Windows, Linux, Mac, FreeBSD and Solaris.
|
||||
SoftEther VPN supports most of widely-used VPN protocols
|
||||
including SSL-VPN, OpenVPN, IPsec, L2TP, MS-SSTP, L2TPv3 and EtherIP.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="bridge">Enable install of SoftEther VPN bridge</flag>
|
||||
<flag name="client">Enable install of SoftEther VPN client</flag>
|
||||
<flag name="cmd">Enable install of SoftEther VPN cmd</flag>
|
||||
<flag name="server">Enable install of SoftEther VPN server</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<changelog>http://www.softether.org/5-download/history</changelog>
|
||||
<doc>http://www.softether.org/4-docs</doc>
|
||||
<bugs-to>mailto:softether-vpn-security@softether.org</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
68
net-vpn/softether/softether-4.17_beta9562.ebuild
Normal file
68
net-vpn/softether/softether-4.17_beta9562.ebuild
Normal file
|
@ -0,0 +1,68 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Multi-protocol VPN software"
|
||||
HOMEPAGE="http://www.softether.org/"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
DATE="2015.05.30"
|
||||
MY_P="v${PV/_beta/-}"
|
||||
SRC_URI="http://www.softether-download.com/files/${PN}/${MY_P}-beta-${DATE}-tree/Source_Code/${PN}-src-${MY_P}-beta.tar.gz"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
IUSE="bridge client cmd debug server"
|
||||
|
||||
RDEPEND="dev-libs/openssl
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
sys-libs/zlib"
|
||||
|
||||
DOCS=( AUTHORS.TXT ChangeLog README )
|
||||
|
||||
REQUIRED_USE="|| ( bridge client cmd server )"
|
||||
|
||||
src_prepare() {
|
||||
# Prohibit to modify number of threads
|
||||
epatch "${FILESDIR}"/softether-4.04-sandbox.patch
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use amd64 && echo -e "1\n2\n" | ./configure
|
||||
use x86 && echo -e "1\n1\n" | ./configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DEBUG="$(usex debug YES NO '' '')"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Define local variable, strip 'debug' USE flags
|
||||
local MODULES=${IUSE//debug}
|
||||
|
||||
# Define installation location
|
||||
insinto /opt/softether
|
||||
doins src/bin/BuiltHamcoreFiles/unix/hamcore.se2
|
||||
|
||||
# Install binary in accordance to used USE flags
|
||||
for module in ${MODULES}; do
|
||||
if use $module ; then
|
||||
dosym /opt/softether/hamcore.se2 /opt/softether/bin/vpn${module}/hamcore.se2
|
||||
insinto /opt/softether/bin/vpn${module}
|
||||
doins bin/vpn${module}/vpn${module}
|
||||
fperms 0755 /opt/softether/bin/vpn${module}/vpn${module}
|
||||
if [ "$module" != "cmd" ] ; then
|
||||
newinitd "${FILESDIR}"/${PN}-${module}.initd ${PN}-${module}
|
||||
newconfd "${FILESDIR}"/${PN}-${module}.confd ${PN}-${module}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
68
net-vpn/softether/softether-4.24_beta9651.ebuild
Normal file
68
net-vpn/softether/softether-4.24_beta9651.ebuild
Normal file
|
@ -0,0 +1,68 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Multi-protocol VPN software"
|
||||
HOMEPAGE="http://www.softether.org/"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
DATE="2017.10.23"
|
||||
MY_P="v${PV/_beta/-}"
|
||||
SRC_URI="http://www.softether-download.com/files/${PN}/${MY_P}-beta-${DATE}-tree/Source_Code/${PN}-src-${MY_P}-beta.tar.gz"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
IUSE="bridge client cmd debug server"
|
||||
|
||||
RDEPEND="dev-libs/openssl
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
sys-libs/zlib"
|
||||
|
||||
DOCS=( AUTHORS.TXT ChangeLog README )
|
||||
|
||||
REQUIRED_USE="|| ( bridge client cmd server )"
|
||||
|
||||
src_prepare() {
|
||||
# Prohibit to modify number of threads
|
||||
epatch "${FILESDIR}"/softether-4.04-sandbox.patch
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use amd64 && echo -e "1\n2\n" | ./configure
|
||||
use x86 && echo -e "1\n1\n" | ./configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DEBUG="$(usex debug YES NO '' '')"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Define local variable, strip 'debug' USE flags
|
||||
local MODULES=${IUSE//debug}
|
||||
|
||||
# Define installation location
|
||||
insinto /opt/softether
|
||||
doins src/bin/BuiltHamcoreFiles/unix/hamcore.se2
|
||||
|
||||
# Install binary in accordance to used USE flags
|
||||
for module in ${MODULES}; do
|
||||
if use $module ; then
|
||||
dosym /opt/softether/hamcore.se2 /opt/softether/bin/vpn${module}/hamcore.se2
|
||||
insinto /opt/softether/bin/vpn${module}
|
||||
doins bin/vpn${module}/vpn${module}
|
||||
fperms 0755 /opt/softether/bin/vpn${module}/vpn${module}
|
||||
if [ "$module" != "cmd" ] ; then
|
||||
newinitd "${FILESDIR}"/${PN}-${module}.initd ${PN}-${module}
|
||||
newconfd "${FILESDIR}"/${PN}-${module}.confd ${PN}-${module}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
Loading…
Reference in a new issue