openbsd-ports/net/nepenthes/Makefile
2007-09-18 18:30:19 +00:00

71 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2007/09/18 18:30:19 rui Exp $
SHARED_ONLY= Yes
COMMENT= determine the malware activity on a network
DISTNAME= nepenthes-20070830
PKGNAME= ${DISTNAME}p0
CATEGORIES= net
HOMEPAGE= http://nepenthes.mwcollect.org/
MAINTAINER= Rui Reis <rui@rui.cx>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.obsd.fr/OpenBSD/distfiles/
USE_LIBTOOL= Yes
LIBTOOL_FLAGS+= --tag=disable-static
LIB_DEPENDS= adns.>=1::net/adns \
curl.>=3.3::net/curl \
magic.>=1::devel/libmagic \
pcre.>=1::devel/pcre
WANTLIB= c crypto iconv idn m ssl stdc++ pcap z
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}
LIB_DEPENDS+= prelude.>=8::security/prelude/libprelude
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libprelude/" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
WANTLIB+= gcrypt gnutls gpg-error iconv intl pthread
CONFIGURE_ARGS+=--enable-prelude
MESSAGE= ${PKGDIR}/MESSAGE-prelude
.else
LIB_DEPENDS+= pq.>=4::databases/postgresql
.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>