redsocks: add unprivileged service

This commit is contained in:
Yurei TZK
2025-11-28 18:19:41 +01:00
committed by Duncan Overbruck
parent 52378785f5
commit 31f0d5fef2
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec chpst -u _redsocks:_redsocks redsocks ${OPTS:- -c /etc/redsocks.conf} 2>&1
+3 -1
View File
@@ -1,7 +1,7 @@
# Template file for 'redsocks'
pkgname=redsocks
version=0.5
revision=4
revision=5
build_style=gnu-makefile
makedepends="libevent-devel"
short_desc="Transparent redirector of any TCP connection to a SOCKS or HTTP proxy"
@@ -10,9 +10,11 @@ license="Apache-2.0"
homepage="https://github.com/darkk/redsocks"
distfiles="${homepage}/archive/release-${version}.tar.gz"
checksum="bbeb531d7f1986d7102f1bd6733dacce41d3f3ba7d604f1aab61c63e0ba2ee62"
system_accounts="_redsocks"
do_install() {
vsconf redsocks.conf.example
vdoc README
vbin redsocks
vsv redsocks
}