2003-06-18 04:52:48 +02: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-19 00:36:28 +01:00
|
|
|
PORTVERSION= 0.9.14.2
|
2008-11-30 00:21:13 +01:00
|
|
|
PORTREVISION= 2
|
2003-06-18 04:52:48 +02:00
|
|
|
CATEGORIES= security
|
2009-02-19 00:36:28 +01:00
|
|
|
MASTER_SITES= http://www.prelude-ids.com/download/releases/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME} ${PORTNAME}/old
|
2003-06-18 04:52:48 +02:00
|
|
|
|
2008-11-30 22:00:12 +01:00
|
|
|
MAINTAINER= r.gruyters@snow.nl
|
2003-06-18 04:52:48 +02:00
|
|
|
COMMENT= Prelude Network Intrusion Detection System central logging point
|
|
|
|
|
2009-02-19 00:36:28 +01:00
|
|
|
LIB_DEPENDS+= prelude.19:${PORTSDIR}/security/libprelude \
|
2008-03-03 12:57:08 +01:00
|
|
|
gnutls.26:${PORTSDIR}/security/gnutls
|
2003-06-18 04:52:48 +02:00
|
|
|
|
2003-09-27 00:30:58 +02:00
|
|
|
USE_GMAKE= yes
|
2006-10-09 15:38:02 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-06-18 04:52:48 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-03-21 12:50:53 +01:00
|
|
|
USE_RC_SUBR= prelude-manager.sh
|
2004-03-25 22:26:53 +01:00
|
|
|
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
|
|
|
|
--localstatedir=/var
|
2003-06-18 04:52:48 +02:00
|
|
|
|
2007-05-30 08:11:57 +02:00
|
|
|
PRELUDEUSER?= prelude
|
|
|
|
PRELUDEGROUP?= prelude
|
|
|
|
PRELUDEDIR?= /nonexistent
|
|
|
|
|
|
|
|
PRELUDEUID= 281
|
|
|
|
PRELUDEGID= ${PRELUDEUID}
|
|
|
|
|
2007-08-15 08:48:36 +02:00
|
|
|
MAN1= prelude-manager.1
|
|
|
|
|
2006-12-21 20:14:24 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-08-15 08:48:36 +02:00
|
|
|
PLIST_SUB+= PRELUDEDIR=${PRELUDEDIR} \
|
|
|
|
PRELUDEUSER=${PRELUDEUSER} \
|
|
|
|
PRELUDEGROUP=${PRELUDEGROUP}
|
|
|
|
|
|
|
|
SUB_FILES= pkg-install \
|
|
|
|
pkg-deinstall
|
|
|
|
|
2007-10-25 04:16:57 +02:00
|
|
|
SUB_LIST= PREFIX=${PREFIX} \
|
|
|
|
${PLIST_SUB}
|
2007-08-15 08:48:36 +02:00
|
|
|
|
2006-06-16 18:28:28 +02:00
|
|
|
.if defined(WITHOUT_XML)
|
2007-08-15 08:48:36 +02:00
|
|
|
PLIST_SUB+= WITH_XML="@comment "
|
2006-06-16 18:28:28 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-xmltest --without-xml
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
|
|
|
|
PLIST_SUB+= WITH_XML=""
|
|
|
|
.endif
|
|
|
|
|
2007-01-16 20:04:22 +01:00
|
|
|
.if defined(WITHOUT_PRELUDEDB)
|
|
|
|
PLIST_SUB+= WITH_PRELUDEDB="@comment "
|
2006-02-21 00:02:38 +01:00
|
|
|
.else
|
2006-08-15 08:45:33 +02:00
|
|
|
LIB_DEPENDS+= preludedb.4:${PORTSDIR}/security/libpreludedb
|
2007-01-16 20:04:22 +01:00
|
|
|
PLIST_SUB+= WITH_PRELUDEDB=""
|
2006-02-21 00:02:38 +01:00
|
|
|
.endif
|
|
|
|
|
2006-12-21 20:14:24 +01:00
|
|
|
post-install:
|
2006-12-22 09:54:38 +01:00
|
|
|
@if [ ! -f ${PREFIX}/etc/prelude-manager/prelude-manager.conf ]; then \
|
2006-12-21 20:14:24 +01:00
|
|
|
${CP} -p ${PREFIX}/etc/prelude-manager/prelude-manager.conf-dist \
|
|
|
|
${PREFIX}/etc/prelude-manager/prelude-manager.conf ; \
|
|
|
|
fi
|
2009-02-19 00:36:28 +01: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 20:14:24 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|