mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-proxy/byedpi: sync live
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -6,14 +6,21 @@ EAPI=8
|
||||
inherit systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="Bypass DPI SOCKS proxy"
|
||||
HOMEPAGE="https://github.com/hufrea/byedpi/"
|
||||
HOMEPAGE="https://github.com/hufrea/byedpi"
|
||||
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hufrea/byedpi.git"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hufrea/byedpi.git"
|
||||
else
|
||||
SRC_URI="https://github.com/hufrea/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="acct-user/byedpi"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
@@ -29,10 +36,10 @@ src_install() {
|
||||
dobin ciadpi
|
||||
einstalldocs
|
||||
|
||||
newinitd "${FILESDIR}"/byedpi.initd byedpi
|
||||
newinitd "${FILESDIR}"/byedpi.initd-r2 byedpi
|
||||
newconfd "${FILESDIR}"/byedpi.confd byedpi
|
||||
systemd_dounit "dist/linux/${PN}.service"
|
||||
systemd_dounit dist/linux/byedpi.service
|
||||
|
||||
insinto /etc
|
||||
newins "dist/linux/${PN}.conf" "${PN}.conf"
|
||||
doins dist/linux/byedpi.conf
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
: "${BYEDPI_BIND_IP:=0.0.0.0}"
|
||||
: "${BYEDPI_BIND_PORT:=1080}"
|
||||
: "${BYEDPI_OPTS:=--disorder 5 --auto=torst --tlsrec 6+s}"
|
||||
|
||||
command="/usr/bin/ciadpi"
|
||||
command_args="--ip ${BYEDPI_BIND_IP} --port ${BYEDPI_BIND_PORT} ${BYEDPI_OPTS}"
|
||||
command_user="nobody:nobody"
|
||||
command_background=1
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
Reference in New Issue
Block a user