2003-06-18 02:52:48 +00:00
|
|
|
# New ports collection makefile for: prelude-manager
|
|
|
|
# Date created: Sun Aug 4 19:31:17 CEST 2002
|
|
|
|
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= prelude-manager
|
2009-02-18 23:36:28 +00:00
|
|
|
PORTVERSION= 0.9.14.2
|
2011-06-08 14:35:10 +00:00
|
|
|
PORTREVISION= 7
|
2003-06-18 02:52:48 +00:00
|
|
|
CATEGORIES= security
|
2011-08-02 16:22:15 +00:00
|
|
|
MASTER_SITES= http://www.prelude-technologies.com/download/releases/${PORTNAME}/
|
2003-06-18 02:52:48 +00:00
|
|
|
|
2009-09-23 22:17:11 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-06-18 02:52:48 +00:00
|
|
|
COMMENT= Prelude Network Intrusion Detection System central logging point
|
|
|
|
|
2009-09-19 21:12:56 +00:00
|
|
|
LIB_DEPENDS+= prelude.20:${PORTSDIR}/security/libprelude \
|
2011-06-05 18:43:16 +00:00
|
|
|
gnutls.47:${PORTSDIR}/security/gnutls
|
2003-06-18 02:52:48 +00:00
|
|
|
|
2003-09-26 22:30:58 +00:00
|
|
|
USE_GMAKE= yes
|
2006-10-09 13:38:02 +00:00
|
|
|
USE_LDCONFIG= yes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2006-03-21 11:50:53 +00:00
|
|
|
USE_RC_SUBR= prelude-manager.sh
|
2004-03-25 21:26:53 +00:00
|
|
|
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
|
|
|
|
--localstatedir=/var
|
2011-09-23 22:26:39 +00:00
|
|
|
CONFIGURE_ENV= LIBS="${LIBS} -L${LOCALBASE}/lib"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2003-06-18 02:52:48 +00:00
|
|
|
|
2011-06-08 14:35:10 +00:00
|
|
|
USERS?= prelude
|
|
|
|
GROUPS?= prelude
|
2007-05-30 06:11:57 +00:00
|
|
|
|
2007-08-15 06:48:36 +00:00
|
|
|
MAN1= prelude-manager.1
|
|
|
|
|
2011-06-08 14:35:10 +00:00
|
|
|
PLIST_SUB= PRELUDEUSER=${USERS} \
|
|
|
|
PRELUDEGROUP=${GROUPS}
|
2007-08-15 06:48:36 +00:00
|
|
|
|
2011-06-08 14:35:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2007-08-15 06:48:36 +00:00
|
|
|
|
2006-06-16 16:28:28 +00:00
|
|
|
.if defined(WITHOUT_XML)
|
2007-08-15 06:48:36 +00:00
|
|
|
PLIST_SUB+= WITH_XML="@comment "
|
2006-06-16 16:28:28 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-xmltest --without-xml
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
|
|
|
|
PLIST_SUB+= WITH_XML=""
|
|
|
|
.endif
|
|
|
|
|
2007-01-16 19:04:22 +00:00
|
|
|
.if defined(WITHOUT_PRELUDEDB)
|
|
|
|
PLIST_SUB+= WITH_PRELUDEDB="@comment "
|
2006-02-20 23:02:38 +00:00
|
|
|
.else
|
2006-08-15 06:45:33 +00:00
|
|
|
LIB_DEPENDS+= preludedb.4:${PORTSDIR}/security/libpreludedb
|
2007-01-16 19:04:22 +00:00
|
|
|
PLIST_SUB+= WITH_PRELUDEDB=""
|
2006-02-20 23:02:38 +00:00
|
|
|
.endif
|
|
|
|
|
2006-12-21 19:14:24 +00:00
|
|
|
post-install:
|
2006-12-22 08:54:38 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/prelude-manager/prelude-manager.conf ]; then \
|
2006-12-21 19:14:24 +00:00
|
|
|
${CP} -p ${PREFIX}/etc/prelude-manager/prelude-manager.conf-dist \
|
|
|
|
${PREFIX}/etc/prelude-manager/prelude-manager.conf ; \
|
|
|
|
fi
|
2009-02-18 23:36:28 +00:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}/smtp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/reports/smtp/template.example ${EXAMPLESDIR}/smtp/template.example
|
|
|
|
.endif
|
2006-12-21 19:14:24 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|