diff options
author | Yixun Lan <dlan@gentoo.org> | 2016-03-28 01:43:16 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2016-03-28 01:47:41 +0800 |
commit | ad3ac8504b379da2424851b06e3e168b5a69c38a (patch) | |
tree | 205f0e1d15f95d8f1122d08219c577be132f02de /net-proxy/shadowsocks-libev | |
parent | sci-biology/biopython: Add python3_5 support (diff) | |
download | gentoo-ad3ac8504b379da2424851b06e3e168b5a69c38a.tar.gz gentoo-ad3ac8504b379da2424851b06e3e168b5a69c38a.tar.bz2 gentoo-ad3ac8504b379da2424851b06e3e168b5a69c38a.zip |
net-proxy/shadowsocks-libev: mask >=sys-kernel/linux-headers-4.5
due to a conflict between linux/if.h and net/if.h
this is a temporarily solution, wait real fix at glibc & kernel
Gentoo-Bug: 578206, also 577660
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-proxy/shadowsocks-libev')
-rw-r--r-- | net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.3-r2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.3-r2.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.3-r2.ebuild new file mode 100644 index 000000000000..c761cba2a4d6 --- /dev/null +++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.3-r2.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" +} |