From 6893ec3f53f77c1971fd8d7fc302e99edf2ba0ba Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Sun, 19 May 2019 17:06:31 +0300 Subject: [PATCH] kcptun-plugins: new ebuild --- net-vpn/kcptun-plugins/Manifest | 1 + .../kcptun-plugins-20190313.ebuild | 50 +++++++++++++++++++ net-vpn/kcptun-plugins/metadata.xml | 8 +++ 3 files changed, 59 insertions(+) create mode 100644 net-vpn/kcptun-plugins/Manifest create mode 100644 net-vpn/kcptun-plugins/kcptun-plugins-20190313.ebuild create mode 100644 net-vpn/kcptun-plugins/metadata.xml diff --git a/net-vpn/kcptun-plugins/Manifest b/net-vpn/kcptun-plugins/Manifest new file mode 100644 index 000000000..511353ba7 --- /dev/null +++ b/net-vpn/kcptun-plugins/Manifest @@ -0,0 +1 @@ +DIST kcptun-plugins-20190313.tar.gz 4821 BLAKE2B cfccdfbb017a874ccfadef9c4b28aaf8f512d5f61c06fa2201f0da6e454d955095c383b174ce3386f6962a4a053917f2186cb6da3b1c0d7897978fc3a78bc27e SHA512 c564762da82c9bebbbb615eb91da1dd4eeee2a4f674a6301eb2c258fc5ad108940734ce59f1b80a3b1e04ce1e7e32c970b4513558be4647df8ade5dae6f7a242 diff --git a/net-vpn/kcptun-plugins/kcptun-plugins-20190313.ebuild b/net-vpn/kcptun-plugins/kcptun-plugins-20190313.ebuild new file mode 100644 index 000000000..02d0b42d3 --- /dev/null +++ b/net-vpn/kcptun-plugins/kcptun-plugins-20190313.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="SIP003-compatible KCPTUN and UDP2RAW plugins for Shadowsocks" +HOMEPAGE="https://github.com/w1ndy/kcptun-plugins" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/w1ndy/kcptun-plugins" +else + # snapshot: 20190313 + HASH_COMMIT="b3f076a4bfa99dd88ce08d9e4192feddd2b4e4ea" + + SRC_URI="https://github.com/w1ndy/kcptun-plugins/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" + S="${WORKDIR}"/${PN}-${HASH_COMMIT} +fi + +LICENSE="Unlicense" +IUSE="" +SLOT="0" +RDEPEND="" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -e "s:/usr/local/kcptun_plugins:/usr/share/${PN}:" \ + -e "s:source ./lib:source /usr/share/${PN}/lib:" \ + -i kcptun-{client,server}-plugin || die 'sed failed!' + + eapply_user +} + +src_compile() { + : +} + +src_install() { + insinto "/usr/share/${PN}" + doins lib + + exeinto "/usr/share/${PN}" + doexe kcptun-{client,server}-plugin + + dosym "../share/${PN}/kcptun-client-plugin" "/usr/bin/kcptun-client-plugin" + dosym "../share/${PN}/kcptun-server-plugin" "/usr/bin/kcptun-server-plugin" + dodoc README.md + dobin ss-proxy +} diff --git a/net-vpn/kcptun-plugins/metadata.xml b/net-vpn/kcptun-plugins/metadata.xml new file mode 100644 index 000000000..c4511c144 --- /dev/null +++ b/net-vpn/kcptun-plugins/metadata.xml @@ -0,0 +1,8 @@ + + + + + email@linxon.ru + Yury Martynov + +