openbsd-ports/security/cvechecker/Makefile
2013-03-11 11:35:43 +00:00

56 lines
1.1 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.2 2013/03/11 11:41:24 espie Exp $
COMMENT= local CVE checker tool
DISTNAME= cvechecker-3.2
CATEGORIES= security sysutils
HOMEPAGE= http://cvechecker.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c config sqlite3
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cvechecker/}
BUILD_DEPENDS= devel/argp-standalone
LIB_DEPENDS= devel/libconfig
RUN_DEPENDS= net/wget \
sysutils/coreutils \
textproc/libxslt
# XXX non functionnal yet
#FLAVORS= mysql
FLAVOR?=
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/db
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-largp"
CONFIGURE_ARGS= --enable-sqlite3
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/cvechecker
.if ${FLAVOR:Mmysql}
WANTLIB += crypto m mysqlclient ssl z
LIB_DEPENDS += databases/mysql
CONFIGURE_ARGS += --enable-mysql
.endif
pre-configure:
perl -pi -e 's,seq ,gseq ,g' ${WRKSRC}/scripts/pullcves
post-install:
rmdir ${WRKINST}/var/db/cvechecker/*
rmdir ${WRKINST}/var/db/cvechecker
.include <bsd.port.mk>