blob: dfe5c764529b71c997d1bf9dab2f5678aa9685f4 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
PORTNAME= greenbone-security-assistant
DISTVERSIONPREFIX= v
DISTVERSION= 21.4.3
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= LOCAL/acm/gsa/:yarn_cache
DISTFILES= ${PORTNAME}-cache${EXTRACT_SUFX}:yarn_cache
MAINTAINER= acm@FreeBSD.org
COMMENT= Libraries module for the GVM solution
LICENSE= AGPLv3+
BUILD_DEPENDS= yarn:www/yarn
LIB_DEPENDS= libgvm_base.so:security/gvm-libs \
libgnutls.so:security/gnutls \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error \
libmicrohttpd.so:www/libmicrohttpd
RUN_DEPENDS= doxygen>0:devel/doxygen \
${PYTHON_PKGNAMEPREFIX}polib>=0:devel/py-polib@${PY_FLAVOR}
USES= cmake gettext-runtime gnome nodejs:build pkgconfig python
USE_GNOME= glib20 libxml2
USE_GITHUB= yes
GH_ACCOUNT= greenbone
GH_PROJECT= gsa
CMAKE_ARGS+= -DINSTALLER_ARGS="--offline"
USERS= gvm
GROUPS= ${USERS}
USE_RC_SUBR= gsad
LDFLAGS+= -lm
ETCDIR= ${PREFIX}/etc/gvm
post-extract:
@${MV} ${WRKSRC}/gsad/src/gsad_log_conf.cmake_in ${WRKSRC}/gsad/src/gsad_log.conf.sample
post-patch:
${ECHO_CMD} 'yarn-offline-mirror "${WRKDIR}/yarn-offline-cache"' >> \
${WRKSRC}/.yarnrc
${REINPLACE_CMD} -e 's|$${GVM_LOG_DIR}|/var/log/gvm|g' ${WRKSRC}/gsad/src/gsad_log.conf.sample
post-install:
@${MKDIR} ${STAGEDIR}/var/run/gvm
@${MKDIR} ${STAGEDIR}${ETCDIR}
@${INSTALL_DATA} ${WRKSRC}/gsad/src/gsad_log.conf.sample ${STAGEDIR}${ETCDIR}
@${ECHO_CMD} "@sample etc/gvm/gsad_log.conf.sample" >> ${TMPPLIST}
@${ECHO_CMD} "sbin/gsad" >> ${TMPPLIST} >> ${TMPPLIST}
@${ECHO_CMD} "share/gvm/gsad/web/index.html" >> ${TMPPLIST}
@${ECHO_CMD} "share/gvm/gsad/web/robots.txt" >> ${TMPPLIST}
@cd ${WRKSRC}/gsa/build && \
${FIND} -s img locales static -not -type d \
-exec ${ECHO_CMD} "share/gvm/gsad/web/{}" \; >> ${TMPPLIST}
@${ECHO_CMD} "share/man/man8/gsad.8.gz" >> ${TMPPLIST}
@${ECHO_CMD} "@dir(gvm,gvm,750) /var/run/gvm" >> ${TMPPLIST}
.include <bsd.port.mk>
|