pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/prelude-correlator Correct PLIST problems and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9ea7f95d123
branches:  trunk
changeset: 399785:a9ea7f95d123
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Fri Oct 02 10:15:10 2009 +0000

description:
Correct PLIST problems and conf file handling. Bump PKGREVISION.

diffstat:

 security/prelude-correlator/Makefile         |  16 ++++++++++---
 security/prelude-correlator/PLIST            |  31 ++++++++++++++++++++++-----
 security/prelude-correlator/distinfo         |   4 +-
 security/prelude-correlator/patches/patch-aa |  17 ++++++++-------
 4 files changed, 48 insertions(+), 20 deletions(-)

diffs (188 lines):

diff -r 3a0f926f8e5a -r a9ea7f95d123 security/prelude-correlator/Makefile
--- a/security/prelude-correlator/Makefile      Fri Oct 02 10:08:53 2009 +0000
+++ b/security/prelude-correlator/Makefile      Fri Oct 02 10:15:10 2009 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2009/08/24 12:30:09 hasso Exp $
+# $NetBSD: Makefile,v 1.4 2009/10/02 10:15:10 hasso Exp $
 #
 
 DISTNAME=      prelude-correlator-0.9.0-beta6
+PKGREVISION=   1
 PKGNAME=       prelude-correlator-${DISTNAME:S/-beta/beta/:C/.*-//}
 CATEGORIES=    security
 MASTER_SITES=  http://www.prelude-ids.com/download/releases/prelude-correlator/
@@ -20,6 +21,8 @@
 PRELUDE_GROUP?=                _prelude
 PRELUDE_HOME?=         ${VARBASE}/db/prelude-correlator
 INSTALLATION_DIRS=     sbin
+OWN_DIRS=              ${PKG_SYSCONFDIR}/prelude-correlator
+EGDIR=                 ${PREFIX}/share/examples
 
 PKG_GROUPS_VARS+=      PRELUDE_GROUP
 PKG_USERS_VARS+=       PRELUDE_USER
@@ -30,9 +33,9 @@
 PKG_GECOS.${PRELUDE_USER}=     Prelude IDS correlator
 PKG_HOME.${PRELUDE_USER}=      ${PRELUDE_HOME}
 
-FILES_SUBST+=   PRELUDE_CORRELATOR_PID_DIR=${PRELUDE_CORRELATOR_PID_DIR:Q}
-FILES_SUBST+=   PRELUDE_USER=${PRELUDE_USER:Q}
-FILES_SUBST+=   PRELUDE_GROUP=${PRELUDE_USER:Q}
+FILES_SUBST+=          PRELUDE_CORRELATOR_PID_DIR=${PRELUDE_CORRELATOR_PID_DIR:Q}
+FILES_SUBST+=          PRELUDE_USER=${PRELUDE_USER:Q}
+FILES_SUBST+=          PRELUDE_GROUP=${PRELUDE_USER:Q}
 
 SUBST_CLASSES+=                code
 SUBST_STAGE.code=      post-patch
@@ -42,11 +45,15 @@
 SUBST_SED.code+=       -e 's,@PRELUDE_USER@,${PRELUDE_USER},g'
 SUBST_SED.code+=        -e 's,@PRELUDE_HOME@,${PRELUDE_HOME},g'
 
+CONF_FILES=            ${EGDIR}/prelude-correlator.conf ${PKG_SYSCONFDIR}/prelude-correlator/prelude-correlator.conf
+
 REQD_DIRS+=            ${PRELUDE_HOME}
 REQD_DIRS_PERMS+=      ${PRELUDE_HOME} ${PRELUDE_USER} ${PRELUDE_GROUP} 0700
 
 REPLACE_PYTHON=                ${WRKSRC}/*.py
 
+EGG_NAME=              prelude_correlator-0.9.0_beta6
+
 pre-patch:
        ${CP} ${FILESDIR}/run-prelude-correlator.c ${WRKSRC}
 
@@ -55,6 +62,7 @@
 
 post-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/run-prelude-correlator ${DESTDIR}${PREFIX}/sbin/run-prelude-correlator
+       ${INSTALL_DATA} ${WRKSRC}/prelude-correlator.conf ${DESTDIR}${EGDIR}
 
 .include "../../security/libprelude-python/buildlink3.mk"
 .include "../../lang/python/egg.mk"
diff -r 3a0f926f8e5a -r a9ea7f95d123 security/prelude-correlator/PLIST
--- a/security/prelude-correlator/PLIST Fri Oct 02 10:08:53 2009 +0000
+++ b/security/prelude-correlator/PLIST Fri Oct 02 10:15:10 2009 +0000
@@ -1,46 +1,65 @@
-@comment $NetBSD: PLIST,v 1.3 2009/08/24 12:30:09 hasso Exp $
+@comment $NetBSD: PLIST,v 1.4 2009/10/02 10:15:10 hasso Exp $
 bin/prelude-correlator
 sbin/run-prelude-correlator
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/PreludeCorrelator/__init__.py
 ${PYSITELIB}/PreludeCorrelator/__init__.pyc
 ${PYSITELIB}/PreludeCorrelator/__init__.pyo
+${PYSITELIB}/PreludeCorrelator/config.py
 ${PYSITELIB}/PreludeCorrelator/config.pyc
 ${PYSITELIB}/PreludeCorrelator/config.pyo
+${PYSITELIB}/PreludeCorrelator/context.py
 ${PYSITELIB}/PreludeCorrelator/context.pyc
 ${PYSITELIB}/PreludeCorrelator/context.pyo
+${PYSITELIB}/PreludeCorrelator/idmef.py
 ${PYSITELIB}/PreludeCorrelator/idmef.pyc
 ${PYSITELIB}/PreludeCorrelator/idmef.pyo
+${PYSITELIB}/PreludeCorrelator/log.py
 ${PYSITELIB}/PreludeCorrelator/log.pyc
 ${PYSITELIB}/PreludeCorrelator/log.pyo
+${PYSITELIB}/PreludeCorrelator/main.py
 ${PYSITELIB}/PreludeCorrelator/main.pyc
 ${PYSITELIB}/PreludeCorrelator/main.pyo
+${PYSITELIB}/PreludeCorrelator/pluginmanager.py
 ${PYSITELIB}/PreludeCorrelator/pluginmanager.pyc
 ${PYSITELIB}/PreludeCorrelator/pluginmanager.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/__init__.py
 ${PYSITELIB}/PreludeCorrelator/plugins/__init__.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/__init__.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/bruteforce.py
 ${PYSITELIB}/PreludeCorrelator/plugins/bruteforce.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/bruteforce.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/businesshour.py
 ${PYSITELIB}/PreludeCorrelator/plugins/businesshour.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/businesshour.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/dshield.py
 ${PYSITELIB}/PreludeCorrelator/plugins/dshield.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/dshield.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/firewall.py
 ${PYSITELIB}/PreludeCorrelator/plugins/firewall.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/firewall.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/opensshauth.py
 ${PYSITELIB}/PreludeCorrelator/plugins/opensshauth.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/opensshauth.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/scan.py
 ${PYSITELIB}/PreludeCorrelator/plugins/scan.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/scan.pyo
+${PYSITELIB}/PreludeCorrelator/plugins/worm.py
 ${PYSITELIB}/PreludeCorrelator/plugins/worm.pyc
 ${PYSITELIB}/PreludeCorrelator/plugins/worm.pyo
+${PYSITELIB}/PreludeCorrelator/require.py
 ${PYSITELIB}/PreludeCorrelator/require.pyc
 ${PYSITELIB}/PreludeCorrelator/require.pyo
 ${PYSITELIB}/PreludeCorrelator/siteconfig.py
 ${PYSITELIB}/PreludeCorrelator/siteconfig.pyc
 ${PYSITELIB}/PreludeCorrelator/siteconfig.pyo
+${PYSITELIB}/PreludeCorrelator/utils.py
 ${PYSITELIB}/PreludeCorrelator/utils.pyc
 ${PYSITELIB}/PreludeCorrelator/utils.pyo
-${PYSITELIB}/prelude_correlator-0.9.0_beta6-py2.5.egg-info/PKG-INFO
-${PYSITELIB}/prelude_correlator-0.9.0_beta6-py2.5.egg-info/SOURCES.txt
-${PYSITELIB}/prelude_correlator-0.9.0_beta6-py2.5.egg-info/dependency_links.txt
-${PYSITELIB}/prelude_correlator-0.9.0_beta6-py2.5.egg-info/entry_points.txt
-${PYSITELIB}/prelude_correlator-0.9.0_beta6-py2.5.egg-info/top_level.txt
+share/examples/prelude-correlator.conf
 share/examples/rc.d/preludecorrelator
diff -r 3a0f926f8e5a -r a9ea7f95d123 security/prelude-correlator/distinfo
--- a/security/prelude-correlator/distinfo      Fri Oct 02 10:08:53 2009 +0000
+++ b/security/prelude-correlator/distinfo      Fri Oct 02 10:15:10 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2009/08/24 12:30:09 hasso Exp $
+$NetBSD: distinfo,v 1.3 2009/10/02 10:15:10 hasso Exp $
 
 SHA1 (prelude-correlator-0.9.0-beta6.tar.gz) = b75784b69e4a28dc71c836633826e98f1b28da55
 RMD160 (prelude-correlator-0.9.0-beta6.tar.gz) = e64a07fb347c41d9791b0c5cbf0219d7cac0e762
 Size (prelude-correlator-0.9.0-beta6.tar.gz) = 193664 bytes
-SHA1 (patch-aa) = cf7f348d4798005376e97a22d2cf9d29174d789d
+SHA1 (patch-aa) = 18f7f4e9fcf25b2ab86db3adf18928af239e3b30
diff -r 3a0f926f8e5a -r a9ea7f95d123 security/prelude-correlator/patches/patch-aa
--- a/security/prelude-correlator/patches/patch-aa      Fri Oct 02 10:08:53 2009 +0000
+++ b/security/prelude-correlator/patches/patch-aa      Fri Oct 02 10:15:10 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2009/08/24 12:30:09 hasso Exp $
+$NetBSD: patch-aa,v 1.3 2009/10/02 10:15:10 hasso Exp $
 
---- setup.py.orig      2009-07-21 22:44:16 +0200
-+++ setup.py   2009-07-21 22:49:52 +0200
-@@ -48,7 +48,8 @@
+--- setup.py.orig      2009-07-09 18:55:53 +0300
++++ setup.py   2009-09-30 09:58:19 +0300
+@@ -48,7 +48,8 @@ class my_install(install):
  
                  root = self.root or ""
                  for dir, files in data_files:
@@ -12,7 +12,7 @@
  
                          self.mkpath(dir)
                          for f in files:
-@@ -71,7 +72,7 @@
+@@ -71,7 +72,7 @@ class my_install(install):
          def init_siteconfig(self, prefix):
                  config = open("PreludeCorrelator/siteconfig.py", "w")
                  print >> config, "conf_dir = '%s'" % os.path.abspath(prefix + "/etc/prelude-correlator")
@@ -21,12 +21,13 @@
                  config.close()
  
  
-@@ -85,7 +86,7 @@
+@@ -84,8 +85,7 @@ if is_egg:
+         data_files = [ ("", ["prelude-correlator.conf"]) ]
  else:
          package_data = {}
-         data_files = [ ("etc/prelude-correlator", ["prelude-correlator.conf"]),
+-        data_files = [ ("etc/prelude-correlator", ["prelude-correlator.conf"]),
 -                       ("var/lib/prelude-correlator", ["PreludeCorrelator/plugins/dshield.dat"]) ]
-+                       ("@PRELUDE_HOME@", ["PreludeCorrelator/plugins/dshield.dat"]) ]
++        data_files = [ ("@PRELUDE_HOME@", ["PreludeCorrelator/plugins/dshield.dat"]) ]
  
  setup(
          name="prelude-correlator",



Home | Main Index | Thread Index | Old Index