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

(-)b/GIDs (-1 / +1 lines)
Lines 815-821 opensearch:*:855: Link Here
815
bitmark:*:872:
815
bitmark:*:872:
816
bitmark-recorder:*:873:
816
bitmark-recorder:*:873:
817
librespeed:*:874:
817
librespeed:*:874:
818
# free: 875
818
cfssl:*:875:
819
_lms:*:876:
819
_lms:*:876:
820
gemserv:*:877:
820
gemserv:*:877:
821
gerbera:*:878:
821
gerbera:*:878:
(-)b/UIDs (-1 / +1 lines)
Lines 820-826 archiva:*:871:871::0:0:Apache Archiva Daemon:/nonexistent:/usr/sbin/nologin Link Here
820
bitmark:*:872:872::0:0:Bitmark Property System:/var/lib/bitmarkd:/usr/sbin/nologin
820
bitmark:*:872:872::0:0:Bitmark Property System:/var/lib/bitmarkd:/usr/sbin/nologin
821
bitmark-recorder:*:873:873::0:0:Bitmark Property Recorder:/var/lib/recorderd:/usr/sbin/nologin
821
bitmark-recorder:*:873:873::0:0:Bitmark Property Recorder:/var/lib/recorderd:/usr/sbin/nologin
822
librespeed:*:874:874::0:0:LibreSpeed user:/nonexistent:/usr/sbin/nologin
822
librespeed:*:874:874::0:0:LibreSpeed user:/nonexistent:/usr/sbin/nologin
823
# free: 875
823
cfssl:*:875:875::0:0:cfssl user:/nonexistent:/usr/sbin/nologin
824
_lms:*:876:876::0:0:Lightweight Music Server user:/nonexistent:/usr/sbin/nologin
824
_lms:*:876:876::0:0:Lightweight Music Server user:/nonexistent:/usr/sbin/nologin
825
gemserv:*:877:877::0:0:gemserv user:/nonexistent:/usr/sbin/nologin
825
gemserv:*:877:877::0:0:gemserv user:/nonexistent:/usr/sbin/nologin
826
gerbera:*:878:878::0:0:Gerbera DLNA Media Server:/nonexistent:/usr/sbin/nologin
826
gerbera:*:878:878::0:0:Gerbera DLNA Media Server:/nonexistent:/usr/sbin/nologin
(-)b/security/cfssl/Makefile (-1 / +19 lines)
Lines 1-6 Link Here
1
PORTNAME=	cfssl
1
PORTNAME=	cfssl
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.6.1
3
DISTVERSION=	1.6.1
4
PORTREVISION=	1
4
CATEGORIES=	security
5
CATEGORIES=	security
5
6
6
MAINTAINER=	yuri@FreeBSD.org
7
MAINTAINER=	yuri@FreeBSD.org
Lines 19-30 EXES= cfssl cfssl-bundle cfssl-certinfo cfssl-newkey cfssl-scan cfssljson mkbun Link Here
19
20
20
PLIST_FILES=	${EXES:S/^/bin\//}
21
PLIST_FILES=	${EXES:S/^/bin\//}
21
22
23
CFSSL_EXTRA_TARGETS=	bin/goose
24
PLIST_FILES+=	${CFSSL_EXTRA_TARGETS}
25
USE_RC_SUBR=	${PORTNAME}
26
USERS=	cfssl
27
GROUPS=	cfssl
28
# installs a file to the same path
29
CONFLICTS=   goose
30
22
pre-configure:
31
pre-configure:
23
	${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' ${WRKSRC}/cli/version/version.go
32
	${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' ${WRKSRC}/cli/version/version.go
24
33
25
# the project uses Makefile for build and installation
34
# the project uses Makefile for build and installation
26
do-build:
35
do-build:
27
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} all
36
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} all ${CFSSL_EXTRA_TARGETS}
28
37
29
do-install:
38
do-install:
30
	# Makefile is used but the install target uses go install.
39
	# Makefile is used but the install target uses go install.
Lines 33-36 do-install: Link Here
33
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${F}
42
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${F}
34
.endfor
43
.endfor
35
44
45
	${INSTALL} -d ${STAGEDIR}${DATADIR}
46
.for D in certdb/sqlite certdb/pg certdb/mysql
47
	cd ${WRKSRC} && ${COPYTREE_SHARE} ${D} ${STAGEDIR}${DATADIR}
48
.endfor
49
50
.for F in ${CFSSL_EXTRA_TARGETS}
51
	${INSTALL_PROGRAM} ${WRKSRC}/${F} ${STAGEDIR}/${PREFIX}/${F}
52
.endfor
53
36
.include <bsd.port.mk>
54
.include <bsd.port.mk>
(-)b/security/cfssl/files/cfssl.in (+38 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: cfssl
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
7
# Add the following lines to /etc/rc.conf to enable `cfssl':
8
#
9
# cfssl_enable="YES"
10
#
11
# An example cfssl_flags:
12
# cfssl_flags="-db-config /usr/local/etc/ssl/db.json -ca /usr/local/etc/ssl/ca.pem -ca-key /usr/local/etc/ssl/ca-key.pem -config /usr/local/etc/ssl/ca-config.json"
13
#
14
15
. /etc/rc.subr
16
17
name="cfssl"
18
rcvar=cfssl_enable
19
20
load_rc_config "$name"
21
: ${cfssl_enable="NO"}
22
: ${cfssl_flags:=""}
23
24
command="/usr/sbin/daemon"
25
cfssl_command="%%PREFIX%%/bin/cfssl"
26
cfssl_user="cfssl"
27
pidfile="/var/run/$name.pid"
28
flags=" "
29
command_args="-S -p ${pidfile} ${cfssl_command} serve ${cfssl_flags}"
30
procname="%%PREFIX%%/bin/cfssl"
31
start_precmd="cfssl_precmd"
32
33
cfssl_precmd()
34
{
35
	install -o ${cfssl_user} /dev/null ${pidfile}
36
}
37
38
run_rc_command "$1"
(-)b/security/cfssl/pkg-plist (+9 lines)
Added Link Here
1
%%DATADIR%%/certdb/mysql/dbconf.yml
2
%%DATADIR%%/certdb/mysql/migrations/001_CreateCertificates.sql
3
%%DATADIR%%/certdb/mysql/migrations/002_AddMetadataToCertificates.sql
4
%%DATADIR%%/certdb/pg/dbconf.yml
5
%%DATADIR%%/certdb/pg/migrations/001_CreateCertificates.sql
6
%%DATADIR%%/certdb/pg/migrations/002_AddMetadataToCertificates.sql
7
%%DATADIR%%/certdb/sqlite/dbconf.yml
8
%%DATADIR%%/certdb/sqlite/migrations/001_CreateCertificates.sql
9
%%DATADIR%%/certdb/sqlite/migrations/002_AddMetadataToCertificates.sql

Return to bug 259247