Index: head/net/nepenthes/Makefile =================================================================== --- head/net/nepenthes/Makefile (revision 365561) +++ head/net/nepenthes/Makefile (revision 365562) @@ -1,46 +1,46 @@ # Created by: ryo # $FreeBSD$ PORTNAME= nepenthes PORTVERSION= 0.2.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/Nepenthes%20development/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Determine the malware activity on a network LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \ libmagic.so:${PORTSDIR}/sysutils/file \ libpcre.so:${PORTSDIR}/devel/pcre \ libadns.so:${PORTSDIR}/dns/adns .if defined(WITH_PRELUDE) LIB_DEPENDS+= libprelude.so:${PORTSDIR}/security/libprelude CONFIGURE_ARGS+= --enable-prelude .endif .if defined(WITH_DEBUG_LOGGING) CONFIGURE_ARGS+= --enable-debug-logging .endif USES= perl5 GNU_CONFIGURE= yes DOCS= README README.VFS logo-shaded.svg MAN8= nepenthes.8 NO_STAGE= yes post-patch: @${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e 's,-Werror,,' @${REINPLACE_CMD} -e '//d' \ ${WRKSRC}/modules/download-curl/download-curl.hpp \ ${WRKSRC}/modules/submit-http/HTTPSession.hpp \ ${WRKSRC}/modules/submit-http/HTTPSession.cpp \ ${WRKSRC}/modules/submit-http/submit-http.hpp \ ${WRKSRC}/modules/submit-mwserv/TransferSession.hpp \ ${WRKSRC}/modules/submit-mwserv/submit-mwserv.hpp \ ${WRKSRC}/modules/submit-norman/submit-norman.hpp .include Index: head/security/libprelude/Makefile =================================================================== --- head/security/libprelude/Makefile (revision 365561) +++ head/security/libprelude/Makefile (revision 365562) @@ -1,86 +1,82 @@ # Created by: Clement Laforet # $FreeBSD$ PORTNAME= libprelude PORTVERSION= 1.0.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= security -MASTER_SITES= https://www.prelude-ids.org/attachments/download/241/ +MASTER_SITES= http://www.prelude-ids.org/attachments/download/241/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= koobs@FreeBSD.org COMMENT= Framework library for Prelude NIDS +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE.README + LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ libgnutls.so:${PORTSDIR}/security/gnutls \ libgcrypt.so:${PORTSDIR}/security/libgcrypt \ libgpg-error.so:${PORTSDIR}/security/libgpg-error \ libnettle.so:${PORTSDIR}/security/nettle \ libp11-kit.so:${PORTSDIR}/security/p11-kit -OPTIONS_DEFINE= PERL PYTHON DOCS +OPTIONS_DEFINE= DOCS PERL PYTHON +OPTIONS_SUB= yes -USE_AUTOTOOLS= libtool libltdl -CONFIGURE_ARGS= --localstatedir=/var \ +USES= charsetfix gettext gmake iconv libtool pathfix pkgconfig +USE_AUTOTOOLS= libltdl +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-static \ + --localstatedir=/var \ --enable-gtk-doc=no \ --with-html-dir=${PREFIX}/share/doc -USES= pathfix pkgconfig gettext iconv charsetfix gmake -USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +INSTALL_TARGET= install-strip -MAN1= prelude-admin.1 +ETCDIR= ${PREFIX}/etc/prelude PORTDOCS= * -NO_STAGE= yes +PERL_CONFIGURE_WITH= perl +PERL_USES= perl5 +PYTHON_CONFIGURE_WITH= python +PYTHON_USES= python + .include -.if ${PORT_OPTIONS:MPERL} -USES+= perl5 -CONFIGURE_ARGS+=--with-perl -PLIST_SUB+= PERL="" -.else -CONFIGURE_ARGS+=--without-perl -PLIST_SUB+= PERL="@comment " -.endif - .if ${PORT_OPTIONS:MPYTHON} -USE_PYTHON= yes -CONFIGURE_ARGS+=--with-python -PLIST_SUB+= PYTHON="" PYTHON_VER="${PYTHON_VER}" VERSION="${PORTVERSION}" -.else -CONFIGURE_ARGS+=--without-python -PLIST_SUB+= PYTHON="@comment " +PLIST_SUB+= PYTHON_VER="${PYTHON_VER}" VERSION="${PORTVERSION}" .endif .include .if ${ARCH} == "sparc64" BROKEN= Does not compile .endif post-patch: - @${REINPLACE_CMD} -e \ - '/^install-data-am:/s|install-data-local||' ${WRKSRC}/docs/api/Makefile.in @${REINPLACE_CMD} '\,gnutls/extra\.h,d' \ ${WRKSRC}/prelude-admin/prelude-admin.c \ ${WRKSRC}/prelude-admin/server.c post-install: - ${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${STAGEDIR}${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 + ${STAGEDIR}${ETCDIR}/default/${f}.sample + ${RM} ${STAGEDIR}${ETCDIR}/default/${f} # Remove files install-data-local installs .endfor + .if ${PORT_OPTIONS:MPERL} -@${RM} -f ${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod .endif + .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${STAGEDIR}${DOCSDIR} .endif .include Index: head/security/libprelude/pkg-plist =================================================================== --- head/security/libprelude/pkg-plist (revision 365561) +++ head/security/libprelude/pkg-plist (revision 365562) @@ -1,103 +1,96 @@ bin/libprelude-config bin/prelude-adduser bin/prelude-admin -@unexec if cmp -s %D/etc/prelude/default/client.conf %D/etc/prelude/default/client.conf-dist; then rm -f %D/etc/prelude/default/client.conf; fi -etc/prelude/default/client.conf-dist -@exec if [ ! -f %D/etc/prelude/default/client.conf ] ; then cp -p %D/%F %B/client.conf; fi -@unexec if cmp -s %D/etc/prelude/default/global.conf %D/etc/prelude/default/global.conf-dist; then rm -f %D/etc/prelude/default/global.conf; fi -etc/prelude/default/global.conf-dist -@exec if [ ! -f %D/etc/prelude/default/global.conf ] ; then cp -p %D/%F %B/global.conf; fi -@unexec if cmp -s %D/etc/prelude/default/idmef-client.conf %D/etc/prelude/default/idmef-client.conf-dist; then rm -f %D/etc/prelude/default/idmef-client.conf; fi -etc/prelude/default/idmef-client.conf-dist -@exec if [ ! -f %D/etc/prelude/default/idmef-client.conf ] ; then cp -p %D/%F %B/idmef-client.conf; fi -@unexec if cmp -s %D/etc/prelude/default/tls.conf %D/etc/prelude/default/tls.conf-dist; then rm -f %D/etc/prelude/default/tls.conf; fi -etc/prelude/default/tls.conf-dist -@exec if [ ! -f %D/etc/prelude/default/tls.conf ] ; then cp -p %D/%F %B/tls.conf; fi +@sample %%ETCDIR%%/default/client.conf.sample +@sample %%ETCDIR%%/default/global.conf.sample +@sample %%ETCDIR%%/default/idmef-client.conf.sample +@sample %%ETCDIR%%/default/tls.conf.sample include/libprelude/common.h include/libprelude/daemonize.h include/libprelude/idmef.h include/libprelude/idmef.hxx include/libprelude/idmef-additional-data.h include/libprelude/idmef-class.h include/libprelude/idmef-criteria.h include/libprelude/idmef-criteria.hxx include/libprelude/idmef-criterion-value.h include/libprelude/idmef-data.h include/libprelude/idmef-message-helpers.h include/libprelude/idmef-message-id.h include/libprelude/idmef-message-print.h include/libprelude/idmef-message-read.h include/libprelude/idmef-message-write.h include/libprelude/idmef-path.h include/libprelude/idmef-path.hxx include/libprelude/idmef-time.h include/libprelude/idmef-time.hxx include/libprelude/idmef-tree-data.h include/libprelude/idmef-tree-wrap.h include/libprelude/idmef-value.h include/libprelude/idmef-value.hxx include/libprelude/idmef-value-type.h include/libprelude/prelude.h include/libprelude/prelude.hxx include/libprelude/prelude-async.h include/libprelude/prelude-client.h include/libprelude/prelude-client.hxx include/libprelude/prelude-client-easy.hxx include/libprelude/prelude-client-profile.h include/libprelude/prelude-client-profile.hxx include/libprelude/prelude-config.h include/libprelude/prelude-connection.h include/libprelude/prelude-connection.hxx include/libprelude/prelude-connection-pool.h include/libprelude/prelude-connection-pool.hxx include/libprelude/prelude-error.h include/libprelude/prelude-error.hxx include/libprelude/prelude-extract.h include/libprelude/prelude-failover.h include/libprelude/prelude-hash.h include/libprelude/prelude-ident.h include/libprelude/prelude-inttypes.h include/libprelude/prelude-io.h include/libprelude/prelude-linked-object.h include/libprelude/prelude-list.h include/libprelude/prelude-log.h include/libprelude/prelude-log.hxx include/libprelude/prelude-message-id.h include/libprelude/prelude-msg.h include/libprelude/prelude-msgbuf.h include/libprelude/prelude-option-wide.h include/libprelude/prelude-option.h include/libprelude/prelude-plugin.h include/libprelude/prelude-string.h include/libprelude/prelude-thread.h include/libprelude/prelude-timer.h lib/libprelude.a -lib/libprelude.la lib/libprelude.so -lib/libprelude.so.21 +lib/libprelude.so.2 +lib/libprelude.so.2.19.1 lib/libpreludecpp.a -lib/libpreludecpp.la lib/libpreludecpp.so -lib/libpreludecpp.so.3 +lib/libpreludecpp.so.0 +lib/libpreludecpp.so.0.3.0 +man/man1/prelude-admin.1.gz %%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/Prelude.pm %%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Prelude/.packlist %%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Prelude/Prelude.so %%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/PreludeEasy/.packlist %%PYTHON%%%%PYTHON_SITELIBDIR%%/PreludeEasy-%%VERSION%%-py%%PYTHON_VER%%.egg-info %%PYTHON%%%%PYTHON_SITELIBDIR%%/PreludeEasy.py %%PYTHON%%%%PYTHON_SITELIBDIR%%/PreludeEasy.pyc %%PYTHON%%%%PYTHON_SITELIBDIR%%/_PreludeEasy.so %%PYTHON%%%%PYTHON_SITELIBDIR%%/_prelude.so %%PYTHON%%%%PYTHON_SITELIBDIR%%/prelude-%%VERSION%%-py%%PYTHON_VER%%.egg-info %%PYTHON%%%%PYTHON_SITELIBDIR%%/prelude.py %%PYTHON%%%%PYTHON_SITELIBDIR%%/prelude.pyc libdata/pkgconfig/libprelude.pc share/aclocal/libprelude.m4 %%PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/PreludeEasy %%PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Prelude @dirrm include/libprelude -@dirrm etc/prelude/default -@dirrmtry etc/prelude/profile -@dirrmtry etc/prelude +@dirrmtry %%ETCDIR%%/default +@dirrmtry %%ETCDIR%%/profile +@dirrmtry %%ETCDIR%% @exec install -d -o root -g wheel -m 711 /var/spool/prelude @unexec rmdir /var/spool/prelude 2>/dev/null || true Index: head/security/libpreludedb/Makefile =================================================================== --- head/security/libpreludedb/Makefile (revision 365561) +++ head/security/libpreludedb/Makefile (revision 365562) @@ -1,101 +1,101 @@ # Created by: Sergei Kolobov # $FreeBSD$ PORTNAME= libpreludedb PORTVERSION= 1.0.1p1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= security MASTER_SITES= https://www.prelude-ids.org/attachments/download/287/ MAINTAINER= ports@FreeBSD.org COMMENT= Framework library for access to Prelude NIDS database LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ libgnutls.so:${PORTSDIR}/security/gnutls \ libgcrypt.so:${PORTSDIR}/security/libgcrypt \ libgpg-error.so:${PORTSDIR}/security/libgpg-error \ libprelude.so:${PORTSDIR}/security/libprelude \ libnettle.so:${PORTSDIR}/security/nettle \ libp11-kit.so:${PORTSDIR}/security/p11-kit USE_AUTOTOOLS= libltdl GNU_CONFIGURE= yes USES= gettext iconv gmake CONFIGURE_ARGS= --enable-gtk-doc=no USE_LDCONFIG= yes MAN1= preludedb-admin.1 PORTDOCS= * OPTIONS_DEFINE= DOCS MYSQL PERL PGSQL PYTHON SQLITE OPTIONS_DEFAULT=MYSQL PERL_DESC= Perl bindings MYSQL_DESC= MySQL plugin PQSQL_DESC= PostgreSQL plugin SQLITE_DESC= SQLite3 plugin NO_STAGE= yes .include .if ${PORT_OPTIONS:MPERL} USES+= perl5 CONFIGURE_ARGS+= --with-perl PLIST_SUB+= WITH_PERL="" .else CONFIGURE_ARGS+= --without-perl PLIST_SUB+= WITH_PERL="@comment " .endif .if ${PORT_OPTIONS:MPYTHON} USE_PYTHON= yes CONFIGURE_ARGS+= --with-python PLIST_SUB+= WITH_PYTHON="" PYTHON_VER=${PYTHON_VER} .else CONFIGURE_ARGS+= --without-python PLIST_SUB+= WITH_PYTHON="@comment " .endif .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes CONFIGURE_ARGS+= --with-mysql PLIST_SUB+= WITH_MYSQL="" .else CONFIGURE_ARGS+= --without-mysql PLIST_SUB+= WITH_MYSQL="@comment " .endif .if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes CONFIGURE_ARGS+= --with-postgresql PLIST_SUB+= WITH_PGSQL="" .else CONFIGURE_ARGS+= --without-postgresql PLIST_SUB+= WITH_PGSQL="@comment " .endif .if ${PORT_OPTIONS:MSQLITE} USE_SQLITE= yes CONFIGURE_ARGS+= --with-sqlite3 PLIST_SUB+= WITH_SQLITE="" LIB_DEPENDS+= libsqlite3.so:${PORTSDIR}/databases/sqlite3 .else CONFIGURE_ARGS+= --without-sqlite3 PLIST_SUB+= WITH_SQLITE="@comment " .endif .if ${PORT_OPTIONS:MDOCS} CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc .endif post-install: .if ${PORT_OPTIONS:MDOCS} @${INSTALL} -d ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR} .endif .if ${PORT_OPTIONS:MPERL} @${RM} -f ${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod .endif @${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1/ .include Index: head/security/prelude-lml/Makefile =================================================================== --- head/security/prelude-lml/Makefile (revision 365561) +++ head/security/prelude-lml/Makefile (revision 365562) @@ -1,45 +1,45 @@ # Created by: Clement Laforet # $FreeBSD$ PORTNAME= prelude-lml PORTVERSION= 1.0.1 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= security MASTER_SITES= https://www.prelude-ids.org/attachments/download/242/ MAINTAINER= ports@FreeBSD.org COMMENT= Prelude Network Intrusion Detection System Log Monitoring Lackey LIB_DEPENDS= libicuuc.so:${PORTSDIR}/devel/icu \ libpcre.so:${PORTSDIR}/devel/pcre \ libgmp.so:${PORTSDIR}/math/gmp \ libgnutls.so:${PORTSDIR}/security/gnutls \ libgcrypt.so:${PORTSDIR}/security/libgcrypt \ libgpg-error.so:${PORTSDIR}/security/libgpg-error \ libprelude.so:${PORTSDIR}/security/libprelude \ libnettle.so:${PORTSDIR}/security/nettle \ libp11-kit.so:${PORTSDIR}/security/p11-kit USE_AUTOTOOLS= libltdl GNU_CONFIGURE= yes USE_RC_SUBR= prelude-lml CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc USES= charsetfix gettext iconv pkgconfig gmake OPTIONS_DEFINE= FAM FAM_CONFIGURE_ENABLE= fam FAM_USES= fam NO_STAGE= yes post-install: @if [ ! -f ${PREFIX}/etc/prelude-lml/prelude-lml.conf ]; then \ ${CP} -p ${PREFIX}/etc/prelude-lml/prelude-lml.conf-dist \ ${PREFIX}/etc/prelude-lml/prelude-lml.conf ; \ fi @if [ ! -f ${PREFIX}/etc/prelude-lml/plugins.rules ]; then \ ${CP} -p ${PREFIX}/etc/prelude-lml/plugins.rules-dist \ ${PREFIX}/etc/prelude-lml/plugins.rules ; \ fi .include Index: head/security/prelude-manager/Makefile =================================================================== --- head/security/prelude-manager/Makefile (revision 365561) +++ head/security/prelude-manager/Makefile (revision 365562) @@ -1,69 +1,69 @@ # Created by: Clement Laforet # $FreeBSD$ PORTNAME= prelude-manager PORTVERSION= 1.0.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= security MASTER_SITES= https://www.prelude-ids.org/attachments/download/243/ MAINTAINER= ports@FreeBSD.org COMMENT= Prelude Network Intrusion Detection System central logging point LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ libgnutls.so:${PORTSDIR}/security/gnutls \ libgcrypt.so:${PORTSDIR}/security/libgcrypt \ libgpg-error.so:${PORTSDIR}/security/libgpg-error \ libprelude.so:${PORTSDIR}/security/libprelude \ libpreludedb.so:${PORTSDIR}/security/libpreludedb \ libnettle.so:${PORTSDIR}/security/nettle \ libp11-kit.so:${PORTSDIR}/security/p11-kit USES= pkgconfig gettext iconv gmake USE_AUTOTOOLS= libltdl GNU_CONFIGURE= yes USE_LDCONFIG= yes USE_RC_SUBR= prelude-manager CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \ --localstatedir=/var CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib USERS?= prelude GROUPS?= prelude MAN1= prelude-manager.1 PLIST_SUB= PRELUDEUSER=${USERS} \ PRELUDEGROUP=${GROUPS} OPTIONS_DEFINE= XML OPTIONS_DEFAULT=XML XML_DESC= XML plugin NO_STAGE= yes .include .if !${PORT_OPTIONS:MXML} PLIST_SUB+= WITH_XML="@comment " CONFIGURE_ARGS+= --disable-xmltest --without-xml .else USE_GNOME= libxml2 PLIST_SUB+= WITH_XML="" .endif post-install: @if [ ! -f ${PREFIX}/etc/prelude-manager/prelude-manager.conf ]; then \ ${CP} -p ${PREFIX}/etc/prelude-manager/prelude-manager.conf-dist \ ${PREFIX}/etc/prelude-manager/prelude-manager.conf ; \ fi .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${EXAMPLESDIR}/smtp ${INSTALL_DATA} ${WRKSRC}/plugins/reports/smtp/template.example \ ${EXAMPLESDIR}/smtp/template.example .endif .include Index: head/security/prelude-pflogger/Makefile =================================================================== --- head/security/prelude-pflogger/Makefile (revision 365561) +++ head/security/prelude-pflogger/Makefile (revision 365562) @@ -1,20 +1,20 @@ # Created by: Anders Troback # $FreeBSD$ PORTNAME= prelude-pflogger DISTVERSION= 0.9.0-rc2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security MASTER_SITES= http://www.prelude-ids.com/download/releases/${PORTNAME}/ MAINTAINER= ports@FreeBSD.org COMMENT= Prelude-PFlogger Listens at OpenBSD PF LIB_DEPENDS+= libprelude.so:${PORTSDIR}/security/libprelude USES= gmake GNU_CONFIGURE= yes USE_RC_SUBR= prelude-pflogger NO_STAGE= yes .include Index: head/security/samhain/Makefile =================================================================== --- head/security/samhain/Makefile (revision 365561) +++ head/security/samhain/Makefile (revision 365562) @@ -1,176 +1,177 @@ # Created by: lx # $FreeBSD$ PORTNAME= samhain PORTVERSION= 3.0.13 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://la-samhna.de/archive/ \ http://redundancy.redundancy.org/mirror/ DISTNAME= samhain_signed-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= The Samhain Intrusion Detection System LICENSE= GPLv2 OPTIONS_DEFINE= KCHECK GPG MYSQL PGSQL XML_LOGS LIBWRAP PRELUDE OPTIONS_DEFAULT= XML_LOGS LIBWRAP KCHECK_DESC= Enable rogue KLD detection GPG_DESC= Enable GnuPG support MYSQL_DESC= Enable MySQL logging PGSQL_DESC= Enable PostgreSQL logging XML_LOGS_DESC= Enable XML-formatted logs LIBWRAP_DESC= Enable TCP wrapper support PRELUDE_DESC= Enable Prelude Framework support SUB_FILES+= pkg-install WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} CONFLICTS= samhain-client-2* NO_STAGE= yes .include .if ${ARCH} == "amd64" CFLAGS+= -fPIC .endif .if ${OSVERSION} > 800000 && ${ARCH} == "amd64" MANUAL_PACKAGE_BUILD= fails to link on pointyhat .endif .if ${OSVERSION} > 900007 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-config-h-in .endif .if ${PORT_OPTIONS:MGPG} BUILD_DEPENDS+= gpg:${PORTSDIR}/security/gnupg .endif GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-login-watch --localstatedir=/var \ --enable-suidcheck .if ${PORT_OPTIONS:MXML_LOGS} CONFIGURE_ARGS+= --enable-xml-log .endif .if defined(WITH_RUNAS_USER) CONFIGURE_ARGS+= --enable-identity=${WITH_RUNAS_USER} .else CONFIGURE_ARGS+= --enable-identity=yule .endif .if ${PORT_OPTIONS:MKCHECK} CONFIGURE_ARGS+= --with-kcheck .endif .if ${PORT_OPTIONS:MGPG} CONFIGURE_ARGS+= --with-gpg=${PREFIX}/bin/gpg .endif .if ${PORT_OPTIONS:MMYSQL} CONFIGURE_ARGS+= --with-database=mysql \ --with-cflags=-I${LOCALBASE}/include/mysql \ --with-libs=-L${LOCALBASE}/lib/mysql .endif .if ${PORT_OPTIONS:MPGSQL} CONFIGURE_ARGS+= --with-database=postgresql .endif .if ${PORT_OPTIONS:MLIBWRAP} CONFIGURE_ARGS+= --with-libwrap .endif .if ${PORT_OPTIONS:MCLIENT} CONFIGURE_ARGS+= --enable-network=client \ --with-data-file=REQ_FROM_SERVER/var/lib/samhain/data.samhain \ --with-config-file=REQ_FROM_SERVER PLIST_SUB+= SAMHAIN="" SETPWD="" YULE="@comment " EXTRA_PATCHES+= ${FILESDIR}/fixsamhainrc.patch MAN5+= samhainrc.5 MAN8+= samhain.8 .elif ${PORT_OPTIONS:MSERVER} CONFIGURE_ARGS+= --enable-network=server SUB_LIST+= WITH_YULE="yes" PLIST_SUB+= YULE="" SAMHAIN="@comment " SETPWD="@comment " EXTRA_PATCHES+= ${FILESDIR}/fixyulerc.patch MAN5+= yulerc.5 MAN8+= yule.8 .else SUB_LIST+= WITH_YULE="" PLIST_SUB+= SAMHAIN="" YULE="@comment " SETPWD="@comment " EXTRA_PATCHES+= ${FILESDIR}/fixsamhainrc.patch MAN5+= samhainrc.5 MAN8+= samhain.8 .endif .if ${PORT_OPTIONS:MLOG_SERVER} CONFIGURE_ARGS+= --with-logserver=true .endif .if ${PORT_OPTIONS:MALT_LOG_SERVER} CONFIGURE_ARGS+= --with-altlogserver=true .endif .if ${PORT_OPTIONS:MPRELUDE} LIB_DEPENDS+= libprelude.so:${PORTSDIR}/security/libprelude CONFIGURE_ARGS+= --with-prelude .endif pre-everything:: .if !defined(WITH_CLIENT) && !defined(WITH_SERVER) @${ECHO_MSG} @${ECHO_MSG} "Building Samhain in standalone mode." @${ECHO_MSG} "If you wish to enable networked mode, please hit CTRL-C" @${ECHO_MSG} "now, and build samhain from the samhain-client and" @${ECHO_MSG} "samhain-server ports." @${ECHO_MSG} .endif .if defined(WITH_CLIENT) && defined(WITH_SERVER) IGNORE= can't build client and server at once .endif .if ${PORT_OPTIONS:MKCHECK} @${ECHO_MSG} @${ECHO_MSG} "Building with kernel checking requires reading /dev/kmem" @${ECHO_MSG} "and /dev/mem. If you're not building as root, please hit" @${ECHO_MSG} "Control-C and restart the build as root." @${ECHO_MSG} .endif .if ${PORT_OPTIONS:MMYSQL} && ! ${PORT_OPTIONS:MXML_LOGS} IGNORE= XML logging is required to log to MySQL .endif .if ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MXML_LOGS} IGNORE= XML logging is required to log to Postgres .endif post-extract: @${TAR} -C ${WRKDIR} -xzf ${WRKSRC}.tar.gz @${RM} ${WRKSRC}.tar.gz ${WRKSRC}.tar.gz.asc pre-install: @PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: .if !defined(WITH_SERVER) @${CP} ${WRKSRC}/init/samhain.startFreeBSD ${PREFIX}/etc/rc.d/samhain.sh @${CP} ${WRKSRC}/samhainrc ${PREFIX}/etc/samhainrc.sample @${CHGRP} wheel ${PREFIX}/etc/samhainrc.sample .else @${CP} ${WRKSRC}/init/samhain.startFreeBSD ${PREFIX}/etc/rc.d/yule.sh @${CP} ${WRKSRC}/yulerc ${PREFIX}/etc/yulerc.sample .endif .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/MANUAL-2_3.pdf ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/HOWTO-client+server.html ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/HOWTO-client+server-troubleshooting.html ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/HOWTO-samhain+GnuPG.html ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/HOWTO-write-modules.html ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/FAQ.html ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/README.UPGRADE ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/README ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/BUGS ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/sh_mounts.txt ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/sh_userfiles.txt ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} .include Index: head/security/suricata/Makefile =================================================================== --- head/security/suricata/Makefile (revision 365561) +++ head/security/suricata/Makefile (revision 365562) @@ -1,108 +1,108 @@ # Created by: Patrick Tracanelli # $FreeBSD$ PORTNAME= suricata PORTVERSION= 1.4.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= http://www.openinfosecfoundation.org/download/ \ http://mirrors.rit.edu/zi/ MAINTAINER= koobs@FreeBSD.org COMMENT= Open Source next generation IDS/IPS engine by OISF LICENSE= GPLv2 LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \ libhtp.so:${PORTSDIR}/www/libhtp-suricata \ libnet.so:${PORTSDIR}/net/libnet \ libyaml.so:${PORTSDIR}/textproc/libyaml OPTIONS_DEFINE= IPFW PRELUDE PORTS_PCAP TESTS OPTIONS_DEFAULT=IPFW IPFW_DESC= Enable IPFW and IP Divert support for inline IDP PRELUDE_DESC= Enable Prelude support for NIDS alerts PORTS_PCAP_DESC=Use libpcap from ports TESTS_DESC= Enable unit tests in suricata binary USE_AUTOTOOLS= autoconf libtool USE_LDCONFIG= yes USE_RC_SUBR= ${PORTNAME} USES= gmake pkgconfig GNU_CONFIGURE= yes .include SUB_FILES= pkg-message CONFIGURE_ARGS+=--enable-non-bundled-htp --enable-gccprotect \ --with-libpcre-includes=${LOCALBASE}/include \ --with-libpcre-libraries=${LOCALBASE}/lib \ --with-libyaml-includes=${LOCALBASE}/include \ --with-libyaml-libraries=${LOCALBASE}/lib \ --with-libnet-includes=${LOCALBASE}/include/libnet11 \ --with-libnet-libraries=${LOCALBASE}/lib/libnet11 \ --with-libhtp-includes=${LOCALBASE}/include/ \ --with-libhtp-libraries=${LOCALBASE}/lib \ --localstatedir=/var/ CONFIGURE_ENV+= ac_cv_path_HAVE_PYTHON_CONFIG=no LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config CONFIG_DIR?= ${ETCDIR} CONFIG_FILES= suricata.yaml classification.config reference.config RULES_DIR= ${CONFIG_DIR}/rules LOGS_DIR?= /var/log/${PORTNAME} .include .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" BROKEN= Does not compile on ia64, powerpc, or sparc64 .endif .if ${PORT_OPTIONS:MPRELUDE} LIB_DEPENDS+= libprelude.so:${PORTSDIR}/security/libprelude CONFIGURE_ARGS+= --enable-prelude \ --with-libprelude-prefix=${LOCALBASE} PLIST_SUB+= PRELUDE="" .endif .if ${PORT_OPTIONS:MIPFW} CONFIGURE_ARGS+= --enable-ipfw .endif .if ${PORT_OPTIONS:MPORTS_PCAP} LIB_DEPENDS+= libpcap.so:${PORTSDIR}/net/libpcap CONFIGURE_ARGS+= --with-libpcap-includes=${LOCALBASE}/include \ --with-libpcap-libraries=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --with-libpcap-includes=/usr/include \ --with-libpcap-libraries=/usr/lib .endif .if ${PORT_OPTIONS:MTESTS} CONFIGURE_ARGS+= --enable-unittests .else CONFIGURE_ARGS+= --disable-unittests .endif pre-install: @${REINPLACE_CMD} -e 's|/etc/suricata|${CONFIG_DIR}|g' ${WRKSRC}/suricata.yaml post-install: ${MKDIR} ${STAGEDIR}${CONFIG_DIR} ${MKDIR} ${STAGEDIR}${RULES_DIR} .for f in ${CONFIG_FILES} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${CONFIG_DIR}/${f}-sample .endfor TMPDIR?= /tmp TESTDIR= ${TMPDIR}/${PORTNAME} regression-test: build ${RM} -rf ${TESTDIR} ${MKDIR} ${TESTDIR} cd ${WRKSRC}/src && ./suricata -u -l ${TESTDIR} ${RM} -rf ${TESTDIR} .include Index: head/www/py-prewikka/Makefile =================================================================== --- head/www/py-prewikka/Makefile (revision 365561) +++ head/www/py-prewikka/Makefile (revision 365562) @@ -1,40 +1,41 @@ # Created by: Robin Gruyters # $FreeBSD$ PORTNAME= prewikka PORTVERSION= 1.0.1p1 +PORTREVISION= 1 CATEGORIES= www security python MASTER_SITES= https://www.prelude-ids.org/attachments/download/286/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Frontend for the Prelude IDS BUILD_DEPENDS= cheetah-compile:${PORTSDIR}/devel/py-cheetah LIB_DEPENDS= libprelude.so:${PORTSDIR}/security/libprelude \ libpreludedb.so:${PORTSDIR}/security/libpreludedb USE_PYTHON= 2 USE_PYDISTUTILS= yes OPTIONS_DEFINE= NLS .include .if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else PLIST_SUB+= NLS="@comment " .endif post-patch: ${MV} ${WRKSRC}/conf/prewikka.conf ${WRKSRC}/conf/prewikka.conf-dist ${REINPLACE_CMD} 's,conf/prewikka.conf,conf/prewikka.conf-dist,' \ ${WRKSRC}/setup.py .if !${PORT_OPTIONS:MNLS} ${REINPLACE_CMD} 's,\(.*self.data_files.extend(self._compile_po_files())\),#\1,' \ ${WRKSRC}/setup.py .endif .include