Initial import. Thanks to soulse for base ebuild
authorBenjamin Smee <strerror@gentoo.org>
Sat, 8 Oct 2005 13:52:29 +0000 (13:52 +0000)
committerBenjamin Smee <strerror@gentoo.org>
Sat, 8 Oct 2005 13:52:29 +0000 (13:52 +0000)
Package-Manager: portage-2.0.51.22-r3

net-analyzer/sancp/ChangeLog [new file with mode: 0644]
net-analyzer/sancp/files/digest-sancp-1.6.1 [new file with mode: 0644]
net-analyzer/sancp/files/sancp.confd [new file with mode: 0644]
net-analyzer/sancp/files/sancp.rc1 [new file with mode: 0644]
net-analyzer/sancp/metadata.xml [new file with mode: 0644]
net-analyzer/sancp/sancp-1.6.1.ebuild [new file with mode: 0644]
net-analyzer/snort/Manifest

diff --git a/net-analyzer/sancp/ChangeLog b/net-analyzer/sancp/ChangeLog
new file mode 100644 (file)
index 0000000..74d2feb
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for net-analyzer/sancp
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sancp/ChangeLog,v 1.1 2005/10/08 13:52:29 strerror Exp $
+
+*sancp-1.6.1 (08 Oct 2005)
+
+  08 Oct 2005; Benjamin Smee <strerror@gentoo.org> +files/sancp.confd,
+  +files/sancp.rc1, +metadata.xml, +sancp-1.6.1.ebuild:
+  Initial import. Thanks to soulse for base ebuild
+
diff --git a/net-analyzer/sancp/files/digest-sancp-1.6.1 b/net-analyzer/sancp/files/digest-sancp-1.6.1
new file mode 100644 (file)
index 0000000..a55fe08
--- /dev/null
@@ -0,0 +1 @@
+MD5 b83e2f4abb2bf7b10fd874aa58f6324c sancp-1.6.1.tar.gz 69986
diff --git a/net-analyzer/sancp/files/sancp.confd b/net-analyzer/sancp/files/sancp.confd
new file mode 100644 (file)
index 0000000..4920843
--- /dev/null
@@ -0,0 +1,13 @@
+# Config file for /etc/init.d/sancp
+
+# Interface to listen on
+IFACE="eth0"
+
+# Directory to log in 
+LOGDIR="/var/log/sancp"
+
+# Default config file
+CONF="/etc/sancp/sancp.conf"
+
+# You could add more options :)
+SANCP_OPTS="-d $LOGDIR/today -i $IFACE -c $CONF -u sancp -g sancp"
diff --git a/net-analyzer/sancp/files/sancp.rc1 b/net-analyzer/sancp/files/sancp.rc1
new file mode 100644 (file)
index 0000000..d5f8ea1
--- /dev/null
@@ -0,0 +1,43 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sancp/files/sancp.rc1,v 1.1 2005/10/08 13:52:29 strerror Exp $
+
+today=$(date '+%Y-%m-%d')
+
+depend() {
+       need net
+}
+checkconfig() {
+       if [ ! -e /etc/sancp/sancp.conf ] ; then
+               eerror "You need an /etc/sancp/sancp.conf to run sancp"
+               return 1
+       fi
+}
+
+start() {
+       checkconfig || return 1
+       
+       # Today's log directory
+       if [ ! -d $LOGDIR/$today ]; then
+               /bin/mkdir $LOGDIR/$today
+               /bin/rm -f $LOGDIR/today
+       fi
+       
+       # today/ directory :)
+       if [ ! -d $LOGDIR/today ]; then
+               /bin/ln -s $LOGDIR/$today $LOGDIR/today
+       fi
+       
+       ebegin "Starting sancp"
+       start-stop-daemon --start --quiet --pidfiles /var/run/sancp.pid \
+               --exec /usr/bin/sancp \
+               -- ${SANCP_OPTS} > /var/log/sancp.log 2>&1 &
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping sancp"
+       start-stop-daemon --stop --quiet --pidfile /var/run/sancp.pid
+       eend $?
+}
diff --git a/net-analyzer/sancp/metadata.xml b/net-analyzer/sancp/metadata.xml
new file mode 100644 (file)
index 0000000..9c25735
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+<longdescription>Network security tool information collector</longdescription>
+</pkgmetadata>
diff --git a/net-analyzer/sancp/sancp-1.6.1.ebuild b/net-analyzer/sancp/sancp-1.6.1.ebuild
new file mode 100644 (file)
index 0000000..18d337f
--- /dev/null
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sancp/sancp-1.6.1.ebuild,v 1.1 2005/10/08 13:52:29 strerror Exp $
+
+inherit eutils
+
+DESCRIPTION="SANCP is a network security tool designed to collect statistical \
+       information regarding network traffic and collect the traffic itself in pcap format."
+HOMEPAGE="http://www.metre.net/sancp.html"
+SRC_URI="http://www.metre.net/files/${P}.tar.gz"
+
+LICENSE="QPL"
+
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="sguil"
+
+RDEPEND="virtual/libpcap"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+       enewgroup sancp
+       enewuser sancp -1 -1 /dev/null sancp
+}
+
+src_install() {
+       keepdir /var/log/sancp/
+       dodoc docs/CHANGES docs/fields.LIST docs/README docs/SETUP \
+               ${FILESDIR}/sguil_sancp.conf etc/sancp/sancp.conf
+
+       insinto /etc/sancp
+       if use sguil ; then
+               newins ${FILESDIR}/sguil_sancp.conf sancp.conf
+       else
+               doins etc/sancp/sancp.conf
+       fi
+
+       exeinto /usr/bin
+       doexe sancp
+
+       newinitd ${FILESDIR}/sancp.rc1 sancp
+       newconfd ${FILESDIR}/sancp.confd sancp
+       if use sguil ; then
+               sed -i -e /^SANCP_OPTS/s:'sancp':"sguil":g \
+                       -e s:'-d $LOGDIR/today':"-d /var/lib/sguil/$(hostname)/sancp": \
+                       "${D}/etc/conf.d/sancp"
+       fi
+
+       fowners sancp:sancp /var/log/sancp
+       fperms 0770 /var/log/sancp
+}
+
+pkg_postinst() {
+       einfo
+       einfo "Please modify /etc/sancp/sancp.conf to suit your environment"
+       einfo
+}
index 0f6f5433281abeedaad57a13cb3a9526f52e71bb..cf5ae4da5c52399dc9081671833534621311cdab 100644 (file)
@@ -1,9 +1,11 @@
 MD5 b360cb079bb12675a615301852e71a7f snort-2.3.3.ebuild 3975
+MD5 4a7bd3135da2aeeeede46de0677bd157 snort-2.4.1-r1.ebuild 4322
 MD5 cdb1487b04506276a6b465ba18e11fcc snort-2.4.1.ebuild 4080
 MD5 54a7ae3abfcd21c637f064420083251f snort-2.3.3-r1.ebuild 4041
-MD5 3155e3a6eefe6d0044b257340622053d ChangeLog 16055
+MD5 a183ff0e41d0b23382489b2316b56768 ChangeLog 16219
 MD5 53edc4328d9adeaf087c65ea94b1594b metadata.xml 246
 MD5 04f9ed946469f7954b6bd27f8f1aca39 files/digest-snort-2.3.3-r1 284
+MD5 3ff2d04cb5adac55b4f35c28326f0fb0 files/digest-snort-2.4.1-r1 271
 MD5 919058894f4983c35900bc8bb98a96d4 files/snort.rc6 764
 MD5 564bfdf90fe29f5924c68885ccfcddb8 files/2.3.0-libnet-1.0.patch 5424
 MD5 24851ef65be2d80a70ba4bebe3e8c0ff files/digest-snort-2.3.3 287