Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/trojan/
Date: Sun, 27 Sep 2020 09:12:34
Message-Id: 1601197941.e6dfc0e9af89fb71fa1924190155256c9ad5ba55.dlan@gentoo
1 commit: e6dfc0e9af89fb71fa1924190155256c9ad5ba55
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 27 09:11:49 2020 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 27 09:12:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6dfc0e9
7
8 net-proxy/trojan: drop old
9
10 Package-Manager: Portage-3.0.0, Repoman-2.3.23
11 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
12
13 net-proxy/trojan/Manifest | 1 -
14 net-proxy/trojan/trojan-1.15.1.ebuild | 61 -----------------------------------
15 2 files changed, 62 deletions(-)
16
17 diff --git a/net-proxy/trojan/Manifest b/net-proxy/trojan/Manifest
18 index 493d1564747..0ccbae793da 100644
19 --- a/net-proxy/trojan/Manifest
20 +++ b/net-proxy/trojan/Manifest
21 @@ -1,2 +1 @@
22 -DIST trojan-1.15.1.tar.gz 48121 BLAKE2B 38f288d8b9a6c7a98ada85b6b2dd2448604f54068334380c2e6b49d6ee015a1fad2847747734ef1e670d201d9625e64859ccddde5b924ea09c4e87e206997431 SHA512 5e0dfb46116b9de54f5d4e6d0646ab5ba3746143c5ad0f275c894929ba7fc840cacb187e514bbfaa770f0651fc4d3ff9e662f648f515a972ddf72ad0e93d616f
23 DIST trojan-1.16.0.tar.gz 51669 BLAKE2B 9238f9886820ca3625a894ac8de1e199e238029593634436f3aa529d5c576f2636d5183b64a2e6155a888fe8f45629c94625f02119fbfb4ada01b1bd9e502fcf SHA512 60aa8539731eee6f15cbcb18b20b45435fc2dfe439a2f67fe9770257c3b6ffe219efe376cfd909f748d523a18645c96f6859b8487cacaba04ac7d93cf762f153
24
25 diff --git a/net-proxy/trojan/trojan-1.15.1.ebuild b/net-proxy/trojan/trojan-1.15.1.ebuild
26 deleted file mode 100644
27 index 21f494f1364..00000000000
28 --- a/net-proxy/trojan/trojan-1.15.1.ebuild
29 +++ /dev/null
30 @@ -1,61 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -PYTHON_COMPAT=( python{3_6,3_7} )
37 -
38 -inherit cmake python-any-r1 systemd
39 -
40 -DESCRIPTION="An unidentifiable mechanism that helps you bypass GFW"
41 -HOMEPAGE="https://github.com/trojan-gfw/trojan"
42 -SRC_URI="https://github.com/trojan-gfw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 -
44 -LICENSE="GPL-3+"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~arm ~arm64 ~x86"
47 -IUSE="mysql test"
48 -
49 -# Some hiccups setting up local network server.
50 -RESTRICT="test"
51 -
52 -RDEPEND="
53 - >=dev-libs/boost-1.66.0:=
54 - dev-libs/openssl:0=
55 - mysql? ( dev-db/mysql-connector-c:= )
56 -"
57 -DEPEND="${RDEPEND}
58 - test? ( net-misc/curl ${PYTHON_DEPS} )
59 -"
60 -
61 -src_configure() {
62 - local mycmakeargs=(
63 - -DENABLE_MYSQL=$(usex mysql)
64 - -DSYSTEMD_SERVICE=ON
65 - -DSYSTEMD_SERVICE_PATH=$(systemd_get_systemunitdir)
66 - )
67 - cmake_src_configure
68 -}
69 -
70 -src_install() {
71 - cmake_src_install
72 - newinitd "${FILESDIR}/trojan.initd" trojan
73 -}
74 -
75 -src_test() {
76 - cmake_src_test -j1
77 -}
78 -
79 -pkg_postinst() {
80 - elog "Running Trojan with multi instances"
81 - elog ""
82 -
83 - elog "Prepare /etc/trojan/\${blah}.json first"
84 - elog "Config with Openrc"
85 - elog " ln -s /etc/init.d/trojan{,.\${blah}}"
86 - elog " rc-update add trojan.\${blah} default"
87 - elog ""
88 - elog "Config with Systemd"
89 - elog " systemctl enable trojan.\${blah}"
90 - elog ""
91 -}