Skip to content
Permalink
Browse files

kcptun: 20190809 bump

  • Loading branch information...
linxon committed Aug 13, 2019
1 parent 85f9fac commit 4cd727b0859b73052b8ffc77d3e277b7f7f54803
Showing with 83 additions and 0 deletions.
  1. +3 −0 net-vpn/kcptun/Manifest
  2. +80 −0 net-vpn/kcptun/kcptun-20190809.ebuild
@@ -9,6 +9,9 @@ DIST github.com-templexxx-xor-4e92f72.tar.gz 6433 BLAKE2B d6698a4e9614c6b101caca
DIST github.com-tjfoc-gmsm-v1.0.1.tar.gz 47976 BLAKE2B c969dda03cc9334b5c641109f56245ed1231d4f5ccb5f940c41615e66a40218f406ea31b4a11bbab76710f8d7602eb6308c77aa2d68ef40abe02d376045f46fb SHA512 66cc9ab92003cb4aa280b04bf1ec260d2f7034e997ba4c9813887dcc15aaa593439bc4482c25b453dc542809e8b8ba14378a7624a202d6e25d95e73570c3f372
DIST github.com-urfave-cli-v1.20.0.tar.gz 58397 BLAKE2B 0f623bff26139e57f29a2939c70ad8ba0c8daaf3721cc6f4d061fc88209102b1ece790dc0772f5fad66649f1129836482feee20def3dc0d63e728020664016ec SHA512 0a47a47121e25bceb6ebdf10a55ab3bc7531214284b1669fe20237c3ac938c7cd154ebc408759202d936688350e27e47d14f6a6b0793271c10534f2e90bd1fb5
DIST github.com-xtaci-kcp-go-v5.4.2.tar.gz 135532 BLAKE2B 09c1059270e2e4c8899f577cc59404ae2874300136d1d21d5bcfb0195701dd44a79ac0a9b2feec7dab5b3b245abcbcd6fc4d9cd0f5895e17a8ec4fb336010995 SHA512 f210e37d974999a77ca4178b34010f24ffd53b3587e81486a258ad6b277d0d2f5d23e9d8eb0b96978eec1f586db93525642a080261d64f89dc530cd333394a87
DIST github.com-xtaci-kcp-go-v5.4.4.tar.gz 135630 BLAKE2B 021d7a5330a6272bb85c2f542e6fed51544f250e54e11b13dfedf2ee37dc717f82c4f44ec337aa47834b91a84af1f1560368f4f62185355250d8142994e0216e SHA512 d52e02d61b83766d63064d41eb61347502e16cfd9a0733c1ba5bae55ad11524afaaf4b3060123b3de90722cf5c37800f2a7f39754c52b0365bc585ef8d50c148
DIST github.com-xtaci-smux-v1.3.4.tar.gz 134357 BLAKE2B b8a56150872cdf78d8c04e116f1e7cd0d61d25614820c105ed48bb4fbcaf5c45f53905032f80dce6027a487643f813723372ec09a9315742fdbc0446e9f5d9b7 SHA512 dcdf5e9f28e79595e0d41e86d0d88081961a11222e36207699fb464c88b5513f90fbd1ad07aa5dd1383a9c42fe174d7c22740939a032a6cbd813d4aa9e272f4c
DIST github.com-xtaci-tcpraw-v1.2.22.tar.gz 6679 BLAKE2B 25cb4086fbda55e3857ca8ebb7972d0735792e7a3afc462ae6e90f6a4803368c65155f138acdeb291e73069d17d3cabf12d753941f6883fcdf7242a6294c6d82 SHA512 834d40e46abd8cd015f3902e433dc378966180bacd4544f56ebbd3758811680619418898364eec5ddab67e15cc40611f8dce76c1996ae73560e7006972749b82
DIST github.com-xtaci-tcpraw-v1.2.25.tar.gz 6901 BLAKE2B 153e077ad37d60dc62c3755ec6ee055d6e558c772763ae2a37c50e0e8542daa35f64976edfb02ff42af128780cc83523822dfcd656bae68c78a95f993d837ed6 SHA512 755cebf0f5b3bba86a01e4b36f16ae0c470a62e2ff23275e6eb187423342e21ab9a09d14a6047322bf047edfb0b2b7a3182e49ab57b2b2e319e47e80b39044f6
DIST kcptun-20190725.tar.gz 282911 BLAKE2B bde197c4cd0799b242e1caa8c6d194582bddc1a162f81f31958914f21a47b143ab782aab13b3e18e745d9b873fdfec897e1b97630d39abcba7134e9b527051c7 SHA512 d40b905bd0496ab9225d5917b2083d63e78a9661eb70a0695c839b972065b7eb60f3c75ed2b0757f3553bdc6680617e4ced64a9cdfff20d49a3d72792e27f9f2
DIST kcptun-20190809.tar.gz 283135 BLAKE2B ed1f098746a93af6022834ecdca293820075cc60241c859463d0a5271b3be8f1abedf7f13d16bdc0283fd1dc9fd8db760898f5f5ed38088e709b69eccf6b77e2 SHA512 54702c253aedaa8a798a671458e77a02e613c877b29d077d207cd551e5383c2c4fb04b6662d52560ffc0d2618c7e98e1a1e9d3d3cfce0ea1fbec48c4936c0daf
@@ -0,0 +1,80 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

