Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, net-proxy/trojan/files/, net-proxy/trojan/
Date: Sun, 26 May 2019 09:43:43
Message-Id: 1558863805.187ac04d251f28c762e2fced73446a67064957f2.mgorny@gentoo
1 commit: 187ac04d251f28c762e2fced73446a67064957f2
2 Author: YangMame <me <AT> yangmame <DOT> org>
3 AuthorDate: Tue Apr 16 16:49:47 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 26 09:43:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=187ac04d
7
8 net-proxy/trojan: version bump to 1.12.2
9
10 Signed-off-by: Xin Yang <yangmame <AT> icloud.com>
11 Closes: https://github.com/gentoo/gentoo/pull/11540
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 net-proxy/trojan/Manifest | 1 +
15 net-proxy/trojan/files/trojan.initd | 2 +-
16 net-proxy/trojan/trojan-1.12.2.ebuild | 47 +++++++++++++++++++++++++++++++++++
17 profiles/package.mask | 1 +
18 4 files changed, 50 insertions(+), 1 deletion(-)
19
20 diff --git a/net-proxy/trojan/Manifest b/net-proxy/trojan/Manifest
21 index a98743f222c..d1d3c306277 100644
22 --- a/net-proxy/trojan/Manifest
23 +++ b/net-proxy/trojan/Manifest
24 @@ -1 +1,2 @@
25 DIST trojan-1.10.0.tar.gz 38230 BLAKE2B 2cfa77ebfbae62edef983d1e57e3ce00a61118f6458cab353af60960e2586750fcd0c4237631481cfdfc8ed0ddad586e1d649046269c7e9177594869c187d8d1 SHA512 9d9a74218369f8094b292b8892e5f877ccec7d8912657491bb37da8e9ae4817f07a83fe401e33bbbdd2ac9c50c1440f3a021f93d85999b43df4849b0a04049cf
26 +DIST trojan-1.12.2.tar.gz 41742 BLAKE2B 7090c426c66877ed31a61b8b678d5169094af4687b37622cacac758ce907154f579b5a5455d850ed1ca5fb70e8793a13c3c4aa20015cca70d78d0ce51c747e2c SHA512 1cf0eb7cf740f6212140886e481adb00883f7132ba21d346812a2c23fca35222b93251b3cdaba6b6dad66b15f743d8627a5d42e28f32aaef5cab682ea37b5983
27
28 diff --git a/net-proxy/trojan/files/trojan.initd b/net-proxy/trojan/files/trojan.initd
29 old mode 100755
30 new mode 100644
31 index f525eefe74d..cee794ad4d7
32 --- a/net-proxy/trojan/files/trojan.initd
33 +++ b/net-proxy/trojan/files/trojan.initd
34 @@ -1,5 +1,5 @@
35 #!/sbin/openrc-run
36 -# Copyright 1999-2018 Gentoo Foundation
37 +# Copyright 1999-2019 Gentoo Authors
38 # Distributed under the terms of the GNU General Public License v2
39
40 TJ_CONFIG="/etc/trojan/config.json"
41
42 diff --git a/net-proxy/trojan/trojan-1.12.2.ebuild b/net-proxy/trojan/trojan-1.12.2.ebuild
43 new file mode 100644
44 index 00000000000..e394deff72a
45 --- /dev/null
46 +++ b/net-proxy/trojan/trojan-1.12.2.ebuild
47 @@ -0,0 +1,47 @@
48 +# Copyright 1999-2019 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=7
52 +
53 +PYTHON_COMPAT=( python{3_5,3_6,3_7} )
54 +
55 +inherit cmake-utils python-any-r1 systemd
56 +
57 +DESCRIPTION="An unidentifiable mechanism that helps you bypass GFW"
58 +HOMEPAGE="https://github.com/trojan-gfw/${PN}"
59 +SRC_URI="https://github.com/trojan-gfw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
60 +
61 +LICENSE="GPL-3+"
62 +SLOT="0"
63 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
64 +IUSE="mysql test"
65 +RESTRICT="!test? ( test )"
66 +
67 +RDEPEND="
68 + >=dev-libs/boost-1.66.0:=
69 + >=dev-libs/openssl-1.0.2:=
70 + mysql? ( dev-db/mysql-connector-c:= )
71 +"
72 +DEPEND="
73 + ${RDEPEND}
74 + test? ( net-misc/curl ${PYTHON_DEPS} )
75 +"
76 +
77 +src_configure() {
78 + local mycmakeargs=(
79 + -DENABLE_MYSQL=$(usex mysql)
80 + -DSYSTEMD_SERVICE=ON
81 + -DSYSTEMD_SERVICE_PATH=$(systemd_get_systemunitdir)
82 + -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
83 + )
84 + cmake-utils_src_configure
85 +}
86 +
87 +src_install() {
88 + cmake-utils_src_install
89 + newinitd "${FILESDIR}/trojan.initd" trojan
90 +}
91 +
92 +src_test() {
93 + cmake-utils_src_test -j1
94 +}
95
96 diff --git a/profiles/package.mask b/profiles/package.mask
97 index 9666ecde52c..a23337f0f3b 100644
98 --- a/profiles/package.mask
99 +++ b/profiles/package.mask
100 @@ -448,6 +448,7 @@ sys-boot/systemrescuecd-x86-grub
101 >=dev-libs/boost-1.70.0
102 >=dev-util/boost-build-1.70.0
103 >=net-mail/libpst-0.6.66-r2
104 +>=net-proxy/trojan-1.12.2
105
106 # Robin H. Johnson <robbat2@g.o> (25 Mar 2019)
107 # Requires >=dev-lang/lua-5.3 which is masked