summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2006-01-09 10:56:50 +0000
committerPeter Volkov <pva@gentoo.org>2006-01-09 10:56:50 +0000
commitc0de01a8149e72d0d2f1b40a564e2fa8dc14d74e (patch)
treefcd8eb4000e33f18e748e4910b9c90077386a595 /net-analyzer/ndsad
parenthttp://kernel.org/pub -> mirror://kernel/ in SRC_URI (diff)
downloadgentoo-2-c0de01a8149e72d0d2f1b40a564e2fa8dc14d74e.tar.gz
gentoo-2-c0de01a8149e72d0d2f1b40a564e2fa8dc14d74e.tar.bz2
gentoo-2-c0de01a8149e72d0d2f1b40a564e2fa8dc14d74e.zip
Initial bump.
(Portage version: 2.0.53)
Diffstat (limited to 'net-analyzer/ndsad')
-rw-r--r--net-analyzer/ndsad/ChangeLog10
-rw-r--r--net-analyzer/ndsad/Manifest5
-rw-r--r--net-analyzer/ndsad/files/digest-ndsad-1.331
-rw-r--r--net-analyzer/ndsad/files/ndsad.conf.d5
-rw-r--r--net-analyzer/ndsad/files/ndsad.init30
-rw-r--r--net-analyzer/ndsad/metadata.xml14
-rw-r--r--net-analyzer/ndsad/ndsad-1.33.ebuild62
7 files changed, 127 insertions, 0 deletions
diff --git a/net-analyzer/ndsad/ChangeLog b/net-analyzer/ndsad/ChangeLog
new file mode 100644
index 000000000000..be04ebecde17
--- /dev/null
+++ b/net-analyzer/ndsad/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-analyzer/ndsad
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndsad/ChangeLog,v 1.1 2006/01/09 10:56:49 pva Exp $
+
+*ndsad-1.33 (09 Jan 2006)
+
+ 09 Jan 2006; Peter Volkov <pva@gentoo.org> +files/ndsad.conf.d,
+ +files/ndsad.init, +metadata.xml, +ndsad-1.33.ebuild:
+ Initial bump.
+
diff --git a/net-analyzer/ndsad/Manifest b/net-analyzer/ndsad/Manifest
new file mode 100644
index 000000000000..dce32462922a
--- /dev/null
+++ b/net-analyzer/ndsad/Manifest
@@ -0,0 +1,5 @@
+MD5 9c3086bcff0417e08ef1cd1bb0d410a1 files/digest-ndsad-1.33 59
+MD5 3bf001b31963c71c751be8805e2e3078 files/ndsad.conf.d 178
+MD5 008744c239e9c8914f3f95034fd9bdb9 files/ndsad.init 571
+MD5 fa7efd48634c9e35a244007890eb63bf metadata.xml 545
+MD5 0b926d02f1b9a87164f7fdd2069ed8bb ndsad-1.33.ebuild 1442
diff --git a/net-analyzer/ndsad/files/digest-ndsad-1.33 b/net-analyzer/ndsad/files/digest-ndsad-1.33
new file mode 100644
index 000000000000..3531c16c4579
--- /dev/null
+++ b/net-analyzer/ndsad/files/digest-ndsad-1.33
@@ -0,0 +1 @@
+MD5 18cd6d8c8959b4cbbaa4c940260b4d3f ndsad-1.33.tgz 214614
diff --git a/net-analyzer/ndsad/files/ndsad.conf.d b/net-analyzer/ndsad/files/ndsad.conf.d
new file mode 100644
index 000000000000..21ce5cbea99c
--- /dev/null
+++ b/net-analyzer/ndsad/files/ndsad.conf.d
@@ -0,0 +1,5 @@
+# See config file /etc/ndsad.conf for configuration options.
+
+# If you want to add any extra command line options to be used by ndsad on
+# start-up put them here.
+NDSAD_OPTS=""
diff --git a/net-analyzer/ndsad/files/ndsad.init b/net-analyzer/ndsad/files/ndsad.init
new file mode 100644
index 000000000000..2fa9d977d8f4
--- /dev/null
+++ b/net-analyzer/ndsad/files/ndsad.init
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f /etc/ndsad.conf ] ; then
+ eerror "/etc/ndsad.conf does not file exists!"
+ return 1
+ fi
+
+ return 0
+}
+
+start() {
+ # Comment out the following line to get faster startups
+ checkconfig || return 1
+
+ ebegin "Starting ndsad"
+ # On success ndsad returns 1.
+ start-stop-daemon --start --quiet --exec /usr/sbin/ndsad -- -d ${NDSAD_OPTS} >/dev/null 2>&1
+ eend $(( $? - 1 ))
+}
+
+stop () {
+ ebegin "Stopping ndsad"
+ start-stop-daemon --stop --quiet --pidfile=/var/run/ndsad.pid --retry 20 >/dev/null
+ eend $?
+}
diff --git a/net-analyzer/ndsad/metadata.xml b/net-analyzer/ndsad/metadata.xml
new file mode 100644
index 000000000000..ce0323f34aa0
--- /dev/null
+++ b/net-analyzer/ndsad/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+ <maintainer>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
+ </maintainer>
+ <longdescription>The NetUP ndsad utility captures IP-traffic from network
+ interfaces and export NetFlow v.5.Data is gathered from libpcap library on Unix
+ and from winpcap on Windows. Also you are able to use tee/divert sockets on
+ FreeBSD and ULOG on Linux for data source.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-analyzer/ndsad/ndsad-1.33.ebuild b/net-analyzer/ndsad/ndsad-1.33.ebuild
new file mode 100644
index 000000000000..c9a7428f9a3f
--- /dev/null
+++ b/net-analyzer/ndsad/ndsad-1.33.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndsad/ndsad-1.33.ebuild,v 1.1 2006/01/09 10:56:49 pva Exp $
+
+DESCRIPTION="NetUP Data Stream Accounting Daemon"
+HOMEPAGE="http://sourceforge.net/projects/ndsad"
+SRC_URI="mirror://sourceforge/ndsad/ndsad-${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND=">=net-libs/libpcap-0.8"
+DEPEND="${RDEPEND}
+ =sys-devel/automake-1.7*
+ =sys-devel/autoconf-2.5*"
+
+src_unpack() {
+ einfo "Regenerating autotools files..."
+ export WANT_AUTOCONF=2.5
+ export WANT_AUTOMAKE=1.7
+
+ unpack ${A}
+
+ cd ${S}
+
+ # Puttind ndsad binary in sbin.
+ sed -i "s/bin_PROGRAMS = ndsad/sbin_PROGRAMS = ndsad/" Makefile.am || \
+ die "Can not change bin->sbin in Makefile.am... sed failed"
+
+ sed -i \
+ "s:^#define conf_path \"/netup/utm5/ndsad.cfg\":#define conf_path \"/etc/ndsad.conf\":" \
+ ndsad.cc || die "Can not change default config path... sed failed"
+
+ sed -i "s:log /tmp/ndsad.log:log /var/log/ndsad.log:" ndsad.conf || \
+ die "Can not fix logging path in ndsad.conf... sed failed"
+
+ ./preconf
+}
+
+src_compile() {
+ econf --with-ulog=yes || die "configure failed"
+ emake || die "compilation failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ doman ndsad.conf.5
+
+ insinto /etc
+ newins ndsad.conf ndsad.conf
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/ndsad.init ndsad
+
+ insinto /etc/conf.d
+ newins ${FILESDIR}/ndsad.conf.d ndsad
+
+ dodoc ChangeLog AUTHORS README
+}