summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackteahamburger <blackteahamburger@outlook.com>2024-08-20 12:24:59 +0800
committerYixun Lan <dlan@gentoo.org>2024-08-23 11:04:59 +0000
commitbd2fde68657be50be9f70fdcd2910f328dec027f (patch)
tree2f6ee813f2b2938221dcc8c61b728b9dd40eb8a2 /net-proxy
parentsci-electronics/kicad-meta: Stabilize 8.0.3 amd64, #937005 (diff)
downloadgentoo-bd2fde68657be50be9f70fdcd2910f328dec027f.tar.gz
gentoo-bd2fde68657be50be9f70fdcd2910f328dec027f.tar.bz2
gentoo-bd2fde68657be50be9f70fdcd2910f328dec027f.zip
net-proxy/trojan: add tcpfastopen, nat and reuseport use flag
Closes: https://bugs.gentoo.org/938213 Closes: https://github.com/gentoo/gentoo/pull/38213 Signed-off-by: blackteahamburger <blackteahamburger@outlook.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/trojan/metadata.xml3
-rw-r--r--net-proxy/trojan/trojan-1.16.0-r3.ebuild (renamed from net-proxy/trojan/trojan-1.16.0-r2.ebuild)7
2 files changed, 8 insertions, 2 deletions
diff --git a/net-proxy/trojan/metadata.xml b/net-proxy/trojan/metadata.xml
index c141a430b420..c04b8ddb549e 100644
--- a/net-proxy/trojan/metadata.xml
+++ b/net-proxy/trojan/metadata.xml
@@ -25,6 +25,9 @@
</longdescription>
<use>
<flag name="mysql">build with MySQL support</flag>
+ <flag name="nat">Build with NAT support</flag>
+ <flag name="reuseport">Build with SO_REUSEPORT support</flag>
+ <flag name="tcpfastopen">Force build with TCP Fast Open support</flag>
</use>
<upstream>
<remote-id type="github">trojan-gfw/trojan</remote-id>
diff --git a/net-proxy/trojan/trojan-1.16.0-r2.ebuild b/net-proxy/trojan/trojan-1.16.0-r3.ebuild
index b5b332947cbb..f77acffb22dc 100644
--- a/net-proxy/trojan/trojan-1.16.0-r2.ebuild
+++ b/net-proxy/trojan/trojan-1.16.0-r3.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
DISABLE_AUTOFORMATTING=1
FORCE_PRINT_ELOG=1
@@ -20,7 +20,7 @@ fi
LICENSE="GPL-3+"
SLOT="0"
-IUSE="mysql test"
+IUSE="mysql +nat +reuseport tcpfastopen test"
# Some hiccups setting up local network server.
RESTRICT="test"
@@ -50,6 +50,9 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DENABLE_MYSQL=$(usex mysql)
+ -DENABLE_NAT=$(usex nat)
+ -DENABLE_REUSE_PORT=$(usex reuseport)
+ -DFORCE_TCP_FASTOPEN=$(usex tcpfastopen)
-DSYSTEMD_SERVICE=ON
-DSYSTEMD_SERVICE_PATH=$(systemd_get_systemunitdir)
)