pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/prelude-pflogger Prelude sensor for OpenBSD's...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c0cef3b1f868
branches: trunk
changeset: 532883:c0cef3b1f868
user: shannonjr <shannonjr%pkgsrc.org@localhost>
date: Mon Sep 03 13:50:49 2007 +0000
description:
Prelude sensor for OpenBSD's PF (Packet Filter)
that reports to Prelude Manager.
diffstat:
security/prelude-pflogger/DESCR | 2 +
security/prelude-pflogger/MESSAGE | 7 +++
security/prelude-pflogger/Makefile | 56 +++++++++++++++++++++++++++++
security/prelude-pflogger/PLIST | 4 ++
security/prelude-pflogger/distinfo | 7 +++
security/prelude-pflogger/files/pflogger.sh | 28 ++++++++++++++
security/prelude-pflogger/patches/patch-aa | 28 ++++++++++++++
security/prelude-pflogger/patches/patch-ab | 13 ++++++
8 files changed, 145 insertions(+), 0 deletions(-)
diffs (177 lines):
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/DESCR Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,2 @@
+Prelude sensor for OpenBSD's PF (Packet Filter)
+that reports to Prelude Manager.
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/MESSAGE Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2007/09/03 13:50:49 shannonjr Exp $
+
+You need to ensure that the permissions on /dev/bpf0 are set to allow
+read access by ${PRELUDE_USER}:${PRELUDE_GROUP}.
+
+===========================================================================
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/Makefile Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/09/03 13:50:49 shannonjr Exp $
+#
+
+DISTNAME= prelude-pflogger-0.9.0-rc2
+PKGNAME= prelude-pflogger-0.9.0
+CATEGORIES= security
+MASTER_SITES= http://prelude-ids.org/download/releases/
+
+MAINTAINER= shannonjr%NetBSD.org@localhost
+HOMEPAGE= http://prelude-ids.org/download/releases/
+COMMENT= Prelude sensor for Packet Filter (pf)
+
+.include "../../mk/bsd.prefs.mk"
+
+PRELUDE_USER?= _prelude
+PRELUDE_GROUP?= _prelude
+PRELUDE_PFLOGGER_PID_DIR= ${VARBASE}/run/prelude-pflogger
+
+PKG_GROUPS_VARS+= PRELUDE_GROUP
+PKG_USERS_VARS+= PRELUDE_USER
+
+EGDIR= ${PREFIX}/share/examples/prelude-pflogger
+REQD_DIRS= ${EGDIR}
+
+USE_PKGLOCALEDIR= yes
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake
+BUILD_DEFS+= VARBASE
+PKG_SYSCONFSUBDIR= prelude-pflogger
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
+CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
+CONF_FILES= ${EGDIR}/prelude-pflogger.conf ${PKG_SYSCONFDIR}/prelude-pflogger.conf
+USE_TOOLS+= autoconf automake aclocal autoheader
+
+FILES_SUBST+= PRELUDE_PFLOGGER_PID_DIR=${PRELUDE_PFLOGGER_PID_DIR:Q}
+FILES_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q}
+FILES_SUBST+= PRELUDE_GROUP=${PRELUDE_GROUP:Q}
+
+MESSAGE_SUBST+= PRELUDE_USER=${PRELUDE_USER:Q}
+MESSAGE_SUBST+= PRELUDE_GROUP=${PRELUDE_GROUP:Q}
+
+SUBST_CLASSES+= make
+SUBST_STAGE.make= post-patch
+SUBST_FILES.make= Makefile.am
+SUBST_SED.make= -e 's,@EGDIR@,${EGDIR},g'
+
+RCD_SCRIPTS= pflogger
+
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ aclocal; autoheader; automake -a --foreign -i; autoconf
+
+.include "../../security/libprelude/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/PLIST Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/09/03 13:50:49 shannonjr Exp $
+bin/prelude-pflogger
+share/examples/rc.d/pflogger
+share/examples/prelude-pflogger/prelude-pflogger.conf
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/distinfo Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/09/03 13:50:49 shannonjr Exp $
+
+SHA1 (prelude-pflogger-0.9.0-rc2.tar.gz) = ae354809dae5f04392a1c93a88be4cf9993c3b43
+RMD160 (prelude-pflogger-0.9.0-rc2.tar.gz) = 7c5808b0ca515c8080c64b52aa0aae166831e4d4
+Size (prelude-pflogger-0.9.0-rc2.tar.gz) = 303763 bytes
+SHA1 (patch-aa) = ad1e951a74b045a22e577baf2cd19b47478d88a1
+SHA1 (patch-ab) = 75a78b3d50067b07448aff9fde565f8bd5ab1b54
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/files/pflogger.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/files/pflogger.sh Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# $NetBSD: pflogger.sh,v 1.1.1.1 2007/09/03 13:50:49 shannonjr Exp $
+#
+
+# PROVIDE: pflogger
+# REQUIRE: pf NETWORKING
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="pflogger"
+pflogger_user=_prelude
+pflogger_=_prelude
+procname="@PREFIX@/bin/prelude-pflogger"
+rcvar=${name}
+required_files="@PKG_SYSCONFDIR@/prelude-pflogger.conf"
+start_precmd="pflogger_precommand"
+pidfile="@PRELUDE_PFLOGGER_PID_DIR@/prelude-pflogger.pid"
+start_cmd="${procname} --pidfile ${pidfile}"
+
+pflogger_precommand()
+{
+ /bin/mkdir -p @PRELUDE_PFLOGGER_PID_DIR@
+ /usr/sbin/chown @PRELUDE_USER@:@PRELUDE_GROUP@ @PRELUDE_PFLOGGER_PID_DIR@
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/patches/patch-aa Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/09/03 13:50:49 shannonjr Exp $
+
+--- Makefile.am.orig 2005-09-18 08:30:01.000000000 -0600
++++ Makefile.am
+@@ -5,18 +5,11 @@ EXTRA_DIST = prelude-pflogger.conf confi
+ ChangeLog
+
+ install-data-local:
+- @if test -f $(DESTDIR)$(configdir)/prelude-pflogger.conf; then \
+- echo "********************************************************************************"; \
+- echo; \
+- echo "$(DESTDIR)$(configdir)/prelude-pflogger.conf already exist..."; \
+- echo "Installing default configuration in $(DESTDIR)$(configdir)/prelude-pflogger.conf-dist"; \
+- echo; \
+- echo "********************************************************************************"; \
+- $(INSTALL) -m 600 $(top_srcdir)/prelude-pflogger.conf $(DESTDIR)$(configdir)/prelude-pflogger.conf-dist; \
+- else \
+- $(INSTALL) -d -m 700 $(DESTDIR)$(configdir); \
+- $(INSTALL) -m 600 $(top_srcdir)/prelude-pflogger.conf $(DESTDIR)$(configdir)/; \
++ $(INSTALL) -m 644 $(top_srcdir)/prelude-pflogger.conf @EGDIR@/; \
++ @if ! test -f $(configdir)/prelude-pflogger.conf; then \
++ $(INSTALL) -d -m 755 $(configdir); \
++ $(INSTALL) -m 644 $(top_srcdir)/prelude-pflogger.conf $(configdir)/; \
+ fi
+
+ uninstall-local:
+- rm -f $(DESTDIR)$(configdir)/prelude-pflogger.conf;
++ rm -f @EGDIR@/prelude-pflogger.conf;
diff -r 5f5ddc4ce231 -r c0cef3b1f868 security/prelude-pflogger/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/prelude-pflogger/patches/patch-ab Mon Sep 03 13:50:49 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/09/03 13:50:49 shannonjr Exp $
+
+--- configure.in.orig 2007-09-03 04:45:30.000000000 -0600
++++ configure.in
+@@ -57,7 +57,7 @@ AC_TYPE_SIGNAL
+ AC_FUNC_VPRINTF
+ AC_CHECK_FUNCS(gettimeofday select socket strdup strerror strstr)
+
+-configdir=$sysconfdir/prelude-pflogger
++configdir=$sysconfdir
+ prelude_conf=$configdir/prelude-pflogger.conf
+
+ AC_DEFINE_UNQUOTED(PRELUDE_PFLOGGER_CONF, "$prelude_conf", Path to the Prelude PFlogger configuration file)
Home |
Main Index |
Thread Index |
Old Index