summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-07-20 13:54:45 +0000
committerJeroen Roovers <jer@gentoo.org>2014-07-20 13:54:45 +0000
commit42729f35117e4da2d910eacdddb870e80ccda151 (patch)
treeb0ee9458cb87d0c79d76142d6d60fcf5d345bd33 /net-analyzer/quidscor
parentCore package has been renamed to Pod-Parser to follow upstream naming (diff)
downloadgentoo-2-42729f35117e4da2d910eacdddb870e80ccda151.tar.gz
gentoo-2-42729f35117e4da2d910eacdddb870e80ccda151.tar.bz2
gentoo-2-42729f35117e4da2d910eacdddb870e80ccda151.zip
Use /var/lib not /var/run.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/quidscor')
-rw-r--r--net-analyzer/quidscor/ChangeLog8
-rw-r--r--net-analyzer/quidscor/files/quidscor-1.2.48-paths.patch37
-rw-r--r--net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild (renamed from net-analyzer/quidscor/quidscor-1.2.48.ebuild)5
3 files changed, 47 insertions, 3 deletions
diff --git a/net-analyzer/quidscor/ChangeLog b/net-analyzer/quidscor/ChangeLog
index 3e7f32b124bf..27151f8559e2 100644
--- a/net-analyzer/quidscor/ChangeLog
+++ b/net-analyzer/quidscor/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/quidscor
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/quidscor/ChangeLog,v 1.10 2014/07/20 13:29:14 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/quidscor/ChangeLog,v 1.11 2014/07/20 13:54:45 jer Exp $
+
+*quidscor-1.2.48-r1 (20 Jul 2014)
+
+ 20 Jul 2014; Jeroen Roovers <jer@gentoo.org> -quidscor-1.2.48.ebuild,
+ +quidscor-1.2.48-r1.ebuild, +files/quidscor-1.2.48-paths.patch:
+ Use /var/lib not /var/run.
20 Jul 2014; Jeroen Roovers <jer@gentoo.org> quidscor-1.2.48.ebuild:
Update DESCRIPTION.
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/quidscor-1.2.48.ebuild b/net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild
index b79031ab4b14..ed187bc465b9 100644
--- a/net-analyzer/quidscor/quidscor-1.2.48.ebuild
+++ b/net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/quidscor/quidscor-1.2.48.ebuild,v 1.10 2014/07/20 13:29:14 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild,v 1.1 2014/07/20 13:54:45 jer Exp $
EAPI=5
inherit eutils toolchain-funcs
@@ -23,8 +23,9 @@ RDEPEND="${DEPEND}"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-curl-types.h.patch \
+ "${FILESDIR}"/${P}-paths.patch \
"${FILESDIR}"/${P}-strip.patch
- sed -i '/^CFLAGS=/s: -g : :' Makefile || die
+
#yes, the fix below is as pathetic as it seems
echo "#define FALSE 0" >> libqg/libqg.h || die
echo "#define TRUE 1" >> libqg/libqg.h || die