Install this version:
emerge -a =net-proxy/queqiao-0.12.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-proxy/queqiao-0.12.0
Or alternatively:
emerge --autounmask-write -a =net-proxy/queqiao-0.12.0
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd readme.gentoo-r1
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/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
acct-group/${PN}
acct-user/${PN}
"
BDEPEND="${RDEPEND}
>=dev-lang/go-1.26.10
"
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
newinitd "${FILESDIR}/queqiaod.initd" queqiaod
newconfd "${FILESDIR}/queqiaod.confd" queqiaod
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}
acct-group/queqiao acct-user/queqiao
acct-group/queqiao acct-user/queqiao >=dev-lang/go-1.26.10
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | queqiao-0.12.0-vendor.tar.xz | 1374220 bytes | https://github.com/gentoo-zh/gentoo-deps/releases/download/queqiao-0.12.0/queqiao-0.12.0-vendor.tar.xz |
| DIST | queqiao-0.12.0.tar.gz | 4454359 bytes | https://github.com/bojieli/queqiao/archive/refs/tags/v0.12.0.tar.gz |