1 |
commit: 903817176be4857233d9131ea536704fa30252c3 |
2 |
Author: YangMame <yangmame <AT> icloud <DOT> com> |
3 |
AuthorDate: Sat Feb 1 14:24:48 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 3 06:37:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90381717 |
7 |
|
8 |
net-proxy/trojan: version bump to 1.14.1 |
9 |
|
10 |
Signed-off-by: Xin Yang <yangmame <AT> icloud.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/14522 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
net-proxy/trojan/Manifest | 1 + |
15 |
net-proxy/trojan/trojan-1.14.1.ebuild | 47 +++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 48 insertions(+) |
17 |
|
18 |
diff --git a/net-proxy/trojan/Manifest b/net-proxy/trojan/Manifest |
19 |
index 9aea0f4395a..68ba07117b8 100644 |
20 |
--- a/net-proxy/trojan/Manifest |
21 |
+++ b/net-proxy/trojan/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST trojan-1.10.0.tar.gz 38230 BLAKE2B 2cfa77ebfbae62edef983d1e57e3ce00a61118f6458cab353af60960e2586750fcd0c4237631481cfdfc8ed0ddad586e1d649046269c7e9177594869c187d8d1 SHA512 9d9a74218369f8094b292b8892e5f877ccec7d8912657491bb37da8e9ae4817f07a83fe401e33bbbdd2ac9c50c1440f3a021f93d85999b43df4849b0a04049cf |
24 |
DIST trojan-1.12.3.tar.gz 41786 BLAKE2B f6306210a46316906b919fefb245a7c379ddcf785513bfbc3b8fc6a9c78e1c8cf22069533f58086fb4ffad05b625ab2b2fcacf2256520833ea49c0f307cee296 SHA512 f59afa28446dfef8680d7530aaff3609566b2873416bb11f8981ef111f63ed8deeacb2093373012547ede02dfb9beb8d92655b8f9ebafd6012c45b3ce787c22f |
25 |
DIST trojan-1.13.0.tar.gz 44579 BLAKE2B 87aba58687fa5f42385893b8d919a46428b7d3cdbd2da38ee3e96900c11a6a3df7778c2a54295d5abb1964991d2d30433c4b37e70a9ca4ba184005d338bbed74 SHA512 5904ff75d348e9ccdd451836b1b05df6736e22530643d67a192e393fe32623576e0bbc106c883b6bc32daa2a086d5a7e42f836d684b66fc0deca019b14e3b3ab |
26 |
+DIST trojan-1.14.1.tar.gz 45884 BLAKE2B 2498476f7e1a2190e21d85b2572fbc91a77b50f9f2adc2d3c3c5cef2554da17f322fbdb23232a55c66c38a4f680175f5c2aa87cefc25853b2007de4bb8bac84d SHA512 c8fcdae584e742d958c896e3a18605f22073341a8227a1d7cb116e9f2ddadd6e5007bfe40ff765d564f8659cd9e9d11731d95a5c74459b0698cc48dac49ead19 |
27 |
|
28 |
diff --git a/net-proxy/trojan/trojan-1.14.1.ebuild b/net-proxy/trojan/trojan-1.14.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..aa4fa9f95be |
31 |
--- /dev/null |
32 |
+++ b/net-proxy/trojan/trojan-1.14.1.ebuild |
33 |
@@ -0,0 +1,47 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python{3_6,3_7} ) |
40 |
+ |
41 |
+inherit cmake python-any-r1 systemd |
42 |
+ |
43 |
+DESCRIPTION="An unidentifiable mechanism that helps you bypass GFW" |
44 |
+HOMEPAGE="https://github.com/trojan-gfw/trojan" |
45 |
+SRC_URI="https://github.com/trojan-gfw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-3+" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
50 |
+IUSE="mysql test" |
51 |
+ |
52 |
+# Some hiccups setting up local network server. |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-libs/boost-1.66.0:= |
57 |
+ dev-libs/openssl:0= |
58 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
59 |
+" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ test? ( net-misc/curl ${PYTHON_DEPS} ) |
62 |
+" |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local mycmakeargs=( |
66 |
+ -DENABLE_MYSQL=$(usex mysql) |
67 |
+ -DSYSTEMD_SERVICE=ON |
68 |
+ -DSYSTEMD_SERVICE_PATH=$(systemd_get_systemunitdir) |
69 |
+ ) |
70 |
+ cmake_src_configure |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ cmake_src_install |
75 |
+ newinitd "${FILESDIR}/trojan.initd" trojan |
76 |
+} |
77 |
+ |
78 |
+src_test() { |
79 |
+ cmake_src_test -j1 |
80 |
+} |