openbsd-ports/net/nepenthes/Makefile

76 lines
1.9 KiB
Makefile
Raw Normal View History

2011-09-21 13:20:56 -04:00
# $OpenBSD: Makefile,v 1.31 2011/09/21 17:20:56 jasper Exp $
SHARED_ONLY= Yes
COMMENT= determine the malware activity on a network
2008-02-16 05:56:41 -05:00
DISTNAME= nepenthes-0.2.2
2011-09-21 13:20:56 -04:00
EPOCH= 1
2011-09-16 07:13:37 -04:00
REVISION= 0
2011-09-21 13:20:56 -04:00
CATEGORIES= net
HOMEPAGE= http://nepenthes.mwcollect.org/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2008-02-16 05:56:41 -05:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nepenthes/}
USE_LIBTOOL= Yes
LIBTOOL_FLAGS+= --tag=disable-static
2010-10-18 14:36:45 -04:00
USE_GROFF = Yes
2011-07-06 14:57:09 -04:00
MODULES= devel/gettext
2010-11-19 17:31:32 -05:00
LIB_DEPENDS= net/adns \
net/curl \
devel/libmagic \
devel/pcre
2011-07-06 14:57:09 -04:00
WANTLIB= c crypto idn m ssl stdc++ pcap z \
2010-11-19 17:31:32 -05:00
adns>=1 curl>=3 magic>=1 pcre>=1
FAKE_FLAGS+= localstatedir='/var/nepenthes' \
sysconfdir='${PREFIX}/share/examples'
CONFIGURE_STYLE=gnu
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/postgresql"
CONFIGURE_ARGS+=--enable-debug-logging \
--disable-mysql \
--enable-postgre \
--disable-capabilities \
--localstatedir='/var/nepenthes' \
--with-curl-lib=${PREFIX}/lib
FLAVORS= prelude
FLAVOR?=
.if ${FLAVOR:L:Mprelude}
2010-11-19 17:31:32 -05:00
LIB_DEPENDS+= security/prelude/libprelude
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libprelude/" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
2011-07-06 14:57:09 -04:00
WANTLIB+= gcrypt gnutls gpg-error pthread tasn1 prelude>=8
CONFIGURE_ARGS+=--enable-prelude
MESSAGE= ${PKGDIR}/MESSAGE-prelude
.else
2010-11-19 17:31:32 -05:00
LIB_DEPENDS+= databases/postgresql
WANTLIB += pq>=4
.endif
pre-configure:
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," \
${WRKBUILD}/conf/nepenthes.conf.dist
@perl -pi -e "s,%%PREFIX%%,${PREFIX}," \
${WRKBUILD}/conf/nepenthes.conf.dist
@perl -pi -e 's:\"var\/log:\"\/var\/nepenthes\/log:g' \
${WRKBUILD}/modules/log-download/log-download.conf.dist
@perl -pi -e 's:\"var\/binaries:\"/var\/nepenthes\/binaries:g' \
${WRKBUILD}/modules/submit-file/submit-file.conf.dist
.include <bsd.port.mk>