blob: 944d2ca0e9aef746920fad089bba391be44dabd6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
PORTNAME= certspotter
DISTVERSIONPREFIX= v
DISTVERSION= 0.18.0
PORTREVISION= 2
CATEGORIES= security www
MAINTAINER= flo@FreeBSD.org
COMMENT= Certificate Transparency Monitor
WWW= https://github.com/SSLMate/certspotter
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.21,modules
USE_RC_SUBR= certspotter
GO_MODULE= software.sslmate.com/src/certspotter
GO_TARGET= ./cmd/${PORTNAME}:${PREFIX}/sbin/${PORTNAME}
CERTSPOTTER_USER?= certspotter
CERTSPOTTER_GROUP?= certspotter
SUB_LIST+= CERTSPOTTER_GROUP=${CERTSPOTTER_GROUP} \
CERTSPOTTER_USER=${CERTSPOTTER_USER}
USERS= ${CERTSPOTTER_USER}
GROUPS= ${CERTSPOTTER_GROUP}
PLIST_SUB+= CERTSPOTTER_GROUP=${CERTSPOTTER_GROUP} \
CERTSPOTTER_USER=${CERTSPOTTER_USER}
pre-install:
@${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
@${ECHO_CMD} "example.org" > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/watchlist.sample
@${MKDIR} ${STAGEDIR}/var/run/${PORTNAME}
.include <bsd.port.mk>
|