diff --git a/acct-group/queqiao/metadata.xml b/acct-group/queqiao/metadata.xml new file mode 100644 index 0000000000..ec5d4b71e1 --- /dev/null +++ b/acct-group/queqiao/metadata.xml @@ -0,0 +1,8 @@ + + + + + overlay@gentoozh.org + gentoo-zh + + diff --git a/acct-group/queqiao/queqiao-0.ebuild b/acct-group/queqiao/queqiao-0.ebuild new file mode 100644 index 0000000000..e40491ce39 --- /dev/null +++ b/acct-group/queqiao/queqiao-0.ebuild @@ -0,0 +1,8 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit acct-group + +ACCT_GROUP_ID=-1 diff --git a/acct-user/queqiao/metadata.xml b/acct-user/queqiao/metadata.xml new file mode 100644 index 0000000000..ec5d4b71e1 --- /dev/null +++ b/acct-user/queqiao/metadata.xml @@ -0,0 +1,8 @@ + + + + + overlay@gentoozh.org + gentoo-zh + + diff --git a/acct-user/queqiao/queqiao-0.ebuild b/acct-user/queqiao/queqiao-0.ebuild new file mode 100644 index 0000000000..67e201839e --- /dev/null +++ b/acct-user/queqiao/queqiao-0.ebuild @@ -0,0 +1,12 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit acct-user + +ACCT_USER_ID=-1 +ACCT_USER_GROUPS=( queqiao ) +ACCT_USER_HOME="/var/lib/queqiao" + +acct-user_add_deps diff --git a/net-proxy/queqiao/Manifest b/net-proxy/queqiao/Manifest new file mode 100644 index 0000000000..11b53486f0 --- /dev/null +++ b/net-proxy/queqiao/Manifest @@ -0,0 +1,2 @@ +DIST queqiao-0.6.3-vendor.tar.xz 1622036 BLAKE2B 2ea59d13885b12fb1dae130b4e1b91aac0cd01d06e077a23d2519a47dc950d69c0a671ac67cb88a72572e21cccd47bc03467b3403189d4e507839490f85b7a22 SHA512 34f9ca235128cbc95f7239b9a9df0244c628cc78e4469cdca32423b320c6af49b5d721db79e77f6068b6b2a364ae353d9556c48bdd3feb392f3019abbafb825a +DIST queqiao-0.6.3.tar.gz 4383391 BLAKE2B 6181e0b44451cfcb602faca03242e0b2e4323c818e58e3fc21bd5443b6d8a64b454583d3e9bdf4d13cd61562f1b4b631cc3a9b240a0885cc72d68eca13267746 SHA512 8681ae11bdf9d7dc2b91e53554f5e19926bb76b551750c8a5d81ee3f96870443ea025250b697e008ac236df041eeb973de46a69c162070a9b57c2198ddfc8222 diff --git a/net-proxy/queqiao/files/queqiaod.env b/net-proxy/queqiao/files/queqiaod.env new file mode 100644 index 0000000000..a69764c792 --- /dev/null +++ b/net-proxy/queqiao/files/queqiaod.env @@ -0,0 +1 @@ +QUEQIAOD_ARGS=--state /var/lib/queqiao/provider --listen :443 --transport auto --max-sessions 4096 --metrics-listen 127.0.0.1:19090 --log-level info --log-format json --log-file /var/log/queqiao/server.log --telemetry-log-interval 5s diff --git a/net-proxy/queqiao/metadata.xml b/net-proxy/queqiao/metadata.xml new file mode 100644 index 0000000000..5d3a19a4bc --- /dev/null +++ b/net-proxy/queqiao/metadata.xml @@ -0,0 +1,12 @@ + + + + + irort3124@gmail.com + irort + + + bojieli/queqiao + + diff --git a/net-proxy/queqiao/queqiao-0.6.3.ebuild b/net-proxy/queqiao/queqiao-0.6.3.ebuild new file mode 100644 index 0000000000..aa2e275e8a --- /dev/null +++ b/net-proxy/queqiao/queqiao-0.6.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="Self-hosted WAN optimization proxy for difficult long-haul links" +HOMEPAGE="https://github.com/bojieli/queqiao" +SRC_URI=" + https://github.com/bojieli/queqiao/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/irort/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-group/${PN} + acct-user/${PN} +" +BDEPEND="${RDEPEND} + >=dev-lang/go-1.25.13 +" + +src_prepare() { + rm -r mobile || die + sed -i 's|/usr/local/bin|/usr/bin|' deploy/queqiaod.service || die + default +} + +src_compile() { + ego build -o queqiaod -trimpath \ + -ldflags "-X main.version=${PV}" \ + ./cmd/queqiaod +} + +src_install() { + dobin queqiaod + + keepdir /var/log/queqiao + fowners queqiao:queqiao /var/log/queqiao + fperms 750 /var/log/queqiao + insinto /etc/queqiao + doins "${FILESDIR}/queqiaod.env" + + systemd_dounit deploy/queqiaod.service +}