blob: c49eb9fcf082da98a12c9a66bfdedf4af6763789 (
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
|
PORTNAME= trivy
DISTVERSIONPREFIX= v
DISTVERSION= 0.51.0
PORTREVISION= 1
CATEGORIES= security
MAINTAINER= mfechner@FreeBSD.org
COMMENT= Security scanner written in go
WWW= https://github.com/aquasecurity/trivy
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules,1.22
GO_MODULE= github.com/aquasecurity/trivy
GO_TARGET= ./cmd/trivy
GO_BUILDFLAGS= -ldflags=" \
-extldflags '-static' \
-X github.com/aquasecurity/trivy/pkg/version.ver=${DISTVERSION} \
-s -w"
PLIST_FILES= bin/${PORTNAME}
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/contrib/*.tpl ${STAGEDIR}${DATADIR}/
${FIND} -s ${STAGEDIR}${DATADIR} -not -type d | ${SORT} | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' | \
${SED} -E -e '/sample$$/ s#^#@sample #; \
s#${DATADIR_REL}/bin#@(,,555) ${DATADIR_REL}/bin#; ' >> ${TMPPLIST}
cat ${TMPPLIST}
.include <bsd.port.mk>
|