View | Details | Raw Unified | Return to bug 280591 | Differences between
and this patch

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 320-326 _wsdd:*:370: Link Here
320
# free: 377
320
# free: 377
321
# free: 378
321
# free: 378
322
# free: 379
322
# free: 379
323
# free: 380
323
spoofdpi:*:380:
324
# free: 381
324
# free: 381
325
# free: 382
325
# free: 382
326
# free: 383
326
# free: 383
(-)b/UIDs (-1 / +1 lines)
Lines 325-331 _wsdd:*:370:370::0:0:Web Service Discovery Daemon:/nonexistent:/usr/sbin/nologin Link Here
325
# free: 377
325
# free: 377
326
# free: 378
326
# free: 378
327
# free: 379
327
# free: 379
328
# free: 380
328
spoofdpi:*:380:380::0:0:SpoofDPI Daemon:/nonexistent:/usr/sbin/nologin
329
# free: 381
329
# free: 381
330
# free: 382
330
# free: 382
331
# free: 383
331
# free: 383
(-)b/net/spoofdpi/Makefile (-3 / +9 lines)
Lines 34-43 GH_TUPLE= atomicgo:cursor:v0.2.0:atomicgo_cursor/vendor/atomicgo.dev/cursor \ Link Here
34
		rivo:uniseg:v0.4.4:rivo_uniseg/vendor/github.com/rivo/uniseg \
34
		rivo:uniseg:v0.4.4:rivo_uniseg/vendor/github.com/rivo/uniseg \
35
		sirupsen:logrus:v1.9.3:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
35
		sirupsen:logrus:v1.9.3:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
36
		xo:terminfo:abceb7e1c41e:xo_terminfo/vendor/github.com/xo/terminfo
36
		xo:terminfo:abceb7e1c41e:xo_terminfo/vendor/github.com/xo/terminfo
37
USE_RC_SUBR=	spoofdpi
37
38
38
GO_TARGET=	./cmd/spoof-dpi
39
GO_TARGET=	./cmd/spoof-dpi:spoofdpi
39
GO_BUILDFLAGS=	-ldflags="-s -w" -o ./build/spoof-dpi
40
GO_BUILDFLAGS=	-ldflags="-s -w" -o ./build/spoofdpi
40
41
41
PLIST_FILES=	bin/spoof-dpi
42
SUB_LIST=	USER=${USERS}
43
USERS=		spoofdpi
44
GROUPS=		spoofdpi
45
46
PLIST_FILES=	bin/spoofdpi \
47
		etc/rc.d/spoofdpi
42
48
43
.include <bsd.port.mk>
49
.include <bsd.port.mk>
(-)b/net/spoofdpi/files/spoofdpi.in (-1 / +44 lines)
Added Link Here
0
- 
1
#!/bin/sh
2
3
# PROVIDE: spoofdpi
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
#
7
# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
8
# enable spoofdpi:
9
# spoofdpi_args (str):      Custom additional arguments to be passed
10
#                           spoofdpi (default empty).
11
# spoofdpi_user (str):      User to run spoofdpi as. Default
12
#                           to "%%USER%%" created by the port.
13
# spoofdpi_log (path):      Console log file (default /dev/null).
14
15
. /etc/rc.subr
16
17
case $0 in
18
/etc/rc*)
19
        # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
20
        # so get the name of the script from $_file
21
        name=$_file
22
        ;;
23
*)
24
        name=$0
25
        ;;
26
esac
27
28
name=${name##*/}
29
rcvar="${name}_enable"
30
31
load_rc_config "${name}"
32
33
eval "${rcvar}=\${${rcvar}:-'NO'}"
34
eval "_args=\${${name}_args:-''}"
35
eval "_user=\${${name}_user:-'%%USER%%'}"
36
eval "_log=\${${name}_log:-/dev/null}"
37
38
pidfile="/var/run/${name}.pid"
39
40
command="/usr/sbin/daemon"
41
command_args="-P ${pidfile} -u ${_user} -f -H -o ${_log} -m 3 %%PREFIX%%/bin/spoofdpi -no-banner ${_args}"
42
43
run_rc_command "$1"
44

Return to bug 280591