blob: 8b3dd67a467222cb69f90e4ffdcc072695f2a4b6 (
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
37
38
|
PORTNAME= osv-scanner
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.6
PORTREVISION= 1
CATEGORIES= security
MAINTAINER= lcook@FreeBSD.org
COMMENT= Vulnerability scanner written in Go which uses the OSV database
WWW= https://github.com/google/osv-scanner
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
_BUILD_VERSION= ${DISTVERSION}
_BUILD_COMMIT= b5af6c7
_BUILD_DATE= $$(date +%Y-%m-%d)
GO_MODULE= github.com/google/${PORTNAME}
GO_TARGET= ./cmd/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.version=${_BUILD_VERSION} \
-X main.date=${_BUILD_DATE} \
-X main.commit=${_BUILD_COMMIT}"
PORTDOCS= README.md
PLIST_FILES= ${GO_TARGET:C/.\/cmd/bin/}
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|