View | Details | Raw Unified | Return to bug 280754
Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 321-327 _wsdd:*:370: Link Here
321
# free: 378
321
# free: 378
322
# free: 379
322
# free: 379
323
spoofdpi:*:380:
323
spoofdpi:*:380:
324
# free: 381
324
hydroxide:*:381:
325
# free: 382
325
# free: 382
326
# free: 383
326
# free: 383
327
# free: 384
327
# free: 384
(-)b/UIDs (-1 / +1 lines)
Lines 326-332 _wsdd:*:370:370::0:0:Web Service Discovery Daemon:/nonexistent:/usr/sbin/nologin Link Here
326
# free: 378
326
# free: 378
327
# free: 379
327
# free: 379
328
spoofdpi:*:380:380::0:0:SpoofDPI Daemon:/nonexistent:/usr/sbin/nologin
328
spoofdpi:*:380:380::0:0:SpoofDPI Daemon:/nonexistent:/usr/sbin/nologin
329
# free: 381
329
hydroxide:*:381:381::0:0:Hydroxide Daemon:/nonexistent:/usr/sbin/nologin
330
# free: 382
330
# free: 382
331
# free: 383
331
# free: 383
332
# free: 384
332
# free: 384
(-)b/mail/hydroxide/Makefile (-5 / +8 lines)
Lines 1-7 Link Here
1
PORTNAME=	hydroxide
1
PORTNAME=	hydroxide
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	0.2.29
3
DISTVERSION=	0.2.29
4
PORTREVISION=	2
4
PORTREVISION=	3
5
CATEGORIES=	mail
5
CATEGORIES=	mail
6
6
7
MAINTAINER=	nxjoseph@protonmail.com
7
MAINTAINER=	nxjoseph@protonmail.com
Lines 12-18 LICENSE= MIT Link Here
12
LICENSE_FILE=	${WRKSRC}/LICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
13
14
USES=		go:modules
14
USES=		go:modules
15
16
USE_GITHUB=	yes
15
USE_GITHUB=	yes
17
GH_ACCOUNT=	emersion
16
GH_ACCOUNT=	emersion
18
GH_TUPLE=	ProtonMail:go-crypto:v1.0.0:protonmail_go_crypto/vendor/github.com/ProtonMail/go-crypto \
17
GH_TUPLE=	ProtonMail:go-crypto:v1.0.0:protonmail_go_crypto/vendor/github.com/ProtonMail/go-crypto \
Lines 31-39 GH_TUPLE= ProtonMail:go-crypto:v1.0.0:protonmail_go_crypto/vendor/github.com/Pro Link Here
31
		golang:term:v0.19.0:golang_term/vendor/golang.org/x/term \
30
		golang:term:v0.19.0:golang_term/vendor/golang.org/x/term \
32
		golang:text:v0.14.0:golang_text/vendor/golang.org/x/text
31
		golang:text:v0.14.0:golang_text/vendor/golang.org/x/text
33
32
34
GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
33
USE_RC_SUBR=	${PORTNAME}
35
GO_TARGET=	./cmd/hydroxide
34
GO_TARGET=	./cmd/${PORTNAME}
35
GO_BUILDFLAGS=	-ldflags="-s -w"
36
SUB_LIST=	USER=${USERS}
37
USERS=		${PORTNAME}
38
GROUPS=		${PORTNAME}
36
39
37
PLIST_FILES=	bin/hydroxide
40
PLIST_FILES=	bin/${PORTNAME}
38
41
39
.include <bsd.port.mk>
42
.include <bsd.port.mk>
(-)b/mail/hydroxide/files/hydroxide.in (-1 / +44 lines)
Added Link Here
0
- 
1
#!/bin/sh
2
3
# PROVIDE: hydroxide
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
#
7
# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
8
# enable hydroxide:
9
# hydroxide_args (str):	Custom additional arguments to be passed
10
#			hydroxide (default empty).
11
# hydroxide_user (str):	User to run hydroxide as. Default
12
#			to "%%USER%%" created by the port.
13
# hydroxide_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/hydroxide ${_args} serve"
42
43
run_rc_command "$1"
44

Return to bug 280754