summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/quidscor
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/quidscor')
-rw-r--r--net-analyzer/quidscor/Manifest1
-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
-rw-r--r--net-analyzer/quidscor/metadata.xml8
-rw-r--r--net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild45
6 files changed, 111 insertions, 0 deletions
diff --git a/net-analyzer/quidscor/Manifest b/net-analyzer/quidscor/Manifest
new file mode 100644
index 000000000000..34c05f874d3a
--- /dev/null
+++ b/net-analyzer/quidscor/Manifest
@@ -0,0 +1 @@
+DIST quidscor-1.2.48-src.tar.gz 77843 SHA256 619451c1501a2eeac3fbad14a3b7d21942a51368431f4c3c620ddf1f4c1faa2f SHA512 8272a1a4ed406d3429f0438dabddd15092be0a33a8fce3c5b0af0ae13422c8918f1a5971b2c2ea639fb87ffdeb1bc89085f07f89856e732f0b270b57eabb7010 WHIRLPOOL eb74036b5fde1981c04c0994d3e70c274d4c03f6bd16fd5c6d2528d0c181b10e9f92b1dc994e9e23d3e6a80df18130f4c9649b327d3e9f532060a446645871f6
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)
diff --git a/net-analyzer/quidscor/metadata.xml b/net-analyzer/quidscor/metadata.xml
new file mode 100644
index 000000000000..8452310f8b70
--- /dev/null
+++ b/net-analyzer/quidscor/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <upstream>
+ <remote-id type="sourceforge">quidscor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild b/net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild
new file mode 100644
index 000000000000..42d421b2ec14
--- /dev/null
+++ b/net-analyzer/quidscor/quidscor-1.2.48-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Qualys IDS Correlation Daemon"
+HOMEPAGE="http://quidscor.sourceforge.net/"
+SRC_URI="mirror://sourceforge/quidscor/${P}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+
+DEPEND="
+ >=dev-libs/libxml2-2.4
+ >=net-misc/curl-7.10
+ >=net-analyzer/snort-2.0
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-curl-types.h.patch \
+ "${FILESDIR}"/${P}-paths.patch \
+ "${FILESDIR}"/${P}-strip.patch
+
+ #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
+}
+
+src_compile() {
+ emake EXTRA_CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake PREFIX=/usr STAGING_PREFIX="${D}" install
+ dodoc ChangeLog FAQ MANIFEST README TODO
+ # fix ugly install
+ cd "${D}"/usr || die
+ mv etc .. || die
+ rm -r doc || die
+}