aboutsummaryrefslogtreecommitdiff
path: root/security/cvechecker/Makefile
blob: cb81d04bf98b72da3403900eafaeb239f5ea8d0b (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
39
40
41
42
43
44
45
46
47
48
49
PORTNAME=	cvechecker
DISTVERSIONPREFIX=	v
DISTVERSION=	3.9
PORTREVISION=	2
CATEGORIES=	security

MAINTAINER=	se@FreeBSD.org
COMMENT=	Check CVE database for vulnerabilities affecting installed packages
WWW=		https://github.com/sjvermeu/cvechecker/wiki

LICENSE=	GPLv3

LIB_DEPENDS=	libargp.so:devel/argp-standalone \
		libconfig.so:devel/libconfig
RUN_DEPENDS=	bash:shells/bash

MAKE_ENV+=	LDADD=-largp
SUB_FILES=	pkg-message
SUB_LIST=	PORTNAME=${PORTNAME}

USES=		autoreconf pkgconfig shebangfix

SHEBANG_FILES=	scripts/cverules scripts/cvegenversdat

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
CONFIGURE_ARGS=	--localstatedir=/var/db

bash_OLD_CMD+=	/bin/sh

OPTIONS_DEFINE=			DOCS
OPTIONS_MULTI=			DB
OPTIONS_MULTI_DB=		MYSQL SQLITE
OPTIONS_DEFAULT=		SQLITE
DB_DESC=			CVE Database

MYSQL_USES=			mysql ssl
MYSQL_CONFIGURE_ENABLE=		mysql

SQLITE_USES=			sqlite
SQLITE_CONFIGURE_ENABLE=	sqlite3

USE_GITHUB=	yes
GH_ACCOUNT=	sjvermeu

post-stage:
		${MV} ${STAGEDIR}${PREFIX}/etc/cvechecker.conf ${STAGEDIR}${PREFIX}/etc/cvechecker.conf.sample

.include <bsd.port.mk>