1 |
commit: ad3ac8504b379da2424851b06e3e168b5a69c38a |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 17:43:16 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 17:47:41 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad3ac850 |
7 |
|
8 |
net-proxy/shadowsocks-libev: mask >=sys-kernel/linux-headers-4.5 |
9 |
|
10 |
due to a conflict between linux/if.h and net/if.h |
11 |
this is a temporarily solution, wait real fix at glibc & kernel |
12 |
|
13 |
Gentoo-Bug: 578206, also 577660 |
14 |
|
15 |
Package-Manager: portage-2.2.28 |
16 |
|
17 |
.../shadowsocks-libev-2.4.3-r2.ebuild | 60 ++++++++++++++++++++++ |
18 |
1 file changed, 60 insertions(+) |
19 |
|
20 |
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 |
21 |
new file mode 100644 |
22 |
index 0000000..c761cba |
23 |
--- /dev/null |
24 |
+++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.4.3-r2.ebuild |
25 |
@@ -0,0 +1,60 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=5 |
31 |
+ |
32 |
+inherit eutils systemd |
33 |
+ |
34 |
+DESCRIPTION="A lightweight secured scoks5 proxy for embedded devices and low end boxes" |
35 |
+HOMEPAGE="https://github.com/shadowsocks/shadowsocks-libev" |
36 |
+ |
37 |
+MY_PV="v${PV}" |
38 |
+SRC_URI="https://github.com/shadowsocks/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="GPL-3+" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+IUSE="debug +openssl polarssl" |
44 |
+ |
45 |
+DEPEND="openssl? ( dev-libs/openssl:= ) |
46 |
+ polarssl? ( net-libs/polarssl ) |
47 |
+ <sys-kernel/linux-headers-4.5 |
48 |
+ " |
49 |
+RDEPEND="${DEPEND}" |
50 |
+ |
51 |
+REQUIRED_USE=" ^^ ( openssl polarssl )" |
52 |
+ |
53 |
+src_configure() { |
54 |
+ econf \ |
55 |
+ $(use_enable debug assert) \ |
56 |
+ --with-crypto-library=$(usex openssl openssl polarssl) |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ default |
61 |
+ prune_libtool_files --all |
62 |
+ |
63 |
+ dodir "/etc/${PN}" |
64 |
+ insinto "/etc/${PN}" |
65 |
+ newins "${FILESDIR}/shadowsocks.json" shadowsocks.json |
66 |
+ |
67 |
+ newinitd "${FILESDIR}/shadowsocks.initd" shadowsocks |
68 |
+ dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.server |
69 |
+ dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.client |
70 |
+ dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.redir |
71 |
+ dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.tunnel |
72 |
+ |
73 |
+ systemd_newunit "${FILESDIR}/${PN}-local_at.service" "${PN}-local@.service" |
74 |
+ systemd_newunit "${FILESDIR}/${PN}-server_at.service" "${PN}-server@.service" |
75 |
+ systemd_newunit "${FILESDIR}/${PN}-redir_at.service" "${PN}-redir@.service" |
76 |
+ systemd_newunit "${FILESDIR}/${PN}-tunnel_at.service" "${PN}-tunnel@.service" |
77 |
+} |
78 |
+ |
79 |
+pkg_setup() { |
80 |
+ elog "You need to choose the mode" |
81 |
+ elog " server: rc-update add shadowsocks.server default" |
82 |
+ elog " client: rc-update add shadowsocks.client default" |
83 |
+ elog " redir: rc-update add shadowsocks.redir default" |
84 |
+ elog " tunnel: rc-update add shadowsocks.tunnel default" |
85 |
+} |