2012-10-04 12:48:50 +02:00
|
|
|
# Created by: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
2003-06-18 04:40:11 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libprelude
|
2012-12-15 23:22:37 +01:00
|
|
|
PORTVERSION= 1.0.1
|
2013-06-19 23:03:41 +02:00
|
|
|
PORTREVISION= 3
|
2003-06-18 04:40:11 +02:00
|
|
|
CATEGORIES= security
|
2012-12-15 23:22:37 +01:00
|
|
|
MASTER_SITES= https://www.prelude-ids.org/attachments/download/241/
|
2003-06-18 04:40:11 +02:00
|
|
|
|
2009-09-24 00:17:11 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-10-14 20:17:00 +02:00
|
|
|
COMMENT= Framework library for Prelude NIDS
|
2003-06-18 04:40:11 +02:00
|
|
|
|
2012-12-15 23:22:37 +01:00
|
|
|
LIB_DEPENDS= gmp:${PORTSDIR}/math/gmp \
|
|
|
|
gnutls:${PORTSDIR}/security/gnutls \
|
|
|
|
gcrypt:${PORTSDIR}/security/libgcrypt \
|
|
|
|
gpg-error:${PORTSDIR}/security/libgpg-error \
|
|
|
|
nettle:${PORTSDIR}/security/nettle \
|
|
|
|
p11-kit:${PORTSDIR}/security/p11-kit
|
2005-10-07 17:00:21 +02:00
|
|
|
|
2012-10-04 12:48:50 +02:00
|
|
|
OPTIONS_DEFINE= PERL PYTHON DOCS
|
2006-07-19 17:04:25 +02:00
|
|
|
|
2012-12-15 23:22:37 +01:00
|
|
|
USE_AUTOTOOLS= libtool libltdl
|
2008-09-30 03:43:27 +02:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
2009-02-19 00:36:22 +01:00
|
|
|
--enable-gtk-doc=no \
|
|
|
|
--with-html-dir=${PREFIX}/share/doc
|
2012-12-15 23:22:37 +01:00
|
|
|
USE_GMAKE= yes
|
2013-06-09 13:16:38 +02:00
|
|
|
USES= pathfix pkgconfig gettext iconv charsetfix
|
2012-12-15 23:22:37 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
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
|
2008-09-30 01:44:51 +02:00
|
|
|
PORTDOCS= *
|
- 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
|
|
|
|
2013-09-21 00:55:24 +02:00
|
|
|
NO_STAGE= yes
|
2009-09-18 14:02:00 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-07-19 17:04:25 +02:00
|
|
|
|
2012-10-04 12:48:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-08-03 10:45:51 +02:00
|
|
|
USES+= perl5
|
2012-12-15 23:22:37 +01:00
|
|
|
CONFIGURE_ARGS+=--with-perl
|
|
|
|
PLIST_SUB+= PERL=""
|
2003-06-18 04:40:11 +02:00
|
|
|
.else
|
2012-12-15 23:22:37 +01:00
|
|
|
CONFIGURE_ARGS+=--without-perl
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
2003-06-18 04:40:11 +02:00
|
|
|
.endif
|
|
|
|
|
2012-10-04 12:48:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2009-09-18 14:02:00 +02:00
|
|
|
USE_PYTHON= yes
|
2012-12-15 23:22:37 +01:00
|
|
|
CONFIGURE_ARGS+=--with-python
|
|
|
|
PLIST_SUB+= PYTHON="" PYTHON_VER="${PYTHON_VER}" VERSION="${PORTVERSION}"
|
2005-10-07 17:00:21 +02:00
|
|
|
.else
|
2012-12-15 23:22:37 +01:00
|
|
|
CONFIGURE_ARGS+=--without-python
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
2003-12-17 01:07:53 +01:00
|
|
|
.endif
|
|
|
|
|
2009-09-18 14:02:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-02-01 13:43:44 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile
|
|
|
|
.endif
|
|
|
|
|
2009-09-18 14:02:00 +02:00
|
|
|
post-patch:
|
2012-12-15 23:22:37 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^install-data-am:/s|install-data-local||' ${WRKSRC}/docs/api/Makefile.in
|
2009-09-18 14:02:00 +02:00
|
|
|
|
2005-10-14 20:17:00 +02:00
|
|
|
post-install:
|
2012-12-15 23:22:37 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1
|
|
|
|
.for f in client.conf global.conf idmef-client.conf tls.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} \
|
|
|
|
${PREFIX}/etc/prelude/default/${f}-dist
|
|
|
|
.if !exists(${PREFIX}/etc/prelude/default/${f})
|
|
|
|
(cd ${PREFIX}/etc/prelude/default && ${CP} -p ${f}-dist ${f})
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-06-12 19:45:02 +02:00
|
|
|
-@${RM} -f ${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod
|
2012-12-15 23:22:37 +01:00
|
|
|
.endif
|
2012-10-04 12:48:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-12-15 23:22:37 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-10-14 20:17:00 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR}
|
2008-09-30 01:44:51 +02:00
|
|
|
.endif
|
2006-12-22 09:56:09 +01:00
|
|
|
|
2006-07-19 17:04:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|