brad 17833ea850 Revert back to using MySQL 5.1 for the time being. MariaDB 5.5 introduces
a new libmysqlclient non-blocking API which utilizes co-routines. The X86
specific GCC ASM co-routine support hid the fact that there was an issue.
The only fallback code so far is POSIX user contexts which OpenBSD does not
support.

Input from and Ok sthen@ jasper@
2013-06-12 20:36:33 +00:00

57 lines
1.1 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.6 2013/06/12 20:36:34 brad Exp $
COMMENT= local CVE checker tool
DISTNAME= cvechecker-3.2
REVISION= 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>