1 parent
98a0def07a
commit
893efca5e2
8 files changed
+100
No files matched your search
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>overlay@gentoozh.org</email>
|
||||
<name>gentoo-zh</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>overlay@gentoozh.org</email>
|
||||
<name>gentoo-zh</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE
|
||||
pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>irort3124@gmail.com</email>
|
||||
<name>irort</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">bojieli/queqiao</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user