summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson <mjolnir@gentoo.org>2007-02-03 21:15:51 +0000
committerMartin Jackson <mjolnir@gentoo.org>2007-02-03 21:15:51 +0000
commit3af80b2d91b3bee24c5ba22c48a1c3efc40b6223 (patch)
tree111b1fb04f4050836da20bb7f42c24643ebb239b /net-analyzer/ipband
parentRegenerate digest in Manifest2 format. (diff)
downloadgentoo-2-3af80b2d91b3bee24c5ba22c48a1c3efc40b6223.tar.gz
gentoo-2-3af80b2d91b3bee24c5ba22c48a1c3efc40b6223.tar.bz2
gentoo-2-3af80b2d91b3bee24c5ba22c48a1c3efc40b6223.zip
Adding new ebuild ipband for bug 149548, thanks to Shane Denovan
(Portage version: 2.1.1-r2)
Diffstat (limited to 'net-analyzer/ipband')
-rw-r--r--net-analyzer/ipband/ChangeLog10
-rw-r--r--net-analyzer/ipband/Manifest20
-rw-r--r--net-analyzer/ipband/files/digest-ipband-0.83
-rw-r--r--net-analyzer/ipband/files/ipband-init25
-rw-r--r--net-analyzer/ipband/ipband-0.8.ebuild51
-rw-r--r--net-analyzer/ipband/metadata.xml5
6 files changed, 114 insertions, 0 deletions
diff --git a/net-analyzer/ipband/ChangeLog b/net-analyzer/ipband/ChangeLog
new file mode 100644
index 000000000000..530b5d50eaaf
--- /dev/null
+++ b/net-analyzer/ipband/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-analyzer/ipband
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ChangeLog,v 1.1 2007/02/03 21:15:51 mjolnir Exp $
+
+*ipband-0.8 (03 Feb 2007)
+
+ 03 Feb 2007; Martin Jackson <mjolnir@gentoo.org> +files/ipband-init,
+ +metadata.xml, +ipband-0.8.ebuild:
+ Adding new ebuild for bug #149548. Thanks to Shane Denovan for reporting.
+
diff --git a/net-analyzer/ipband/Manifest b/net-analyzer/ipband/Manifest
new file mode 100644
index 000000000000..7c7ea1686f0f
--- /dev/null
+++ b/net-analyzer/ipband/Manifest
@@ -0,0 +1,20 @@
+AUX ipband-init 461 RMD160 02ef40e3e23d1ba0c5d4b3b8b0380c569d0c1e8e SHA1 479e7e8e0ca89c1e97c8bb817d755dedade4d1ba SHA256 dcaae3b70911a98fdd24b76bc889a389e787abf216e359a558bd9f25386c8bb1
+MD5 9d8933bf80255b9d7c3c23a4464b8370 files/ipband-init 461
+RMD160 02ef40e3e23d1ba0c5d4b3b8b0380c569d0c1e8e files/ipband-init 461
+SHA256 dcaae3b70911a98fdd24b76bc889a389e787abf216e359a558bd9f25386c8bb1 files/ipband-init 461
+DIST ipband-0.8.tgz 36378 RMD160 4b7889ce52edcab9b8eec9e478fd4bde3c019be9 SHA1 c5f99e0a300aaf99ddfea1e756b6a450b8559420 SHA256 21be87c2755d66d17eadacd4611dfe1bed7e0c0af9c71d2f26b13fc16f1a61cf
+EBUILD ipband-0.8.ebuild 1492 RMD160 3dd430edf1e3a80688a2c2fbb29ca2dca12fec33 SHA1 78cf48375cd6e1b244ac995d2ba3de7beeece6ec SHA256 e4e8dcb223d4de3447b2c2b2c346ce5349f8fb917e3da77eeffd9c5c3ecd4183
+MD5 2f5e88db53888e8fc4871f565a779d90 ipband-0.8.ebuild 1492
+RMD160 3dd430edf1e3a80688a2c2fbb29ca2dca12fec33 ipband-0.8.ebuild 1492
+SHA256 e4e8dcb223d4de3447b2c2b2c346ce5349f8fb917e3da77eeffd9c5c3ecd4183 ipband-0.8.ebuild 1492
+MISC ChangeLog 333 RMD160 b8ca0a17962e67f52dbf82fefc30a38f944584fb SHA1 d55e91285168b68a520b509c081062c15d799cb0 SHA256 d70720a0f5697bc7a3a7dc0bd2704cd7a0527033e18dfa19e9a7c062c2042422
+MD5 0a1f9ca5409ae5cb7dd1f59852723964 ChangeLog 333
+RMD160 b8ca0a17962e67f52dbf82fefc30a38f944584fb ChangeLog 333
+SHA256 d70720a0f5697bc7a3a7dc0bd2704cd7a0527033e18dfa19e9a7c062c2042422 ChangeLog 333
+MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6
+MD5 f34e3c8858756da0001b12d2d3fa1af2 metadata.xml 159
+RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b metadata.xml 159
+SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 metadata.xml 159
+MD5 c2d4a07d36acbdc21d94a20ba37b8181 files/digest-ipband-0.8 220
+RMD160 60b054cd9cfe9ddd3add2ecf8639de78f26af451 files/digest-ipband-0.8 220
+SHA256 5fe712bbeca7e408f02ba69cc8c573ca91b5b099964ddb3ec66e7f38ca37f2e3 files/digest-ipband-0.8 220
diff --git a/net-analyzer/ipband/files/digest-ipband-0.8 b/net-analyzer/ipband/files/digest-ipband-0.8
new file mode 100644
index 000000000000..26d1b921558b
--- /dev/null
+++ b/net-analyzer/ipband/files/digest-ipband-0.8
@@ -0,0 +1,3 @@
+MD5 a43dc863c044e7e5665d3e16d4c49770 ipband-0.8.tgz 36378
+RMD160 4b7889ce52edcab9b8eec9e478fd4bde3c019be9 ipband-0.8.tgz 36378
+SHA256 21be87c2755d66d17eadacd4611dfe1bed7e0c0af9c71d2f26b13fc16f1a61cf ipband-0.8.tgz 36378
diff --git a/net-analyzer/ipband/files/ipband-init b/net-analyzer/ipband/files/ipband-init
new file mode 100644
index 000000000000..5a33de1346cd
--- /dev/null
+++ b/net-analyzer/ipband/files/ipband-init
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/files/ipband-init,v 1.1 2007/02/03 21:15:51 mjolnir Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ipband"
+ start-stop-daemon --start --exec /usr/bin/ipband -- -F > /dev/null
+ if [ $? -ne 0 ]; then
+ ewarn "Check settings in /etc/ipband.conf"
+ eend 1
+ else
+ eend 0
+ fi
+}
+
+stop() {
+ ebegin "Stopping ipband"
+ start-stop-daemon --stop --exec /usr/bin/ipband
+ eend $?
+}
diff --git a/net-analyzer/ipband/ipband-0.8.ebuild b/net-analyzer/ipband/ipband-0.8.ebuild
new file mode 100644
index 000000000000..38d1a02383e1
--- /dev/null
+++ b/net-analyzer/ipband/ipband-0.8.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipband/ipband-0.8.ebuild,v 1.1 2007/02/03 21:15:51 mjolnir Exp $
+
+inherit eutils
+
+DESCRIPTION="A pcap based IP traffic and bandwidth monitor with configurable reporting and alarm abilities"
+HOMEPAGE="http://ipband.sourceforge.net/"
+SRC_URI="http://ipband.sourceforge.net/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=net-libs/libpcap-0.4"
+
+
+src_unpack() {
+ unpack ${A}
+
+ # Provide a postfix MTA string in the author's ipband.conf example
+ sed -rie 's:(#mtastring.*):# Sendmail\n\1\n# Postfix\n#mtastring "/usr/sbin/sendmail -t":g' ${S}/ipband.sample.conf
+}
+
+src_compile() {
+ make || die "Compile problem"
+}
+
+src_install() {
+ doman ipband.1
+ dodoc CHANGELOG COPYING INSTALL README
+ exeinto /usr/bin ; doexe ipband
+ exeinto /etc/init.d ; newexe ${FILESDIR}/ipband-init ipband
+ insinto /etc/ ; newins ipband.sample.conf ipband.conf
+}
+
+pkg_postinst() {
+ ewarn "If you plan to use ipband as a service, you must edit"
+ ewarn "/etc/ipband.conf"
+ einfo ""
+ einfo "The following command line example will:"
+ einfo " o Listen on eth0"
+ einfo " o Group results into a summary relative to 192.168.1.0/24"
+ einfo " o Average bandwidth every 5 seconds"
+ einfo " o Report when average bandwidth has exceeded 7 kB/sec"
+ einfo " over the previous 10 seconds. The report is written to"
+ einfo " stdout but can also be emailed or stored in a file."
+ einfo ""
+ einfo "ipband eth0 -L 192.168.1.0/24 -a 5 -r 10 -b 7 -o -"
+}
diff --git a/net-analyzer/ipband/metadata.xml b/net-analyzer/ipband/metadata.xml
new file mode 100644
index 000000000000..03aa50bab7e3
--- /dev/null
+++ b/net-analyzer/ipband/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+</pkgmetadata>