summaryrefslogtreecommitdiff
path: root/net-analyzer/quidscor/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/quidscor/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/quidscor/files')
-rw-r--r--net-analyzer/quidscor/files/quidscor-1.2.48-curl-types.h.patch10
-rw-r--r--net-analyzer/quidscor/files/quidscor-1.2.48-paths.patch37
-rw-r--r--net-analyzer/quidscor/files/quidscor-1.2.48-strip.patch10
3 files changed, 57 insertions, 0 deletions
diff --git a/net-analyzer/quidscor/files/quidscor-1.2.48-curl-types.h.patch b/net-analyzer/quidscor/files/quidscor-1.2.48-curl-types.h.patch
new file mode 100644
index 000000000000..5f1e035c81d6
--- /dev/null
+++ b/net-analyzer/quidscor/files/quidscor-1.2.48-curl-types.h.patch
@@ -0,0 +1,10 @@
+--- a/libqg/libqg.h
++++ b/libqg/libqg.h
+@@ -38,7 +38,6 @@
+ #include <arpa/inet.h>
+ #include <dirent.h>
+ #include <curl/curl.h>
+-#include <curl/types.h>
+ #include <string.h>
+ #include <strings.h>
+ #include <libxml/xmlmemory.h>
diff --git a/net-analyzer/quidscor/files/quidscor-1.2.48-paths.patch b/net-analyzer/quidscor/files/quidscor-1.2.48-paths.patch
new file mode 100644
index 000000000000..6168720cbdf4
--- /dev/null
+++ b/net-analyzer/quidscor/files/quidscor-1.2.48-paths.patch
@@ -0,0 +1,37 @@
+--- a/quidscor.conf
++++ b/quidscor.conf
+@@ -15,9 +15,9 @@
+ # Logdir: directory
+ LOGDIR /var/log/quidscor/
+ # Cachedir: directory
+-CACHEDIR /var/run/quidscor/cache/
++CACHEDIR /var/lib/quidscor
+ # Rulesdir: directory where .rules (for snort) live (.lib for dragon)
+-RULESDIR /usr/local/etc/snort-rules
++RULESDIR /etc/snort/rules
+ # Expiretime: time_in_seconds
+ EXPIRETIME 86400
+ # File for custom mapping (must be absolute path)
+--- a/quidscor.h
++++ b/quidscor.h
+@@ -85,7 +85,7 @@
+ #define AL_UNVER "alerts_unknown.log"
+
+ // Directories
+-#define CACHE_DIR "run/quidscor/cache/"
++#define CACHE_DIR "/lib/quidscor"
+ #define LOG_DIR "log/quidscor/"
+ #define CREATE_MOD 0700
+ #define MOD_PID 0640
+--- a/Makefile
++++ b/Makefile
+@@ -84,8 +84,7 @@
+
+ install:
+ install -d -m 0700 $(IVARPREFIX)/log/$(PNAME)/
+- install -d -m 0700 $(IVARPREFIX)/run/$(PNAME)/
+- install -d -m 0700 $(IVARPREFIX)/run/$(PNAME)/cache/
++ install -d -m 0700 $(IVARPREFIX)/lib/$(PNAME)/
+ install -d -m 0755 $(IPREFIX)/sbin/
+ install -m 0755 $(PNAME) $(IPREFIX)/sbin/$(PNAME)
+ install -d -m 0755 $(IPREFIX)/etc/
diff --git a/net-analyzer/quidscor/files/quidscor-1.2.48-strip.patch b/net-analyzer/quidscor/files/quidscor-1.2.48-strip.patch
new file mode 100644
index 000000000000..9d169e619c0b
--- /dev/null
+++ b/net-analyzer/quidscor/files/quidscor-1.2.48-strip.patch
@@ -0,0 +1,10 @@
+--- a/Makefile
++++ b/Makefile
+@@ -69,7 +69,6 @@
+
+ $(PNAME): $(PNAME).debug
+ $(CP) $(PNAME).debug $@
+- $(STRIP) $@
+
+ $(PNAME).debug: libqg/libqg.a $(OFILES) Makefile
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OFILES) $(LIBS)