-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1 @@ | ||
DIST github.com-BurntSushi-toml-v0.3.1.tar.gz 42077 BLAKE2B d846b7961dc3447a43e5c91dee1897a9701c997a407d9ba8737d08b82b493f99823eeab87cc9d4fe6dd4dbdb7b0d2a218d9f9f220ffcda2056188afbf0f2ab87 SHA512 75801d0263a68613233f3b18e35b000e1aeb5322015c0f032598d9447122fc45b1854741ce6ce9fb4d5a064546ad26f3d6384710bd8e6e1229ed2d4551524852 | ||
DIST github.com-coreos-go-iptables-v0.4.2.tar.gz 15627 BLAKE2B 7637caac4c624924f36e9b1ac90c58b68c5d6cb9598b734e97d3b294c2e7a6513eaf7a273d948e7989e60c639382c096eefb797030ba5167008f141107858e20 SHA512 fd0cf1a124ef02e61be7b0c0bf8b44472ec19becc26a123010f124fc3e1e14339411b4c455d153fddaca6708c4839e8dcf49b258e00dc2ff9d27dc0c63dfba39 | ||
DIST github.com-golang-crypto-891825f.tar.gz 1728371 BLAKE2B 7a3b46775603b5d796cd2c9380c664c69b1207f333ca453af01c1d80664798d2e590cf5400a4456397c197604a522ba63456df14f6427a4bb15167cb8ecf731f SHA512 73899636a2800c9b703fe52602c04b1fd5c80ca3ecfb0c97469fd813f9396f5e6725b15222e58c96271aff3b98d012edcdee2697f8fe3a0994d435fc4516a950 | ||
DIST github.com-golang-net-118fecf.tar.gz 1174795 BLAKE2B dcb682bdc564f660934d98a25861ef6a241017191e5cdfceaf77ba5a3119bb82c7b190778f13052fd03f0b151a909d83d5f87382744a719db78bba0370ff01a6 SHA512 03ae0c99a66cc5221f926ef3012c281b04a0730b19dcf1323fda0bbfe80bd7e86f4824b9a03d66907df58d1710f85625f4447df9eca7772acf4341fcfc0e3cab | ||
DIST github.com-golang-snappy-v0.0.1.tar.gz 62605 BLAKE2B 0af2dc71967b38aa4677e5286c8f0fe4167deedb32f065d9612e318bf1e09dd220014e5b05d30418a625dda138dd33ced8b9e73781f2c6e8f7f301246c8103d1 SHA512 87a934b1b5af6a19341b99170d6dfa078ca33753a4c1b2ec120cb54c55a51bb4e808d38d77d498115c9c53678adddf897b4bd81b7a9480564c57a209e2745f42 | ||
DIST github.com-golang-sys-328b4cd.tar.gz 1048956 BLAKE2B c92e8dcb3ec3bb11395a3510fdb403ae7c7fda0b6c1adfe232df096ff0d8f2b3b1c3573739b90100a125ad705f6f2ae85f29a69df483add081ee89430a9e4fde SHA512 6d75c1873ecf97cecb708ad73b0edddc9837d8da6660052faa51fedd7e68b4f015929b510202ab63f1ad8e50be9fb0cbc3f48369153724cade1344ccd15f1f17 | ||
DIST github.com-golang-text-v0.3.0.tar.gz 6102619 BLAKE2B c92e68014a8c157d76741c02acd708771d66bd3dda5b19285f5aa3e073e0fe3fccb9054744d35ea62b681ae4421bb7489238d6868f9314fb26f88e002287abe8 SHA512 bd60dfaa7d9dbfca171a3ba40b51f5663c01257cf3b12b618d35689a97ab2212d316d5716ff09681bf40b099f7e20a0e0df8cfc065699cb6a07ad1dc2e2bc189 | ||
DIST github.com-google-gopacket-v1.1.17.tar.gz 891264 BLAKE2B bfa9cb76348518ac3fb83f6719f7a8eca4f1968e5bba46f826e3993c9ab62aa2feb84b2043906214faa74a46de72afb005756cd6570bd368f8381313d3ba15de SHA512 997f3f08127a17fdbbf9488f4f5cd8c2ecc080bb6a416bb28d6aaded370fd0c7a3ec591acc75dcdafcf8edc780067fb70516afc7e27312b617ef58c022c0ffcd | ||
DIST github.com-klauspost-cpuid-v1.2.3.tar.gz 356439 BLAKE2B 0e545f069f6099ce49ec542be28badc02b3f48971cc2c936f232b8167c7a5b7c9e5b368b99ee95e20a25097d7e69d34ad92e86f55a90c8d3be74b98fd1bc34bb SHA512 491ceb9443749e56e3310b9ae225b8c948eab19e9a8ba660d628175bdb293e8d9ddc26baebf494c7e45f8f3464a9c075f0eebcf501a277ca21cc8c4b49aa05e4 | ||
DIST github.com-klauspost-reedsolomon-v1.9.3.tar.gz 159792 BLAKE2B bcf15f65b6a7154f3b1245c8697c54769fff970cb0e7a89b3d1bf2db5a4e77f7c46260502403159ae7b4f3481bc49221ee1758cf7f27b3df983314d0366ff252 SHA512 f817f9cd97205b0e6398aea4f33aa8d3fdcf8c6dbc0a4653438c7a0c65d9421286023ddd3c0443ff28e137fbc54f420d905472d8943c43084cdfc672e6137a52 | ||
DIST github.com-pkg-errors-v0.9.1.tar.gz 13415 BLAKE2B b52733d93e7f13761d5cbfed050ece29e184828e4f40753d6c3ded8e0aec9b4a5b2ff1f9922d19bae692c187445a950cf95c3cdc88b7fd74b6365e6b4c71ffac SHA512 7de0fd81486c29c850189a6b09177395acd69b52329c3b2d9733c6a77aa13e79e9d29f4cad55997075e619751518bb145bcfcfde9fdc88eed3f2d6bcab8f98ea | ||
DIST github.com-templexxx-cpu-v0.0.1.tar.gz 9245 BLAKE2B 229dd23af63107745e7dbf78835d04b083558168c428a5b9c275ec303e310e421b1c03afcb41612a9546b164affb5857fc8962d14805d02f27c45f2ea769a56d SHA512 ca4f66ee2f5dcd0edc399c18a71eabf7f9efbec22fedb8cbf906b59bcd98486e6b63e801ee416cf23d755b7687df9dceedaf5f933e8f60cca79e3300d82504f7 | ||
DIST github.com-templexxx-cpufeat-cef66df.tar.gz 2974 BLAKE2B d8b19668e1ff91dd34b0843752d9398ada22fa0d3f078fa76331b1f8e9779766c00bf59201e45f4aa06fcb15157ad5b1227731ec962930538384284ae7a67475 SHA512 e2d57b773fecfe2564f33ef868e6f5450ed608b4ed03dff02c861bf47d2f492089439aa687b4e65672095b35c7a8dadd71c73faec967a716fca7d5660a8e78b2 | ||
DIST github.com-templexxx-xor-f85b25d.tar.gz 6436 BLAKE2B 1f35006916bf343e4fe8f69ebefad1c5fa34d36811acc932fc7b8424d1874da02e0383e179f0312f9cfb9819bd0f207bcb6ffbfb1136197f0db28f9d0312dd17 SHA512 d518359117b3c261ffeac0c3e3006227987124d934dfd30c3ba83f123fb8df30e19798c867fcf6d53ffdb08e0e1b48fe24b2bad413899a76bd39750a11768522 | ||
DIST github.com-templexxx-xorsimd-v0.4.1.tar.gz 8028 BLAKE2B 9f4356248ba4d09df7c34750c743c3cb04f15908b67f1573d1f6a39ae531c9ca251e3ddc41c1ac731e6a4c575c9822f831b44af06c90684304ee0527561e04b5 SHA512 dc74b83ba93d8d6c1c7a88535eaaf08aa8b40119e7b406f9bf743ad65369c6b1cb9fb0ebc87ced47cb96fe798b8a0351f5df5b4dbc6d5da376575a66302de45e | ||
DIST github.com-tjfoc-gmsm-v1.3.0.tar.gz 1216573 BLAKE2B 0a5f2edd6d32bd87e2c1a76f41634c4b6425a438333e788d079b8163c3f43c264e12fe5642730dd42294d4ac8eb56bcbc88451fb714b399973a5555ab1d1dd3f SHA512 37491dcb00dd0bd0cee6deae5ec7705c232608de4774c3b1576d7534609599833efc693fb65db21dc63b7102ef4e01e281bcfca5b5db578ad546da6268446dec | ||
DIST github.com-urfave-cli-v1.21.0.tar.gz 68419 BLAKE2B 4fe7091cfe3dd58d1c73d7ade84c70efbfeda354f8dfeb1cf7572b8792ed15c14432b4815107aae900a7d45e08a81dd261c97edac1a94a2e9557c3e595824e20 SHA512 8bd1dc64220eb5388da99a9d98971097b7e64dc054cdaff54c86fd427667962aa8add7edaeb045d17515bb15df885c369f939a5d374e8bcc010c7f0fdd554763 | ||
DIST github.com-xtaci-kcp-go-v5.4.20.tar.gz 169778 BLAKE2B 6e7afacaca33f266738bb01065705b1b8ecf2e727f5d20e3ea3f725ce7bb2545bc2a8d6004ddfc60b90164c4203e9c27ac3836b427d4ee88f4e8a26f51b2480e SHA512 155ed33a2b370bdafa3737b5b2418231d2faf0a3779d2b6b8d8b3e8fac8503bf1d74b84579974b8d0eca7a5f08c2521894b498995f7b9d0b553fbc533c886079 | ||
DIST github.com-xtaci-kcp-go-v5.5.11.tar.gz 174195 BLAKE2B 0e3a317fd8a59187e3dfde705f85e4dd2fac3df511da3930fd74ddef9c35aacd7ffa28541d1aae9615eaf03d99e7428e1a59bd757dd87c1e42b6984e321e174b SHA512 0ce7d82c4864ce50d580a9266491cfe332f1a5d756c17a71566b863e3fc20819130e5e0e0e3ce0e79a07a3072d58f3765b1d409666368d1f6c623178d388b72c | ||
DIST github.com-xtaci-kcp-go-v5.5.14.tar.gz 173993 BLAKE2B de30e398faa59f5aa03f10181ff91b39049455abbc00bce24a26d7c16094a6b41493ba875b1bdc67b382f9292c742513c90063c4f760cf5c6b6aa08accde201f SHA512 48e470886e9ecc3307142380183dfd70e15fccee7139bd9d39122d76cd55dc59557269c55a509b835ea53487c15196f6e15b904c6c0536494a07434374e566f5 | ||
DIST github.com-xtaci-lossyconn-8df528c.tar.gz 5324 BLAKE2B 975c2c071c1f5316d06c82e36abadaccad6cba45ac7fead36e187d18d27c5c0314927782c7e42aef6da8cedf318255649c1a9c699112fce44278e8a60e25082a SHA512 1672ee4e853b73ecd60478ba11f0519a3fd75263ad82b7d9192a99a15f37e03117f2841d7ecec8d28ef76671d69cf3422d924cb34f1b6b4c39c8386b0d3a118c | ||
DIST github.com-xtaci-smux-v1.5.12.tar.gz 137809 BLAKE2B fd7b50759fb211af2f68d3947d7b28293f6f145e36a06e8b62b770d22ef1bba5bf1679b868871e87fac7cedf1a5dca1cae2862bb3d73dc4bc416d69b526eab5d SHA512 fd70283d9f12070f2382bc33778485e14aa0f4897e278f47e883c209c23fa2e96d2798582051125840f6ee3a5fd5f1ff091779fd0304db4273798868ed235c63 | ||
DIST github.com-xtaci-smux-v1.5.14.tar.gz 137925 BLAKE2B 52248494223898096c9b9409eb91d0fabc8eec3e9c71141f475b76af6af46504db8f21c46433dda2c576a0954eb9b0d7d65194e8fec312d971484a4c53cf6a00 SHA512 57eb25c294e7b955f97697c5b69eb367fc9c0ba5607fabac2040684f67fc6d7239529e3e8a88885a717fc70eff725e2978587b003c945aa3d12f5b52376b0efc | ||
DIST github.com-xtaci-tcpraw-v1.2.25.tar.gz 6901 BLAKE2B 153e077ad37d60dc62c3755ec6ee055d6e558c772763ae2a37c50e0e8542daa35f64976edfb02ff42af128780cc83523822dfcd656bae68c78a95f993d837ed6 SHA512 755cebf0f5b3bba86a01e4b36f16ae0c470a62e2ff23275e6eb187423342e21ab9a09d14a6047322bf047edfb0b2b7a3182e49ab57b2b2e319e47e80b39044f6 | ||
DIST kcptun-20200409.tar.gz 242742 BLAKE2B 470ef7b968c614fe0be0800c72c42c7248b1f33c043cf3ed56b39ecd6a3053ce5068b0da47ab75e0c448557fe58a950d22983593eef1991f3122ef8430e2a93a SHA512 c2cb7ff2cea7eba839f943ff1f497e3b12b8ea8b49cc3677360996312a707e03b3522c708d21d9dfb746d8c322e4ce2dbc95004248266ce2f94d2bc44c048a7f | ||
DIST kcptun-20200701.tar.gz 242649 BLAKE2B fc6c33d4f698486c140edddfa1a15096a3e482d5399d2ee6162f868a467d0b82f6ac89e49b6dd93f997041eea33c067fdd1ea247bc3fa5985e40b55c869b5962 SHA512 9ba9236a13cb5f27b42fdd565a1604d20cf1fb112503b43e0ca3b56ffdbd559b8cfbd4af8ae5b054202282099cd62ad04cd02ea7a827e500f2151ea49bf1291f | ||
DIST kcptun-20241227.tar.gz 2698194 BLAKE2B b84dd0d093929435194b190e97e833335ed46aa34450d0b3c796aaad3e04a2b7ebc179584afd980174fbdf66b5f5b113622a3f84291df0665d3e7b9e5d96f8ca SHA512 24793d06b7c538963202e8e634a27df9785443ba2596a0066b5bd0b4367bf4e5958c67e4753a3cdbe76a5c9820d406367ab5a2e28993962074710afcc6a7c120 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
EGO_PN="github.com/xtaci/kcptun" | ||
|
||
inherit go-module | ||
|
||
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" | ||
|
||
KEYWORDS="~amd64 ~arm64" | ||
LICENSE="MIT" | ||
IUSE="+server" | ||
SLOT="0" | ||
|
||
src_compile() { | ||
# for x in client $(usev server); do | ||
# CGO_ENABLED=0 GOPATH="${S}:$(get_golibdir_gopath)" \ | ||
# go build -v -work -x -ldflags "-X main.VERSION=${PV} -w" \ | ||
# -o "bin/${PN}-${x}" "${EGO_PN}/${x}" || die | ||
# done | ||
./build-release.sh | ||
} | ||
|
||
src_install() { | ||
# dodoc "src/${EGO_PN}"/{README.md,Dockerfile} | ||
|
||
use amd64 && newbin build/client_linux_amd64 ${PN}-client | ||
use arm64 && newbin build/client_linux_arm64 ${PN}-client | ||
|
||
use amd64 && use server && newbin build/server_linux_amd64 ${PN}-server | ||
use arm64 && use server && newbin build/server_linux_arm64 ${PN}-server | ||
|
||
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} | ||
done | ||
default | ||
} | ||
|
||
pkg_postinst() { | ||
ewarn "\nSuggested \"/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" | ||
|
||
einfo "\nSee documentation:" | ||
einfo " https://github.com/xtaci/kcptun#quickstart" | ||
einfo " https://github.com/skywind3000/kcp/blob/master/README.en.md\n" | ||
} |