summaryrefslogtreecommitdiff
path: root/security/prelude-manager
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-06-28 17:05:50 +0000
committerjoerg <joerg@pkgsrc.org>2006-06-28 17:05:50 +0000
commit346cf857e5441a902afae26cf9ff055dfdb073b0 (patch)
tree4a90e0ff485555b855310accdfba822f05ca064d /security/prelude-manager
parent0d3615c33f4fa18506c697d38b8b566016094eaf (diff)
downloadpkgsrc-346cf857e5441a902afae26cf9ff055dfdb073b0.tar.gz
Use config file framework. Keep the permission of the original code
for the installed version of the configuration file, but not the example. Bump revision.
Diffstat (limited to 'security/prelude-manager')
-rw-r--r--security/prelude-manager/Makefile9
-rw-r--r--security/prelude-manager/PLIST3
-rw-r--r--security/prelude-manager/distinfo3
-rw-r--r--security/prelude-manager/patches/patch-ab28
4 files changed, 39 insertions, 4 deletions
diff --git a/security/prelude-manager/Makefile b/security/prelude-manager/Makefile
index ce9b5e6632b..5fff80f40ac 100644
--- a/security/prelude-manager/Makefile
+++ b/security/prelude-manager/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2006/06/16 09:45:35 shannonjr Exp $
+# $NetBSD: Makefile,v 1.10 2006/06/28 17:05:50 joerg Exp $
#
DISTNAME= prelude-manager-0.9.5
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.prelude-ids.org/download/releases/
@@ -40,6 +41,11 @@ SUBST_FILES.code= run-prelude-manager.c
SUBST_SED.code= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.code+= -e 's,@PRELUDE_USER@,${PRELUDE_USER},g'
+PKG_SYSCONFSUBDIR= prelude-manager
+EGDIR= share/examples/prelude-manager/
+CONF_FILES_PERMS+= ${EGDIR}/prelude-manager.conf ${PKG_SYSCONFDIR}/prelude-manager.conf \
+ ${ROOT_USER} ${ROOT_GROUP} 0600
+
pre-patch:
${CP} ${FILESDIR}/run-prelude-manager.c ${WRKSRC}
@@ -48,7 +54,6 @@ post-build:
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-manager ${PREFIX}/sbin/run-prelude-manager
- ${CHMOD} 755 ${PKG_SYSCONFDIR}/prelude-manager
${CHOWN} -R ${PRELUDE_USER}:${PRELUDE_GROUP} ${PRELUDE_HOME}
.include "../../security/libprelude/buildlink3.mk"
diff --git a/security/prelude-manager/PLIST b/security/prelude-manager/PLIST
index 334ffcdfa70..edfb4945430 100644
--- a/security/prelude-manager/PLIST
+++ b/security/prelude-manager/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2006/06/16 09:45:35 shannonjr Exp $
+@comment $NetBSD: PLIST,v 1.5 2006/06/28 17:05:50 joerg Exp $
bin/prelude-manager
include/prelude-manager/prelude-manager.h
lib/prelude-manager/decodes/normalize.la
@@ -8,6 +8,7 @@ lib/prelude-manager/reports/debug.la
lib/prelude-manager/reports/relaying.la
lib/prelude-manager/reports/textmod.la
sbin/run-prelude-manager
+share/examples/prelude-manager/prelude-manager.conf
share/examples/rc.d/preludemanager
@dirrm lib/prelude-manager/reports
@dirrm lib/prelude-manager/filters
diff --git a/security/prelude-manager/distinfo b/security/prelude-manager/distinfo
index 49165701f4e..6f7adf9a455 100644
--- a/security/prelude-manager/distinfo
+++ b/security/prelude-manager/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2006/06/16 09:45:35 shannonjr Exp $
+$NetBSD: distinfo,v 1.7 2006/06/28 17:05:50 joerg Exp $
SHA1 (prelude-manager-0.9.5.tar.gz) = 0874a055c11f55c16f434dfe45ee17c366e76027
RMD160 (prelude-manager-0.9.5.tar.gz) = 0a033835b614c184af261251206012cc43604009
Size (prelude-manager-0.9.5.tar.gz) = 575260 bytes
SHA1 (patch-aa) = 250034ddeba5188895a6d873ce108b1bf33dfcc5
+SHA1 (patch-ab) = 583290685c9e1ab648ab27ccbf8242a538ea5989
diff --git a/security/prelude-manager/patches/patch-ab b/security/prelude-manager/patches/patch-ab
new file mode 100644
index 00000000000..273b774851f
--- /dev/null
+++ b/security/prelude-manager/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.1 2006/06/28 17:05:50 joerg Exp $
+
+--- Makefile.in.orig 2006-06-14 08:47:37.000000000 +0000
++++ Makefile.in
+@@ -704,21 +704,11 @@ uninstall-info: uninstall-info-recursive
+
+
+ install-data-local:
+- $(INSTALL) -d -m 700 $(DESTDIR)$(configdir);
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(prefix)/share/examples/prelude-manager;
+ $(INSTALL) -d -m 700 $(DESTDIR)$(manager_run_dir);
+ $(INSTALL) -d -m 700 $(DESTDIR)$(manager_scheduler_dir);
+ $(INSTALL) -d -m 700 $(DESTDIR)$(manager_failover_dir);
+- @if test -f $(DESTDIR)$(configdir)/prelude-manager.conf; then \
+- $(INSTALL) -m 600 $(top_srcdir)/prelude-manager.conf $(DESTDIR)$(configdir)/prelude-manager.conf-dist; \
+- echo "********************************************************************************"; \
+- echo; \
+- echo "$(DESTDIR)$(configdir)/prelude-manager.conf already exist..."; \
+- echo "Installing default configuration in $(DESTDIR)$(configdir)/prelude-manager.conf-dist"; \
+- echo; \
+- echo "********************************************************************************"; \
+- else \
+- $(INSTALL) -m 600 $(top_srcdir)/prelude-manager.conf $(DESTDIR)$(configdir)/; \
+- fi
++ $(INSTALL) -m 600 $(top_srcdir)/prelude-manager.conf $(DESTDIR)$(prefix)/share/examples/prelude-manager
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT: