60 lines
1.4 KiB
Makefile
Raw Normal View History

2013-03-21 08:45:11 +00:00
# $OpenBSD: Makefile,v 1.37 2013/03/21 08:46:34 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= determine the malware activity on a network
DISTNAME= nepenthes-0.2.2
2011-09-21 17:20:56 +00:00
EPOCH= 1
2012-07-09 21:59:51 +00:00
REVISION= 1
2011-09-21 17:20:56 +00:00
CATEGORIES= net
HOMEPAGE= http://nepenthes.mwcollect.org/
# GPL
PERMIT_PACKAGE_CDROM= Yes
2008-02-16 10:56:41 +00:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nepenthes/}
LIBTOOL_FLAGS+= --tag=disable-static
2010-10-18 18:36:45 +00:00
USE_GROFF = Yes
2011-07-06 18:57:09 +00:00
MODULES= devel/gettext
2010-11-19 22:31:32 +00:00
LIB_DEPENDS= net/adns \
net/curl \
devel/libmagic \
devel/pcre
2011-07-06 18:57:09 +00:00
WANTLIB= c crypto idn m ssl stdc++ pcap z \
2010-11-19 22:31:32 +00:00
adns>=1 curl>=3 magic>=1 pcre>=1
FAKE_FLAGS+= localstatedir='/var/nepenthes' \
sysconfdir='${PREFIX}/share/examples'
2012-04-28 10:51:44 +00:00
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/nepenthes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/postgresql"
CONFIGURE_ARGS+=--enable-debug-logging \
--disable-mysql \
--enable-postgre \
--disable-capabilities \
--with-curl-lib=${PREFIX}/lib
2010-11-19 22:31:32 +00:00
LIB_DEPENDS+= databases/postgresql
WANTLIB += pq>=4
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>