2008-02-16 05:56:41 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2008/02/16 10:56:41 rui Exp $
|
2006-04-14 13:08:25 -04:00
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-02 18:42:54 -04:00
|
|
|
COMMENT= determine the malware activity on a network
|
2006-04-14 13:08:25 -04:00
|
|
|
|
2008-02-16 05:56:41 -05:00
|
|
|
DISTNAME= nepenthes-0.2.2
|
2006-04-14 13:08:25 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= http://nepenthes.mwcollect.org/
|
|
|
|
|
2008-02-14 16:36:27 -05:00
|
|
|
MAINTAINER= Rui Reis <rui@openbsd.org>
|
2006-04-14 13:08:25 -04:00
|
|
|
|
|
|
|
# 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/}
|
2006-04-14 13:08:25 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
|
|
|
|
2006-08-01 06:50:19 -04:00
|
|
|
LIB_DEPENDS= adns.>=1::net/adns \
|
|
|
|
curl.>=3.3::net/curl \
|
|
|
|
magic.>=1::devel/libmagic \
|
|
|
|
pcre.>=1::devel/pcre
|
2006-04-14 13:08:25 -04:00
|
|
|
|
2007-11-17 15:39:02 -05:00
|
|
|
WANTLIB= c crypto iconv intl idn m ssl stdc++ pcap z
|
2006-04-14 13:08:25 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS+= localstatedir='/var/nepenthes' \
|
|
|
|
sysconfdir='${PREFIX}/share/examples'
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2007-04-15 07:58:25 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/postgresql"
|
2007-03-17 17:50:11 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-debug-logging \
|
2006-04-14 13:08:25 -04:00
|
|
|
--disable-mysql \
|
2007-04-15 07:58:25 -04:00
|
|
|
--enable-postgre \
|
2007-03-17 17:50:11 -04:00
|
|
|
--disable-capabilities \
|
2006-04-14 13:08:25 -04:00
|
|
|
--localstatedir='/var/nepenthes' \
|
|
|
|
--with-curl-lib=${PREFIX}/lib
|
|
|
|
|
2007-04-15 07:58:25 -04:00
|
|
|
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
|
|
|
|
|
2006-07-31 09:02:18 -04:00
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," \
|
2006-04-14 13:08:25 -04:00
|
|
|
${WRKBUILD}/conf/nepenthes.conf.dist
|
2006-07-31 09:02:18 -04:00
|
|
|
@perl -pi -e "s,%%PREFIX%%,${PREFIX}," \
|
2006-04-14 13:08:25 -04:00
|
|
|
${WRKBUILD}/conf/nepenthes.conf.dist
|
|
|
|
@perl -pi -e 's:\"var\/log:\"\/var\/nepenthes\/log:g' \
|
|
|
|
${WRKBUILD}/modules/log-download/log-download.conf.dist
|
2007-03-17 17:50:11 -04:00
|
|
|
@perl -pi -e 's:\"var\/binaries:\"/var\/nepenthes\/binaries:g' \
|
|
|
|
${WRKBUILD}/modules/submit-file/submit-file.conf.dist
|
2006-04-14 13:08:25 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|