mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
net-proxy/byedpi: add 0.17.3, drop old
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
: "${BYEDPI_USER:=byedpi}"
|
||||
: "${BYEDPI_GROUP:=nobody}"
|
||||
|
||||
: "${BYEDPI_BIND_IP:=0.0.0.0}"
|
||||
: "${BYEDPI_BIND_PORT:=1080}"
|
||||
: "${BYEDPI_OPTS:=--disorder 5 --auto=torst --tlsrec 6+s}"
|
||||
|
||||
command="/usr/bin/ciadpi"
|
||||
pidfile="/run/byedpi/${RC_SVCNAME}.pid"
|
||||
command_user="${BYEDPI_USER}:${BYEDPI_GROUP}"
|
||||
command_args="--ip ${BYEDPI_BIND_IP} --port ${BYEDPI_BIND_PORT} ${BYEDPI_OPTS}"
|
||||
command_args_background="--daemon --pidfile ${pidfile}"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -q -do "${BYEDPI_USER}":root "$(dirname "${pidfile}")"
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=Bypass DPI SOCKS proxy
|
||||
Documentation=https://github.com/hufrea/byedpi/blob/main/readme.txt
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/ciadpi --disorder 5 --auto=torst --tlsrec 6+s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user