EGO_PN="github.com/xtaci/kcptun"
EGO_VENDOR=(
"github.com/coreos/go-iptables v0.4.1"
"github.com/google/gopacket v1.1.17"
"github.com/klauspost/cpuid v1.2.1"
"github.com/klauspost/reedsolomon v1.9.2"
"github.com/pkg/errors v0.8.1"
"github.com/templexxx/cpufeat cef66df"
"github.com/templexxx/xor 4e92f72"
"github.com/tjfoc/gmsm v1.0.1"
"github.com/urfave/cli v1.20.0"
"github.com/xtaci/kcp-go v5.4.4"
"github.com/xtaci/smux v1.3.4"
"github.com/xtaci/tcpraw v1.2.25"
)

inherit golang-vcs-snapshot

DESCRIPTION="A Stable & Secure Tunnel Based On KCP with N:M Multiplexing"
HOMEPAGE="https://github.com/xtaci/kcptun"

SRC_URI="https://github.com/xtaci/kcptun/archive/v${PV}.tar.gz -> ${P}.tar.gz
${EGO_VENDOR_URI}"

KEYWORDS="~amd64 ~arm64 ~mips"
LICENSE="MIT"
IUSE="+server"
SLOT="0"

RDEPEND="!net-vpn/kcptun-bin"
DEPEND="${RDEPEND}
dev-go/go-text:=
dev-go/go-snappy:=
dev-go/go-net:=
dev-go/go-tools:=
dev-go/go-crypto:=
dev-go/go-sys:=
>=dev-lang/go-1.12"

src_compile() {
for x in client $(usev server); do
CGO_ENABLED=0 GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
go build -v -work -x -ldflags "-X main.VERSION=${PV} -s -w" \
-o "bin/${PN}-${x}" "${EGO_PN}/${x}" || die
done
}

src_install() {
dobin bin/${PN}-*
dodoc src/"${EGO_PN}"/{README.md,Dockerfile}

insinto "/etc/kcptun"
for x in client $(usev server); do
doins "${FILESDIR}"/example-${x}.json

newinitd "${FILESDIR}"/kcptun-${x}.initd kcptun-${x}
newconfd "${FILESDIR}"/kcptun-${x}.confd kcptun-${x}

# help2man ./bin/${PN}-*
doman "${FILESDIR}"/man/${PN}-${x}.1
done
}

pkg_postinst() {
ewarn "Suggested \"/etc/sysctl.conf\" parameters for better handling of UDP packets:"
ewarn " net.core.rmem_max=26214400 // BDP - bandwidth delay product"
ewarn " net.core.rmem_default=26214400"
ewarn " net.core.wmem_max=26214400"
ewarn " net.core.wmem_default=26214400"
ewarn " net.core.netdev_max_backlog=2048 // proportional to -rcvwnd"

elog "\nSee documentation:"
elog " https://github.com/xtaci/kcptun#quickstart"
elog " https://github.com/skywind3000/kcp/blob/master/README.en.md\n"
}

0 comments on commit 4cd727b

Please sign in to comment.
You can’t perform that action at this time.