Date: Sun, 8 Sep 2002 14:20:03 -0700 (PDT) From: Clement Laforet <sheepkiller@cultdeadsheep.org> To: freebsd-ports@FreeBSD.org Subject: Re: ports/41321: New port : security/prelude-manager (part of Prelude NIDS ports) Message-ID: <200209082120.g88LK3L6017294@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/41321; it has been noted by GNATS. From: Clement Laforet <sheepkiller@cultdeadsheep.org> To: Clement Laforet <sheepkiller@cultdeadsheep.org> Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: ports/41321: New port : security/prelude-manager (part of Prelude NIDS ports) Date: Sun, 8 Sep 2002 23:13:07 +0200 Please apply this patch :) * Update from 0.8.2 to 0.8.4 * Clean Makefile & pkg-plist * Enable OpenSSL by default diff -Nru prelude-manager.old/Makefile prelude-manager/Makefile --- prelude-manager.old/Makefile Sun Sep 8 22:46:29 2002 +++ prelude-manager/Makefile Sun Sep 8 22:48:03 2002 @@ -1,39 +1,48 @@ -# New ports collection makefile for: prelude -# Date created: Sun Aug 4 19:31:17 CEST 2002 -# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org> - -PORTNAME= prelude-manager -PORTVERSION= 0.8.2 -CATEGORIES= security +# New ports collection makefile for: prelude-manager +# Date created: Sun Aug 4 19:31:17 CEST 2002 +# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org> + +PORTNAME= prelude-manager +PORTVERSION= 0.8.4 +CATEGORIES= security MASTER_SITES= http://www.prelude-ids.org/download/releases/ -MAINTAINER= sheepkiller@cultdeadsheep.org +MAINTAINER= sheepkiller@cultdeadsheep.org -GNU_MAKE= yes -HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --prefix=${PREFIX} --with-html-dir=${PREFIX}/share/doc +GNU_MAKE= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS+= --prefix=${PREFIX} --with-html-dir=${PREFIX}/share/doc -LIB_DEPENDS+= prelude.0:${PORTSDIR}/security/libprelude +LIB_DEPENDS+= prelude.0:${PORTSDIR}/security/libprelude +RUN_DEPEND= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash2 -.if defined(WITH_SSL) -USE_OPENSSL= YES -CONFIGURE_ARGS+= --enable-openssl +.if defined(WITHOUT_SSL) +CONFIGURE_ARGS+= --disable-openssl .else -CONFIGURE_ARGS+= --disable-openssl +USE_OPENSSL= YES +CONFIGURE_ARGS+= --enable-openssl .endif .if defined(WITH_GPROF) -CONFIGURE_ARGS+= --enable-profiling +CONFIGURE_ARGS+= --enable-profiling .endif .if defined(WITH_MYSQL) -LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client -CONFIGURE_ARGS+= --enable-mysql +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +CONFIGURE_ARGS+= --enable-mysql +PLIST_SUB+= MYSQL="" +.else +CONFIGURE_ARGS+= --disable-mysql +PLIST_SUB+= MYSQL="@comment " .endif .if defined(WITH_POSTGRES) -LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7 +LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7 CONFIGURE_ARGS+= --enable-pgsql +PLIST_SUB+= PGSQL="" +.else +CONFIGURE_ARGS+= --disable-pgsql +PLIST_SUB+= PGSQL="@comment " .endif .if defined(WITH_MAINTAINER) @@ -42,8 +51,8 @@ # Broken, for the moment .if defined(WITH_GTK_DOC) -BUILD_DEPENDS= gtkdoc-scan:${PORTSDIR}/textproc/gtk-doc -CONFIGURE_ARGS+= --enable-gtk-doc +BUILD_DEPENDS= gtkdoc-scan:${PORTSDIR}/textproc/gtk-doc +CONFIGURE_ARGS+= --enable-gtk-doc .endif pre-everything: @@ -54,23 +63,23 @@ @${FALSE} .endif -pre-configure: - @${ECHO} "" - @${ECHO} "*---------------------------------------------------------------------------*" - @${ECHO} "Options:" - @${ECHO} "" - @${ECHO} " WITH_SSL=yes Add SSL support to libprelude ${PORTVERSION}" - @${ECHO} " WITH_GPROF=yes Enable Gprof profiling - with thread workaround" - @${ECHO} " WITH_MYSQL=yes Enable MySQL support" - @${ECHO} " WITH_POSTGRES=yes Enable PostreSQL support" - @${ECHO} " WITH_MAINTENER=yes enable make rules and dependencies not useful to" - @${ECHO} " (and sometimes confusing) the casual installer" - @${ECHO} " WITH_GTK_DOC=yes Use gtk-doc to build documentation (BROKEN for" - @${ECHO} " the moment)" - @${ECHO} "*---------------------------------------------------------------------------*" - @${ECHO} "" +post-patch: + @${ECHO} "" + @${ECHO} "*---------------------------------------------------------------------------*" + @${ECHO} "Options:" + @${ECHO} "" + @${ECHO} " WITHOUT_SSL=yes Disable SSL support" + @${ECHO} " WITH_GPROF=yes Enable Gprof profiling - with thread workaround" + @${ECHO} " WITH_MYSQL=yes Enable MySQL support" + @${ECHO} " WITH_POSTGRES=yes Enable PostreSQL support" + @${ECHO} " WITH_MAINTENER=yes enable make rules and dependencies not useful to" + @${ECHO} " (and sometimes confusing) the casual installer" + @${ECHO} " WITH_GTK_DOC=yes Use gtk-doc to build documentation (BROKEN for" + @${ECHO} " the moment)" + @${ECHO} "*---------------------------------------------------------------------------*" + @${ECHO} "" post-install: - @${CAT} ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff -Nru prelude-manager.old/distinfo prelude-manager/distinfo --- prelude-manager.old/distinfo Sun Sep 8 22:46:29 2002 +++ prelude-manager/distinfo Sun Sep 8 22:48:03 2002 @@ -1 +1 @@ -MD5 (prelude-manager-0.8.2.tar.gz) = d520aec5a22b630d9215caf58a0ccb57 +MD5 (prelude-manager-0.8.4.tar.gz) = 3021934c7782b155cf240c75519aaf46 diff -Nru prelude-manager.old/files/patch-Makefile.in prelude-manager/files/patch-Makefile.in --- prelude-manager.old/files/patch-Makefile.in Thu Jan 1 01:00:00 1970 +++ prelude-manager/files/patch-Makefile.in Sun Sep 8 22:48:03 2002 @@ -0,0 +1,23 @@ +--- Makefile.in.old Sat Aug 10 13:07:52 2002 ++++ Makefile.in Sat Aug 10 13:07:57 2002 +@@ -193,15 +193,15 @@ + cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status + install-binSCRIPTS: $(bin_SCRIPTS) + @$(NORMAL_INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(bindir) ++ $(mkinstalldirs) $(pkgdatadir) + @list='$(bin_SCRIPTS)'; for p in $$list; do \ + f="`echo $$p|sed '$(transform)'`"; \ + if test -f $$p; then \ +- echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f"; \ +- $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f; \ ++ echo " $(INSTALL_SCRIPT) $$p $(pkgdatadir)/$$f"; \ ++ $(INSTALL_SCRIPT) $$p $(pkgdatadir)/$$f; \ + elif test -f $(srcdir)/$$p; then \ +- echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f"; \ +- $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f; \ ++ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(pkgdatadir)/$$f"; \ ++ $(INSTALL_SCRIPT) $(srcdir)/$$p $(pkgdatadir)/$$f; \ + else :; fi; \ + done + diff -Nru prelude-manager.old/pkg-message prelude-manager/pkg-message --- prelude-manager.old/pkg-message Sun Sep 8 22:46:29 2002 +++ prelude-manager/pkg-message Sun Sep 8 22:48:03 2002 @@ -1,8 +1,12 @@ -*********************************************************** -Prelude NIDS ports haven't for the moment configuration +************************************************************ +Prelude IDS ports haven't for the moment configuration scripts. Please read the documentation you can find here : http://www.prelude-ids.org/index.php?page=23 -*********************************************************** + +To create database to use prelude, run : +${PREFIX}/share/prelude-manager/prelude-manager-db-create.sh +You need bash to use it. +************************************************************ diff -Nru prelude-manager.old/pkg-plist prelude-manager/pkg-plist --- prelude-manager.old/pkg-plist Sun Sep 8 22:46:29 2002 +++ prelude-manager/pkg-plist Sun Sep 8 22:48:03 2002 @@ -1,6 +1,5 @@ bin/manager-adduser bin/prelude-manager -bin/prelude-manager-db-create.sh etc/prelude-manager/prelude-manager.conf include/prelude-manager/plugin-db.h include/prelude-manager/db.h @@ -11,16 +10,18 @@ include/prelude-manager/report.h include/prelude-manager/idmef-util.h include/prelude-manager/decode.h -lib/prelude-manager/db/mysql.so -lib/prelude-manager/db/mysql.la -lib/prelude-manager/db/pgsql.so -lib/prelude-manager/db/pgsql.la +%%MYSQL%%lib/prelude-manager/db/mysql.so +%%MYSQL%%lib/prelude-manager/db/mysql.la +%%PGSQL%%lib/prelude-manager/db/pgsql.so +%%PGSQL%%lib/prelude-manager/db/pgsql.la lib/prelude-manager/decodes/prelude-nids.so lib/prelude-manager/decodes/prelude-nids.la lib/prelude-manager/reports/debug.so lib/prelude-manager/reports/debug.la lib/prelude-manager/reports/textmod.so lib/prelude-manager/reports/textmod.la +lib/prelude-manager/reports/xmlmod.la +lib/prelude-manager/reports/xmlmod.so share/doc/prelude-manager/c4.html share/doc/prelude-manager/index.html share/doc/prelude-manager/prelude-manager-admin-server.html @@ -42,16 +43,19 @@ share/doc/prelude-manager/prelude-manager-server-generic.html share/doc/prelude-manager/prelude-manager-server-logic.html share/doc/prelude-manager/prelude-manager-ssl.html -share/prelude-manager/mysql/mysql.sql -share/prelude-manager/pgsql/postgres.sql +%%MYSQL%%share/prelude-manager/mysql/mysql.sql +%%PGSQL%%share/prelude-manager/pgsql/postgres.sql +share/prelude-manager/prelude-manager-db-create.sh +share/prelude-manager/xmlmod/idmef-message.dtd +@exec mkdir -p %D/var/spool/prelude-manager @dirrm etc/prelude-manager @dirrm include/prelude-manager -@dirrm lib/prelude-manager/db @dirrm lib/prelude-manager/decodes @dirrm lib/prelude-manager/reports @dirrm lib/prelude-manager @dirrm share/doc/prelude-manager -@dirrm share/prelude-manager/mysql -@dirrm share/prelude-manager/pgsql +%%MYSQL%%@dirrm share/prelude-manager/mysql +%%PGSQL%%@dirrm share/prelude-manager/pgsql +@dirrm share/prelude-manager/xmlmod @dirrm share/prelude-manager @dirrm var/spool/prelude-manager To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209082120.g88LK3L6017294>