2003-06-18 04:40:11 +02:00
|
|
|
# New ports collection makefile for: libprelude
|
|
|
|
# Date created: Sun Aug 4 19:31:17 CEST 2002
|
|
|
|
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libprelude
|
2008-01-18 20:35:18 +01:00
|
|
|
PORTVERSION= 0.9.16.1
|
2008-03-03 12:57:08 +01:00
|
|
|
PORTREVISION= 1
|
2003-06-18 04:40:11 +02:00
|
|
|
CATEGORIES= security
|
2006-03-02 10:37:50 +01:00
|
|
|
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
|
|
|
|
http://www.prelude-ids.org/download/releases/old/
|
2003-06-18 04:40:11 +02:00
|
|
|
|
2006-02-15 15:02:57 +01:00
|
|
|
MAINTAINER= r.gruyters@yirdis.nl
|
2005-10-14 20:17:00 +02:00
|
|
|
COMMENT= Framework library for Prelude NIDS
|
2003-06-18 04:40:11 +02:00
|
|
|
|
2008-03-03 12:57:08 +01:00
|
|
|
LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls
|
2005-10-07 17:00:21 +02:00
|
|
|
|
2006-07-19 17:04:25 +02:00
|
|
|
OPTIONS= PERL "Include Perl bindings" off \
|
|
|
|
PYTHON "Include Python bindings" off
|
|
|
|
|
2003-09-27 00:30:58 +02:00
|
|
|
USE_GMAKE= yes
|
2006-03-02 10:37:50 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-11-27 02:16:41 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-10-14 20:17:00 +02:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var
|
2003-06-18 04:40:11 +02:00
|
|
|
|
- Update to 0.9.15.2
- Updated patch-Makefile.in
- Added Man page
Changelog libprelude:
- prelude-adduser has been renamed to prelude-admin, and now include command
to print or send files containing binary IDMEF data.
- Brand new failover implementation, Feature a real 'journaling' log,
allowing to restart where we were interupted. Allow multiple process to write to
the same failover, and is chroot safe.
- prelude-admin manpage, thanks to Frederic Motte <fred at ubixis com>.
- Use SHA1 in place of MD5 for Analyzer checksum.
- Do not set TCP option on UNIX socket, avoid un-necessary warning.
- New measure all over the public interface to protect against bad API
usage, when a function is not used correctly, a critical warning is triggered.
- [logging]: New PRELUDE_LOG_CRIT logging priority.
- [logging]: Correctly map Prelude log level to Syslog priority.
- [logging]: Improved logging format (include timestamp, level, process pid).
- [logging]: New LIBPRELUDE_ABORT variable, useful if you'd like libprelude
to abord on critical assertion.
- [logging]: Automatically switch to syslog mode if we detect stdout/stderr
closure.
- [IDMEF-Criteria]: When we try to match a value against a path that is not
part of a message using a 'not' operator, the match should succeed
(Example:
alert.classification.text != 'stuff' should match if the message has no
classification object).
- [IDMEF-Criteria]: When matching multiple listed values within the same
path using a 'not' operator, return an explicit 'no match' if the provided
comparison value was found at least once.
- [IDMEF-Path] (fix #251): Fixes NULL pointer dereference when the last
element of an IDMEF path to an enumeration is not the enumeration itself
(S??ébastien Tricaud <toady at gscore.org>
- Fix a possible race condition with the internal libprelude reference to
the program idmef_analyzer_t when asynchronous timer were used.
- Workaround possible deadlock at exit on OpenBSD, Linux Glibc.
- Only configure libltdl if it is required.
- Various bug fixes, minor enhancements.
- Write the children PID into specified pidfile (fixes #257).
- Fix double free on idmef_criterion_value_t cloned regexp object (thanks
to Helmut Azbest <helmut.azbest at gmail.com>).
- Allow Python thread to run, while entering libprelude C function.
- Return PRELUDE_ERROR_ASSERTION when API check fail, in place of
PRELUDE_ERROR_GENERIC.
- Make prelude_plugin_unsubcribe() work as expected (call the plugin
instance destroy function).
- Various bug fixes, minor enhancements.
PR: ports/116107
Submitted by: maintainer (Robin Gruyters)
2007-10-05 03:44:07 +02:00
|
|
|
MAN1= prelude-admin.1
|
|
|
|
|
2006-07-19 17:04:25 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-10-07 17:00:21 +02:00
|
|
|
.if defined(WITH_PERL)
|
|
|
|
USE_PERL5= yes
|
2006-05-05 13:21:57 +02:00
|
|
|
CONFIGURE_ARGS+= --with-perl
|
2005-10-07 17:00:21 +02:00
|
|
|
PLIST_SUB+= WITH_PERL=""
|
2003-06-18 04:40:11 +02:00
|
|
|
.else
|
2006-05-05 13:21:57 +02:00
|
|
|
CONFIGURE_ARGS+= --without-perl
|
2005-10-07 17:00:21 +02:00
|
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
2003-06-18 04:40:11 +02:00
|
|
|
.endif
|
|
|
|
|
2005-10-07 17:00:21 +02:00
|
|
|
.if defined(WITH_PYTHON)
|
2006-11-27 02:16:41 +01:00
|
|
|
USE_PYTHON= 2.3+
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
2006-05-05 13:21:57 +02:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
2005-10-07 17:00:21 +02:00
|
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
|
|
.else
|
2006-05-05 13:21:57 +02:00
|
|
|
CONFIGURE_ARGS+= --without-python
|
2005-10-07 17:00:21 +02:00
|
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
2003-12-17 01:07:53 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-14 20:17:00 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
|
|
|
|
|
2008-02-01 13:43:44 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile
|
|
|
|
.endif
|
|
|
|
|
2005-10-14 20:17:00 +02:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR}
|
- Update to 0.9.15.2
- Updated patch-Makefile.in
- Added Man page
Changelog libprelude:
- prelude-adduser has been renamed to prelude-admin, and now include command
to print or send files containing binary IDMEF data.
- Brand new failover implementation, Feature a real 'journaling' log,
allowing to restart where we were interupted. Allow multiple process to write to
the same failover, and is chroot safe.
- prelude-admin manpage, thanks to Frederic Motte <fred at ubixis com>.
- Use SHA1 in place of MD5 for Analyzer checksum.
- Do not set TCP option on UNIX socket, avoid un-necessary warning.
- New measure all over the public interface to protect against bad API
usage, when a function is not used correctly, a critical warning is triggered.
- [logging]: New PRELUDE_LOG_CRIT logging priority.
- [logging]: Correctly map Prelude log level to Syslog priority.
- [logging]: Improved logging format (include timestamp, level, process pid).
- [logging]: New LIBPRELUDE_ABORT variable, useful if you'd like libprelude
to abord on critical assertion.
- [logging]: Automatically switch to syslog mode if we detect stdout/stderr
closure.
- [IDMEF-Criteria]: When we try to match a value against a path that is not
part of a message using a 'not' operator, the match should succeed
(Example:
alert.classification.text != 'stuff' should match if the message has no
classification object).
- [IDMEF-Criteria]: When matching multiple listed values within the same
path using a 'not' operator, return an explicit 'no match' if the provided
comparison value was found at least once.
- [IDMEF-Path] (fix #251): Fixes NULL pointer dereference when the last
element of an IDMEF path to an enumeration is not the enumeration itself
(S??ébastien Tricaud <toady at gscore.org>
- Fix a possible race condition with the internal libprelude reference to
the program idmef_analyzer_t when asynchronous timer were used.
- Workaround possible deadlock at exit on OpenBSD, Linux Glibc.
- Only configure libltdl if it is required.
- Various bug fixes, minor enhancements.
- Write the children PID into specified pidfile (fixes #257).
- Fix double free on idmef_criterion_value_t cloned regexp object (thanks
to Helmut Azbest <helmut.azbest at gmail.com>).
- Allow Python thread to run, while entering libprelude C function.
- Return PRELUDE_ERROR_ASSERTION when API check fail, in place of
PRELUDE_ERROR_GENERIC.
- Make prelude_plugin_unsubcribe() work as expected (call the plugin
instance destroy function).
- Various bug fixes, minor enhancements.
PR: ports/116107
Submitted by: maintainer (Robin Gruyters)
2007-10-05 03:44:07 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1/
|
2006-12-22 09:56:09 +01:00
|
|
|
|
|
|
|
@if [ ! -f ${PREFIX}/etc/prelude/default/client.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/prelude/default/client.conf-dist \
|
|
|
|
${PREFIX}/etc/prelude/default/client.conf ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
@if [ ! -f ${PREFIX}/etc/prelude/default/global.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/prelude/default/global.conf-dist \
|
|
|
|
${PREFIX}/etc/prelude/default/global.conf ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
@if [ ! -f ${PREFIX}/etc/prelude/default/idmef-client.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/prelude/default/idmef-client.conf-dist \
|
|
|
|
${PREFIX}/etc/prelude/default/idmef-client.conf ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
@if [ ! -f ${PREFIX}/etc/prelude/default/tls.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/prelude/default/tls.conf-dist \
|
|
|
|
${PREFIX}/etc/prelude/default/tls.conf ; \
|
|
|
|
fi
|
|
|
|
|
2005-10-14 20:17:00 +02:00
|
|
|
.endif
|
2003-06-18 04:40:11 +02:00
|
|
|
|
2006-07-19 17:04:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|