kcptun-plugins: new ebuild

This commit is contained in:
Yury Martynov 2019-05-19 17:06:31 +03:00
parent 85ac317a34
commit 6893ec3f53
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
3 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST kcptun-plugins-20190313.tar.gz 4821 BLAKE2B cfccdfbb017a874ccfadef9c4b28aaf8f512d5f61c06fa2201f0da6e454d955095c383b174ce3386f6962a4a053917f2186cb6da3b1c0d7897978fc3a78bc27e SHA512 c564762da82c9bebbbb615eb91da1dd4eeee2a4f674a6301eb2c258fc5ad108940734ce59f1b80a3b1e04ce1e7e32c970b4513558be4647df8ade5dae6f7a242

View file

@ -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
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>