blob: 9eaf68386ea228b744afd789c43fe95999157980 (
plain)
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
39
40
41
42
43
44
45
|
# Note to committers:
# With each version update, a new maven repository must be created and distributed
# so build is repeatable and cluster-safe.
PORTNAME= owasp-dependency-check
PORTVERSION= 3.1.1
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= security java
MASTER_SITES= LOCAL/pi/:source2
DISTFILES+= owasp-dependency-check-${PORTVERSION}-maven-repository.tar.gz:source2
MAINTAINER= ports@FreeBSD.org
COMMENT= Detects publicly disclosed vulnerabilities in project dependencies
LICENSE= APACHE20
BUILD_DEPENDS= ${LOCALBASE}/share/java/maven/bin/mvn:devel/maven
USE_GITHUB= yes
GH_ACCOUNT= jeremylong
GH_PROJECT= DependencyCheck
USE_JAVA= yes
NO_ARCH= yes
SUB_FILES= owasp-dependency-check
SUB_LIST= PORTVERSION=${PORTVERSION}
PLIST_DIRS= /var/cache/owasp-dependency-check
PLIST_FILES= bin/owasp-dependency-check \
${JAVAJARDIR}/owasp-dependency-check-${PORTVERSION}-jar-with-dependencies.jar
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/share/java/maven/bin/mvn \
--batch-mode -Dmaven.repo.local=${WRKDIR}/repository -DskipTests --offline package
do-install:
${INSTALL_DATA} ${WRKSRC}/dependency-check-cli/target/dependency-check-${PORTVERSION}-jar-with-dependencies.jar \
${STAGEDIR}${JAVAJARDIR}/owasp-dependency-check-${PORTVERSION}-jar-with-dependencies.jar
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}/var/cache/owasp-dependency-check
.include <bsd.port.mk>
|