1 |
commit: 489c097653e8c0e2793a8013e2e82b43381727c1 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 31 05:51:54 2018 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 31 05:53:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=489c0976 |
7 |
|
8 |
net-proxy/shadowsocks-libev: version bump 3.2.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
net-proxy/shadowsocks-libev/Manifest | 1 + |
13 |
.../shadowsocks-libev-3.2.0.ebuild | 83 ++++++++++++++++++++++ |
14 |
2 files changed, 84 insertions(+) |
15 |
|
16 |
diff --git a/net-proxy/shadowsocks-libev/Manifest b/net-proxy/shadowsocks-libev/Manifest |
17 |
index bda045a84a1..8c20d8d3614 100644 |
18 |
--- a/net-proxy/shadowsocks-libev/Manifest |
19 |
+++ b/net-proxy/shadowsocks-libev/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST shadowsocks-libev-3.1.3.tar.gz 265286 BLAKE2B 4809d2d441b28e70a35940e23d84b2914e9a7c2f24b2f80e4295df7a26bda6e4626657505e97226cc759f71cac54caec7813d9f295e22aa599dbebd704268a7b SHA512 a262315cf04c325b5b659f07fd751f2f7b651feed5e2ac7290c1b3ce91fe5bd7efa7ff834f82f3fb00d5551cba8277f8668cdefbfe35279d7835089cbcced55f |
22 |
+DIST shadowsocks-libev-3.2.0.tar.gz 275512 BLAKE2B 1ffcaea3abb9a8d8c864c78de099ae4d13914765a07855423ca68b6f38b67d79a9e82a89791eb414ecabd3fd5faba05fb31c718becea48ec5c44f59f1f287982 SHA512 a90d161ec89155bb064cb7e9a8320475bdf75c47588000e5baa8275e9c0ce69126c3a75a4d1f40fa799f27cf537856482ed505436255519b58d9b84a4809fd0a |
23 |
|
24 |
diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-3.2.0.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-3.2.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..c35487bc242 |
27 |
--- /dev/null |
28 |
+++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-3.2.0.ebuild |
29 |
@@ -0,0 +1,83 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+MY_PV="v${PV}" |
36 |
+inherit autotools eutils systemd |
37 |
+ |
38 |
+DESCRIPTION="A lightweight secured SOCKS5 proxy for embedded devices and low end boxes" |
39 |
+HOMEPAGE="https://github.com/shadowsocks/shadowsocks-libev" |
40 |
+ |
41 |
+#repack with git submodule populated: libbloom, libcork, libipset |
42 |
+#SRC_URI="https://dev.gentoo.org/~dlan/distfiles/${P}.tar.xz" |
43 |
+ |
44 |
+SRC_URI="https://github.com/shadowsocks/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-3+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="debug doc" |
50 |
+ |
51 |
+RDEPEND="net-libs/mbedtls |
52 |
+ net-libs/libbloom |
53 |
+ net-libs/libcork |
54 |
+ net-libs/libcorkipset |
55 |
+ >=dev-libs/libsodium-1.0.8 |
56 |
+ dev-libs/libev |
57 |
+ net-dns/c-ares |
58 |
+ dev-libs/libpcre |
59 |
+ " |
60 |
+DEPEND="${RDEPEND} |
61 |
+ sys-kernel/linux-headers |
62 |
+ doc? ( |
63 |
+ app-text/asciidoc |
64 |
+ app-text/xmlto |
65 |
+ ) |
66 |
+ " |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ sed -i 's|AC_CONFIG_FILES(\[libbloom/Makefile libcork/Makefile libipset/Makefile\])||' \ |
70 |
+ configure.ac || die |
71 |
+ default |
72 |
+ eautoreconf |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ local myconf=" |
77 |
+ $(use_enable debug assert) |
78 |
+ --enable-system-shared-lib |
79 |
+ " |
80 |
+ use doc || myconf+="--disable-documentation" |
81 |
+ econf ${myconf} |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ default |
86 |
+ prune_libtool_files --all |
87 |
+ |
88 |
+ dodir "/etc/${PN}" |
89 |
+ insinto "/etc/${PN}" |
90 |
+ newins "${FILESDIR}/shadowsocks.json" shadowsocks.json |
91 |
+ |
92 |
+ newinitd "${FILESDIR}/shadowsocks.initd" shadowsocks |
93 |
+ dosym shadowsocks /etc/init.d/shadowsocks.server |
94 |
+ dosym shadowsocks /etc/init.d/shadowsocks.client |
95 |
+ dosym shadowsocks /etc/init.d/shadowsocks.redir |
96 |
+ dosym shadowsocks /etc/init.d/shadowsocks.tunnel |
97 |
+ |
98 |
+ dodoc -r acl |
99 |
+ |
100 |
+ systemd_newunit "${FILESDIR}/${PN}-local_at.service" "${PN}-local@.service" |
101 |
+ systemd_newunit "${FILESDIR}/${PN}-server_at.service" "${PN}-server@.service" |
102 |
+ systemd_newunit "${FILESDIR}/${PN}-redir_at.service" "${PN}-redir@.service" |
103 |
+ systemd_newunit "${FILESDIR}/${PN}-tunnel_at.service" "${PN}-tunnel@.service" |
104 |
+} |
105 |
+ |
106 |
+pkg_setup() { |
107 |
+ elog "You need to choose the mode" |
108 |
+ elog " server: rc-update add shadowsocks.server default" |
109 |
+ elog " client: rc-update add shadowsocks.client default" |
110 |
+ elog " redir: rc-update add shadowsocks.redir default" |
111 |
+ elog " tunnel: rc-update add shadowsocks.tunnel default" |
112 |
+} |