summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2006-12-16 22:29:51 +0000
committerCédric Krier <cedk@gentoo.org>2006-12-16 22:29:51 +0000
commit7a9f8793d0ae1211584a6b7fc17f55c79f460865 (patch)
treeb3d6b8b7391a0120d6c920a63ded3290319e681c /net-analyzer
parentInitial import. Using a snapshot since the 0.1 release is quite old and has (diff)
downloadgentoo-2-7a9f8793d0ae1211584a6b7fc17f55c79f460865.tar.gz
gentoo-2-7a9f8793d0ae1211584a6b7fc17f55c79f460865.tar.bz2
gentoo-2-7a9f8793d0ae1211584a6b7fc17f55c79f460865.zip
Version bump
(Portage version: 2.1.1-r2)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/sec/ChangeLog10
-rw-r--r--net-analyzer/sec/files/digest-sec-2.3.12
-rw-r--r--net-analyzer/sec/files/digest-sec-2.3.22
-rw-r--r--net-analyzer/sec/files/digest-sec-2.4.03
-rw-r--r--net-analyzer/sec/files/sec.conf.d10
-rw-r--r--net-analyzer/sec/files/sec.init.d36
-rw-r--r--net-analyzer/sec/sec-2.4.0.ebuild28
7 files changed, 89 insertions, 2 deletions
diff --git a/net-analyzer/sec/ChangeLog b/net-analyzer/sec/ChangeLog
index 0e55cb5175ab..17319e8b52a7 100644
--- a/net-analyzer/sec/ChangeLog
+++ b/net-analyzer/sec/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/sec
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sec/ChangeLog,v 1.7 2005/11/22 22:09:08 vanquirius Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sec/ChangeLog,v 1.8 2006/12/16 22:29:51 cedk Exp $
+
+*sec-2.4.0 (16 Dec 2006)
+
+ 16 Dec 2006; Cedric Krier <cedk@gentoo.org> +files/sec.conf.d,
+ +files/sec.init.d, +sec-2.4.0.ebuild:
+ Version bump and add init script for bug #137699
*sec-2.3.2 (22 Nov 2005)
diff --git a/net-analyzer/sec/files/digest-sec-2.3.1 b/net-analyzer/sec/files/digest-sec-2.3.1
index ada623e1722b..c265672080be 100644
--- a/net-analyzer/sec/files/digest-sec-2.3.1
+++ b/net-analyzer/sec/files/digest-sec-2.3.1
@@ -1 +1,3 @@
MD5 d0178f775ac0e976ea05924cdb62126a sec-2.3.1.tar.gz 76446
+RMD160 4e328d884f66bcefadca5bea6279dbd0003c0cca sec-2.3.1.tar.gz 76446
+SHA256 d56970b0b2491f8a38c525d3d2aa2cacb5861efda1e6740fc3ad9ba69b610342 sec-2.3.1.tar.gz 76446
diff --git a/net-analyzer/sec/files/digest-sec-2.3.2 b/net-analyzer/sec/files/digest-sec-2.3.2
index f7ee4920a5ef..3f5d1d03f715 100644
--- a/net-analyzer/sec/files/digest-sec-2.3.2
+++ b/net-analyzer/sec/files/digest-sec-2.3.2
@@ -1 +1,3 @@
MD5 f6dba0e1dd3af813a4af88a6ba1a972b sec-2.3.2.tar.gz 77692
+RMD160 28a4eafbc77c90451c214099a06aade9a268c2b4 sec-2.3.2.tar.gz 77692
+SHA256 77d4054d5c9cdb63a43128f7949ae892715de64bdeffc09992369dcb83c62e05 sec-2.3.2.tar.gz 77692
diff --git a/net-analyzer/sec/files/digest-sec-2.4.0 b/net-analyzer/sec/files/digest-sec-2.4.0
new file mode 100644
index 000000000000..f3b08a3677ca
--- /dev/null
+++ b/net-analyzer/sec/files/digest-sec-2.4.0
@@ -0,0 +1,3 @@
+MD5 3697bdab0664d5392c8e1e66edd3291c sec-2.4.0.tar.gz 80011
+RMD160 c5f599dc4f9bfdae64b4393999fc056050d5b0a7 sec-2.4.0.tar.gz 80011
+SHA256 f73462d5a003ae82e0e31c68d55898d1d3b039016ecd3707a48d5e07deef2a82 sec-2.4.0.tar.gz 80011
diff --git a/net-analyzer/sec/files/sec.conf.d b/net-analyzer/sec/files/sec.conf.d
new file mode 100644
index 000000000000..2ac17e7f54f9
--- /dev/null
+++ b/net-analyzer/sec/files/sec.conf.d
@@ -0,0 +1,10 @@
+#flags to pass to sec (see 'sec --help')
+SEC_FLAGS=""
+
+# Define a debug level (1..6)
+DEBUG_LEVEL="4"
+
+# define where sec reads messages from for translating them
+INPUT_FILES="-input=/var/log/messages"
+#INPUT_FILES="${INPUT_FILES} -input=/var/log/some.log"
+#INPUT_FILES="${INPUT_FILES} -input=/tmp/other.file"
diff --git a/net-analyzer/sec/files/sec.init.d b/net-analyzer/sec/files/sec.init.d
new file mode 100644
index 000000000000..9f7226981965
--- /dev/null
+++ b/net-analyzer/sec/files/sec.init.d
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sec/files/sec.init.d,v 1.1 2006/12/16 22:29:51 cedk Exp $
+
+depend() {
+ use logger
+}
+
+checkconfig() {
+ if [ ! -e /etc/sec.conf ] ; then
+ eerror "You need an /etc/sec.conf config file to run sec"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting sec"
+ start-stop-daemon --start --quiet --exec /usr/bin/sec.pl \
+ -- -pid=/var/run/sec.pid \
+ -detach -log=/var/log/sec.log \
+ -conf=/etc/sec.conf \
+ ${INPUT_FILES} \
+ -debug=${DEBUG_LEVEL} \
+ ${SEC_FLAGS} > /dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping sec"
+ start-stop-daemon --stop --quiet --pidfile /var/run/sec.pid
+ eend $?
+}
+
diff --git a/net-analyzer/sec/sec-2.4.0.ebuild b/net-analyzer/sec/sec-2.4.0.ebuild
new file mode 100644
index 000000000000..a54d47261514
--- /dev/null
+++ b/net-analyzer/sec/sec-2.4.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sec/sec-2.4.0.ebuild,v 1.1 2006/12/16 22:29:51 cedk Exp $
+
+DESCRIPTION="Simple Event Correlator"
+HOMEPAGE="http://simple-evcorr.sourceforge.net/"
+SRC_URI="mirror://sourceforge/simple-evcorr/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.6.0"
+
+src_install() {
+ dobin sec.pl
+
+ dodoc ChangeLog README
+ docinto contrib
+ dodoc contrib/{itostream.c,convert.pl,swatch2sec.pl}
+
+ newman sec.pl.man sec.pl.1
+
+ newinitd "${FILESDIR}"/sec.init.d sec
+ newconfd "${FILESDIR}"/sec.conf.d sec
+}
+