Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.14 2017/03/28 08:15:15 ajacoutot Exp $
  2. COMMENT= local CVE checker tool
  3. DISTNAME= cvechecker-3.8
  4. CATEGORIES= security sysutils
  5. HOMEPAGE= https://github.com/sjvermeu/cvechecker/wiki
  6. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  7. # GPLv3
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB += c config sqlite3
  10. MASTER_SITES= https://raw.githubusercontent.com/wiki/sjvermeu/cvechecker/releases/
  11. BUILD_DEPENDS= devel/argp-standalone
  12. LIB_DEPENDS= devel/libconfig \
  13. databases/sqlite3
  14. RUN_DEPENDS= net/wget \
  15. sysutils/coreutils \
  16. textproc/libxslt
  17. # XXX non functional yet
  18. #FLAVORS= mysql
  19. FLAVOR?=
  20. LOCALSTATEDIR= ${BASELOCALSTATEDIR}/db
  21. CONFIGURE_STYLE=gnu
  22. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  23. LDFLAGS="-L${LOCALBASE}/lib" \
  24. LIBS="-largp"
  25. CONFIGURE_ARGS= --enable-sqlite3
  26. FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/cvechecker
  27. .if ${FLAVOR:Mmysql}
  28. WANTLIB += crypto m mysqlclient ssl z
  29. LIB_DEPENDS += databases/mariadb
  30. CONFIGURE_ARGS += --enable-mysql
  31. .endif
  32. pre-configure:
  33. sed -i 's,seq ,gseq ,g' ${WRKSRC}/scripts/pullcves
  34. post-install:
  35. rmdir ${WRKINST}/var/db/cvechecker/*
  36. rmdir ${WRKINST}/var/db/cvechecker
  37. .include <bsd.port.mk>