diff options
author | Yixun Lan <dlan@gentoo.org> | 2016-07-01 05:37:56 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2016-07-01 05:39:30 +0800 |
commit | d8db20046053c383798037acd670262c3168d46c (patch) | |
tree | fe9d62b35c2031d66b09239c092ef7ad9e0c0113 /net-proxy | |
parent | Revert "dev-python/libvirt-python: drop old versions 1.2.21, 1.3.1" (diff) | |
download | gentoo-d8db20046053c383798037acd670262c3168d46c.tar.gz gentoo-d8db20046053c383798037acd670262c3168d46c.tar.bz2 gentoo-d8db20046053c383798037acd670262c3168d46c.zip |
net-proxy/shadowsocks-libev: version bump 2.4.7
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/shadowsocks-libev/Manifest | 1 | ||||
-rw-r--r-- | net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/net-proxy/shadowsocks-libev/Manifest b/net-proxy/shadowsocks-libev/Manifest index 093683f85144..1166b722d88c 100644 --- a/net-proxy/shadowsocks-libev/Manifest +++ b/net-proxy/shadowsocks-libev/Manifest @@ -1,2 +1,3 @@ DIST shadowsocks-libev-2.4.3.tar.gz 1461896 SHA256 5de76361a6b34385bf9ad255a69089a886f657d44c7e338a5dc191273e1cf9f3 SHA512 3dfa528fa01e7e9293a31cb55529cb77fc935e04ad9f2e27b5426eff61df27a8a31d1e98efd0fb07b2a2bcb5da00706d142448adbc51dcc15f2d3c6993736787 WHIRLPOOL 10819f54cc2aad5604e62fd4e4783597ff89b6753056a2961652384f175c65eb667fa0e42d097fbf25b9243714adf0f91d33dc0b5a71957adb82edee72209fc5 DIST shadowsocks-libev-2.4.5.tar.gz 1476944 SHA256 08bf7f240ee39fa700aac636ca84b65f2f0cfbcfa63a0783afb05872940067e2 SHA512 9405db0850bea43bf734bda599cdbff736ab9b86fd137e447a8191919a2ebbb19a19566a64903c1bad84708ab4e77ff8615c4d10aff30cd1413724ffa55c1cdb WHIRLPOOL eb06ed15e476a1324c20b9b08c20030ceccdd07446e4b83750468d0681920574766462eb7b2c4db4cc38885e034bcc21e8707cb4db2d939574ee227b9cd8a6d2 +DIST shadowsocks-libev-2.4.7.tar.gz 1485472 SHA256 957265cc5339e020d8c8bb7414ab14936e3939dc7355f334aec896ec9b03c6ed SHA512 d89d4b12de9c70b5450c75ed005e590cf93e13a1e16e3e084dea378b99b0e4e7e3fa8f3339718fba14a39089e5e8a8f5f4d1ae9c8165dbe69fc9bb54d12b3964 WHIRLPOOL 2c5df635ec18040b70c0e4746d059d8fb59ec561d2640f62c987172dea95505a282dc7dcad8a88cfd8ce03a3635e3072dcab1893849353f040dc9518948d5321 diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild new file mode 100644 index 000000000000..c761cba2a4d6 --- /dev/null +++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.7.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils systemd + +DESCRIPTION="A lightweight secured scoks5 proxy for embedded devices and low end boxes" +HOMEPAGE="https://github.com/shadowsocks/shadowsocks-libev" + +MY_PV="v${PV}" +SRC_URI="https://github.com/shadowsocks/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +openssl polarssl" + +DEPEND="openssl? ( dev-libs/openssl:= ) + polarssl? ( net-libs/polarssl ) + <sys-kernel/linux-headers-4.5 + " +RDEPEND="${DEPEND}" + +REQUIRED_USE=" ^^ ( openssl polarssl )" + +src_configure() { + econf \ + $(use_enable debug assert) \ + --with-crypto-library=$(usex openssl openssl polarssl) +} + +src_install() { + default + prune_libtool_files --all + + dodir "/etc/${PN}" + insinto "/etc/${PN}" + newins "${FILESDIR}/shadowsocks.json" shadowsocks.json + + newinitd "${FILESDIR}/shadowsocks.initd" shadowsocks + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.server + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.client + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.redir + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.tunnel + + systemd_newunit "${FILESDIR}/${PN}-local_at.service" "${PN}-local@.service" + systemd_newunit "${FILESDIR}/${PN}-server_at.service" "${PN}-server@.service" + systemd_newunit "${FILESDIR}/${PN}-redir_at.service" "${PN}-redir@.service" + systemd_newunit "${FILESDIR}/${PN}-tunnel_at.service" "${PN}-tunnel@.service" +} + +pkg_setup() { + elog "You need to choose the mode" + elog " server: rc-update add shadowsocks.server default" + elog " client: rc-update add shadowsocks.client default" + elog " redir: rc-update add shadowsocks.redir default" + elog " tunnel: rc-update add shadowsocks.tunnel default" +} |