pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-prewikka Fixed bug in 0.9.7 release that p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b51a7eca0211
branches:  trunk
changeset: 517812:b51a7eca0211
user:      shannonjr <shannonjr%pkgsrc.org@localhost>
date:      Wed Aug 23 10:30:02 2006 +0000

description:
Fixed bug in 0.9.7 release that prevented filters from working.

diffstat:

 security/py-prewikka/Makefile            |  12 ++++++++----
 security/py-prewikka/distinfo            |   3 ++-
 security/py-prewikka/files/runPrewikka.c |  10 ++++++----
 security/py-prewikka/patches/patch-aa    |  13 +++++++++++++
 4 files changed, 29 insertions(+), 9 deletions(-)

diffs (97 lines):

diff -r 7888e15ee7b2 -r b51a7eca0211 security/py-prewikka/Makefile
--- a/security/py-prewikka/Makefile     Wed Aug 23 10:28:06 2006 +0000
+++ b/security/py-prewikka/Makefile     Wed Aug 23 10:30:02 2006 +0000
@@ -1,11 +1,14 @@
-# $NetBSD: Makefile,v 1.10 2006/08/17 11:35:20 shannonjr Exp $
+# $NetBSD: Makefile,v 1.11 2006/08/23 10:30:02 shannonjr Exp $
 #
 
-DISTNAME=              prewikka-0.9.7
-PKGNAME=               ${PYPKGPREFIX}-prewikka-0.9.7
+DISTNAME=              prewikka-${VERSION}
+PKGNAME=               ${PYPKGPREFIX}-prewikka-${VERSION}
+PKGREVISION=           1
 CATEGORIES=            security
 MASTER_SITES=          http://prelude-ids.org/download/releases/
 
+VERSION=               0.9.7
+
 CONFLICTS=             prewikka-[0-9]*
 
 MAINTAINER=            shannonjr%NetBSD.org@localhost
@@ -19,7 +22,7 @@
 PYDISTUTILSPKG=                yes
 PYBINMODULE=           yes
 PYSETUP=               setup.py
-PYTHON_VERSIONS_ACCEPTED=      24 23 22
+PYTHON_VERSIONS_ACCEPTED=      24 23
 PYTHON_PATCH_SCRIPTS=  scripts/prewikka-httpd
 PREWIKKA_USER?=                prewikka
 PREWIKKA_GROUP?=       prewikka
@@ -37,6 +40,7 @@
 SUBST_FILES.code=      runPrewikka.c
 SUBST_SED.code=                -e 's,@PREFIX@,${PREFIX},g'
 SUBST_SED.code+=       -e 's,@PREWIKKA_USER@,${PREWIKKA_USER},g'
+SUBST_SED.code+=       -e 's,@PYTHONBIN@,${PYTHONBIN},g'
 FILES_SUBST+=  PREWIKKA_USER=${PREWIKKA_USER:Q}
 
 pre-patch:
diff -r 7888e15ee7b2 -r b51a7eca0211 security/py-prewikka/distinfo
--- a/security/py-prewikka/distinfo     Wed Aug 23 10:28:06 2006 +0000
+++ b/security/py-prewikka/distinfo     Wed Aug 23 10:30:02 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2006/08/17 11:35:20 shannonjr Exp $
+$NetBSD: distinfo,v 1.5 2006/08/23 10:30:02 shannonjr Exp $
 
 SHA1 (prewikka-0.9.7.tar.gz) = a11cd15a1290cd52553a824c61ab2c1e028435ff
 RMD160 (prewikka-0.9.7.tar.gz) = 29b1dfe7e81b9273ed7e59b37acb3ded85f5e836
 Size (prewikka-0.9.7.tar.gz) = 180802 bytes
+SHA1 (patch-aa) = a250840804edea0c8eeeb8608aa8c07375d0a3f2
diff -r 7888e15ee7b2 -r b51a7eca0211 security/py-prewikka/files/runPrewikka.c
--- a/security/py-prewikka/files/runPrewikka.c  Wed Aug 23 10:28:06 2006 +0000
+++ b/security/py-prewikka/files/runPrewikka.c  Wed Aug 23 10:30:02 2006 +0000
@@ -1,5 +1,6 @@
 #define PREWIKKA_HTTPD_USER "@PREWIKKA_USER@"
 #define PREWIKKA_HTTPD_PATH "@PREFIX@/bin/prewikka-httpd"
+#define PYTHON "@PYTHONBIN@"
 
 #include <unistd.h>
 #include <string.h>
@@ -116,15 +117,16 @@
             }
 
             /* Build calling argv */
-            args[0] = PREWIKKA_HTTPD_PATH;
+            args[0] = PYTHON;
+            args[1] = PREWIKKA_HTTPD_PATH;
             for (i=1;i<argc;i++)
             {
-                args[i] = argv[i];
+               args[i+1] = argv[i];
+               args[i+2] = NULL;
             }
-            args[i++] = NULL;
 
             /* Finally transform self into prewikka-httpd */
-            if (execvp(PREWIKKA_HTTPD_PATH, args) < 0)
+            if (execvp(PYTHON, args) < 0)
                 error_sys("execve error");
             else
                 ; /* avoid if-then ambiguity */
diff -r 7888e15ee7b2 -r b51a7eca0211 security/py-prewikka/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-prewikka/patches/patch-aa     Wed Aug 23 10:30:02 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.3 2006/08/23 10:30:02 shannonjr Exp $
+
+--- ./prewikka/Filter.py.orig  2006-08-16 03:40:13.000000000 -0600
++++ ./prewikka/Filter.py
+@@ -85,7 +85,7 @@ class _Filter:
+ 
+ 
+ 
+-class AlertFilter:
++class AlertFilter(_Filter):
+     _objects = CriteriaIDMEF(prelude.IDMEF_CLASS_ID_ALERT, "alert").CriteriaList
+     
+     def __iter__(self):



Home | Main Index | Thread Index | Old Index