diff options
author | Yixun Lan <dlan@gentoo.org> | 2016-10-11 14:24:45 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2016-10-11 14:34:52 +0800 |
commit | 2cb59199339273889f0ac62ba28f806349c877bc (patch) | |
tree | aff5f1697a16e6c68bd2b3c8e5e497f5a489feb0 /net-proxy | |
parent | dev-libs/leatherman: Stable for PPC64 (bug #593512). (diff) | |
download | gentoo-2cb59199339273889f0ac62ba28f806349c877bc.tar.gz gentoo-2cb59199339273889f0ac62ba28f806349c877bc.tar.bz2 gentoo-2cb59199339273889f0ac62ba28f806349c877bc.zip |
net-proxy/shadowsocks-libev: version bump
Package-Manager: portage-2.3.1
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/shadowsocks-libev/Manifest | 1 | ||||
-rw-r--r-- | net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.4.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/net-proxy/shadowsocks-libev/Manifest b/net-proxy/shadowsocks-libev/Manifest index 7b4140a09e4d..a565bb14afe5 100644 --- a/net-proxy/shadowsocks-libev/Manifest +++ b/net-proxy/shadowsocks-libev/Manifest @@ -1,2 +1,3 @@ DIST shadowsocks-libev-2.4.7.tar.gz 1485472 SHA256 957265cc5339e020d8c8bb7414ab14936e3939dc7355f334aec896ec9b03c6ed SHA512 d89d4b12de9c70b5450c75ed005e590cf93e13a1e16e3e084dea378b99b0e4e7e3fa8f3339718fba14a39089e5e8a8f5f4d1ae9c8165dbe69fc9bb54d12b3964 WHIRLPOOL 2c5df635ec18040b70c0e4746d059d8fb59ec561d2640f62c987172dea95505a282dc7dcad8a88cfd8ce03a3635e3072dcab1893849353f040dc9518948d5321 DIST shadowsocks-libev-2.5.0.tar.gz 1497070 SHA256 6841e0efa1c01caef5a827f463ee304dc9e48fb4751cc9256316df5ab4490ae0 SHA512 860db03630a927c4c5e3d1e0525a9209d1d5e7fc43f5260559f90aa5919b99a34eb16736534cd4b308b00c87805ddfbbc7e12d0561deb6ddc60b775f4d8f842a WHIRLPOOL abc5822395612326be7ad1453576a10373894d6d81391b61fc83e9ef50290d47f7e829d48158a07952face327bd8276ca1615a1d069fc6aff96a95d1766210e4 +DIST shadowsocks-libev-2.5.4.tar.gz 1538962 SHA256 06cb4e8c42d9f2876def93255753f72757e07118968498057e124937705d46c2 SHA512 126ae569f7a9204ae4f2fb52f2a00f06971eeebf75ee81b8f38dd784ddb79aaa71621c9882e1c6c7ada243bed3535753caa3f5e68365bc1752c657c97cc1e2fb WHIRLPOOL 723154a9fef417281903e1ab3c1a74cb2aa939acd1f286f0cda16c520c5bf2ee7f164701ece4aed803199a62dfad9184ac774e237e05d9e97a19b9d9fc2d8e74 diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.4.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.4.ebuild new file mode 100644 index 000000000000..8bfccfe33eef --- /dev/null +++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils systemd + +DESCRIPTION="A lightweight secured SOCKS5 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 doc +openssl mbedtls +system-libs" + +RDEPEND="openssl? ( dev-libs/openssl:= ) + mbedtls? ( net-libs/mbedtls ) + system-libs? ( + >=dev-libs/libsodium-1.0.8 + dev-libs/libev + net-libs/udns + ) + dev-libs/libpcre + " +DEPEND="${RDEPEND} + sys-kernel/linux-headers + doc? ( + app-text/asciidoc + app-text/xmlto + ) + " + +REQUIRED_USE=" ^^ ( openssl mbedtls )" + +src_configure() { + econf \ + $(use_enable debug assert) \ + $(use_enable doc documentation) \ + $(use_enable system-libs system-shared-lib) \ + --with-crypto-library=$(usex openssl openssl mbedtls) +} + +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" +} |