summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Short <zul@gentoo.org>2003-10-18 16:59:17 +0000
committerChuck Short <zul@gentoo.org>2003-10-18 16:59:17 +0000
commitd177342e7fe83ecb537d61218d7c474c5cab012e (patch)
tree044085608def47bc4ae1691b2f388ed07e9c73f3 /net-analyzer/darkstat
parentInitial version, closes #29548. (diff)
downloadgentoo-2-d177342e7fe83ecb537d61218d7c474c5cab012e.tar.gz
gentoo-2-d177342e7fe83ecb537d61218d7c474c5cab012e.tar.bz2
gentoo-2-d177342e7fe83ecb537d61218d7c474c5cab012e.zip
Initial version, closes #29548.
Diffstat (limited to 'net-analyzer/darkstat')
-rw-r--r--net-analyzer/darkstat/ChangeLog11
-rw-r--r--net-analyzer/darkstat/Manifest6
-rw-r--r--net-analyzer/darkstat/darkstat-2.5.ebuild36
-rw-r--r--net-analyzer/darkstat/files/darkstat-confd4
-rw-r--r--net-analyzer/darkstat/files/darkstat-init20
-rw-r--r--net-analyzer/darkstat/files/digest-darkstat-2.51
-rw-r--r--net-analyzer/darkstat/metadata.xml8
7 files changed, 85 insertions, 1 deletions
diff --git a/net-analyzer/darkstat/ChangeLog b/net-analyzer/darkstat/ChangeLog
new file mode 100644
index 000000000000..82ec35a35100
--- /dev/null
+++ b/net-analyzer/darkstat/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-analyzer/darkstat
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.1 2003/10/18 16:59:12 zul Exp $
+
+*darkstat-2.5 (18 Oct 2003)
+
+ 18 Oct 2003; Chuck Short <zul@gentoo.org> darkstat-2.5.ebuild,
+ files/darkstat-confd:
+ Initial version, submitted by Thomas Preissler <tomjohn@gmx.de>
+ closes bug #29548.
+
diff --git a/net-analyzer/darkstat/Manifest b/net-analyzer/darkstat/Manifest
index 339ec428d3b3..fe5744cc5ffe 100644
--- a/net-analyzer/darkstat/Manifest
+++ b/net-analyzer/darkstat/Manifest
@@ -1,2 +1,6 @@
-MD5 3d97023124c78fc06c8ecd9478523476 darkstat-2.5.ebuild 901
+MD5 3facd340b95bc50d706e2d811bbfe9ce darkstat-2.5.ebuild 1000
+MD5 a9c413370a92402d5a4d2bc0c1a97bf7 ChangeLog 427
+MD5 7e285f080272b311b0eb8b0028928e07 metadata.xml 219
MD5 11a0d835bd33988a1e21544896d0374e files/digest-darkstat-2.5 64
+MD5 76c4f5b5b07f68a1dc51298b0de8cba3 files/darkstat-confd 207
+MD5 774b153755a4ff302c74808948f098a2 files/darkstat-init 469
diff --git a/net-analyzer/darkstat/darkstat-2.5.ebuild b/net-analyzer/darkstat/darkstat-2.5.ebuild
new file mode 100644
index 000000000000..2b68ce4c08e5
--- /dev/null
+++ b/net-analyzer/darkstat/darkstat-2.5.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-2.5.ebuild,v 1.1 2003/10/18 16:59:12 zul Exp $
+
+DESCRIPTION="darkstat is a network traffic analyzer"
+HOMEPAGE="http://members.optushome.com.au/emikulic/net/darkstat/"
+SRC_URI="http://members.optushome.com.au/emikulic/net/darkstat/${P}.tar.gz"
+
+KEYWORDS="~x86"
+IUSE=""
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=net-libs/libpcap-0.7.1"
+RDEPEND=""
+
+S="${WORKDIR}/${P}"
+
+src_compile() {
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+ emake || die
+}
+src_install() {
+ make DESTDIR=${D} install || die
+ dodir /var/spool/darkstat
+
+ dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL ISSUES NEWS README TODO
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/darkstat-init darkstat
+ insinto /etc/conf.d ; newins ${FILESDIR}/darkstat-confd darkstat
+}
+
diff --git a/net-analyzer/darkstat/files/darkstat-confd b/net-analyzer/darkstat/files/darkstat-confd
new file mode 100644
index 000000000000..017822ee122a
--- /dev/null
+++ b/net-analyzer/darkstat/files/darkstat-confd
@@ -0,0 +1,4 @@
+# Config file for /etc/init.d/darkstat
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/files/darkstat-confd,v 1.1 2003/10/18 16:59:12 zul Exp $
+# Set preferred options here
+DARKSTAT_OPTS="-i ppp0"
diff --git a/net-analyzer/darkstat/files/darkstat-init b/net-analyzer/darkstat/files/darkstat-init
new file mode 100644
index 000000000000..f708a6a5bb51
--- /dev/null
+++ b/net-analyzer/darkstat/files/darkstat-init
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting darkstat"
+ start-stop-daemon --start --quiet --exec /usr/sbin/darkstat -- --detach -d /var/spool/darkstat ${DARKSTAT_OPTS} >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping darkstat"
+ start-stop-daemon --stop --quiet --retry 5 --exec /usr/sbin/darkstat
+ eend $?
+}
diff --git a/net-analyzer/darkstat/files/digest-darkstat-2.5 b/net-analyzer/darkstat/files/digest-darkstat-2.5
new file mode 100644
index 000000000000..8f0f639ff62c
--- /dev/null
+++ b/net-analyzer/darkstat/files/digest-darkstat-2.5
@@ -0,0 +1 @@
+MD5 4e1b67a55b6aa2c1242f40ee61df7a40 darkstat-2.5.tar.gz 203834
diff --git a/net-analyzer/darkstat/metadata.xml b/net-analyzer/darkstat/metadata.xml
new file mode 100644
index 000000000000..d66bb0cd26df
--- /dev/null
+++ b/net-analyzer/darkstat/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>no-herd</herd>
+<maintainer>
+ <email>zul@gentoo.org</email>
+</maintainer>
+</pkgmetadata>