summaryrefslogtreecommitdiff
path: root/net-analyzer/ipband
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/ipband')
-rw-r--r--net-analyzer/ipband/Manifest8
-rw-r--r--net-analyzer/ipband/files/ipband-0.8.1-gentoo.patch20
-rw-r--r--net-analyzer/ipband/files/ipband-0.8.1-postfix.patch13
-rw-r--r--net-analyzer/ipband/files/ipband-init24
-rw-r--r--net-analyzer/ipband/ipband-0.8.1-r1.ebuild36
-rw-r--r--net-analyzer/ipband/metadata.xml11
6 files changed, 112 insertions, 0 deletions
diff --git a/net-analyzer/ipband/Manifest b/net-analyzer/ipband/Manifest
new file mode 100644
index 000000000000..ddf5c0e8ad61
--- /dev/null
+++ b/net-analyzer/ipband/Manifest
@@ -0,0 +1,8 @@
+AUX ipband-0.8.1-gentoo.patch 353 SHA256 13dbfc565bbd6aa41dfe4c6f54aad3773edf451ed4ae223baa1da716ef971825 SHA512 4d07dfeac19d5c7e0f82007082ef902c5b736aaf26d53dda2c66941f198e9dc0c1c1506c939eae7a491891c3b5bf988cdba37366d5b21005a66503b835fda16e WHIRLPOOL 19c44e28a552d35c5a7e9e58ebc0d25c476546c4452f85e7a4e042ac29e6bcc1978908605df9894532b6445e0a3fe1be7d8a3627d728be0a710cbc729aafe2c3
+AUX ipband-0.8.1-postfix.patch 447 SHA256 b84ba07267717d80fa03d2ebc37b2fb8c7f8e9f89ed2895c0054dadcefe47402 SHA512 9f7948e6bbaba4c7bf9c0fde4c21735a176b522a5765f8c05b4747dabdef1a80f600d2dbb95a24561346edde294f5ad8f3d60a139130149fa320f03701fee9a3 WHIRLPOOL 625ddadbf6ea454ec5eb636caec901f42be920a14e4c7cf10665c8816f8f2bfe8271f7e88fa11d8ec2355a455d642345a7d021addfaa98499b28c1e123d7c836
+AUX ipband-init 449 SHA256 eb51c9aac9d489eebbad502f8ae2898c7992df0ef55aa1dbbf1263bac98a0417 SHA512 0a95f80bbfcc26c089a196ba359812a3292e08f378e94140605d2e4d378c60528af013738268055028c40d45b769317f6f631f1af9330f983172c92180999467 WHIRLPOOL 9f72666e3a786a9dc6595e2643b57c1e13b920a3bf6962bc670c5bd40e28bccee425f145a04787d4f5eea39ede97142abac255960142fa61398f0e27b2aa918f
+DIST ipband-0.8.1.tgz 36675 SHA256 f0a5860647d5364df812f7660d28f1ee8fbd35eb27088ab0cd445963db5806ad SHA512 66347652fee7c7426620260ae615de2f4cfeedacac21d606643e4ae8da204cc81780bfd3f4062a16a9172a78a4a7799fc97e0141750ed26b0e21c8ac2eab3c4f WHIRLPOOL 85239172494d3210bf690c3fbef9b2f867661e75f727cd4804c3c3ea1a6b3ea52fac6194e45c7f5a0c7ec0fe2011cfbeeb2f0293f47228c678707a3c5d971527
+EBUILD ipband-0.8.1-r1.ebuild 735 SHA256 d1517c093a51b2505186157b3e7627f1b70cec5dfa4bf78b89cff93aa5602ced SHA512 6439330ff316aea465e36cc46aaa7b975fe1d80be4c48cab259b907f2cf442338b3f7507b4d08b3cbf045b6c9f148918719ada77edbc9d8d898dcf1944c19e55 WHIRLPOOL 92fa508272c74127726c7b6b4e4ad47e26a2b3eb04ef8ea8126c7a7be1c784ffbeccc8d2ac1e08b4f84e544f4482610b6228fc02987f08ed65878203645b1788
+MISC ChangeLog 3199 SHA256 bc94a49f4cd3ebbde58b44d8519c520899f54d86da369c7b1a7a52699ee591d7 SHA512 8067af74f0dfb9f8b7fa2d5d3a9ac3161dc3b723f50a9b75cc5e9d61209627be6aff12d416e3784d698c80a70d6af53537d7fb548d29f28092f631d2c45b78c6 WHIRLPOOL a75a16ca19fef4bd1a64a7193abd0e58ab2e6540ec787896332aee04fe6100bc0cd80e137b3e3bd271636b5d884a93d5b3b61c0cb137c2d24d178002ce467b54
+MISC ChangeLog-2015 1758 SHA256 730693d6b6ecdad40c243e99dd42e5019a99c98cab01828f84d142696b555c28 SHA512 cdf5b04d81944c509257a75497e1151301130e812d671e2f3ba9fef52d6ced63ceda0f84236cbcdfde3e05535056b1c5f8a5dc4b9cfbcf12e55185da15f9d86e WHIRLPOOL 7f5b67fde2c0dc4ae77e79cd42a8819afb8bdad6ed74d4c11846434120eeef7f58b37a3e1607dcb1a42ba8f2497064766bdbf69be4eb61b379010385560c98f8
+MISC metadata.xml 356 SHA256 b0843bde0bc4c7d90061d446c08736af73f535096b63786dc5235c535bd3599a SHA512 6c8c90ab34232d8be24772a9dca38941823d65270cff167a9ac3eff89c00d447e881fa2dade1201dccece369a7c6e52fb265ff15e33799c8fccfe3adf2c56399 WHIRLPOOL a5a36032419cde7ae9c21a6cacc9ff318a6b1a413a7ce18866ca071b94b768b4295640be1071f737e2990ce5a7ade17a1ba6245e3b8d6f7bf202460103551f09
diff --git a/net-analyzer/ipband/files/ipband-0.8.1-gentoo.patch b/net-analyzer/ipband/files/ipband-0.8.1-gentoo.patch
new file mode 100644
index 000000000000..e3929da8cfb4
--- /dev/null
+++ b/net-analyzer/ipband/files/ipband-0.8.1-gentoo.patch
@@ -0,0 +1,20 @@
+--- a/Makefile
++++ b/Makefile
+@@ -12,7 +12,6 @@
+ CPPFLAGS=-I/usr/include/pcap
+ LIBS=-lpcap
+ CFLAGS := -Wall $(CFLAGS)
+-CC=gcc
+
+ ifndef PREFIX
+ PREFIX=/usr
+@@ -49,8 +48,7 @@
+ all: $(BIN)
+
+ $(BIN): $(OBJ_C)
+- $(CC) -o $(BIN) $(OBJ_C) $(LIBS) $(CFLAGS)
+- strip $(BIN)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ_C) $(LIBS)
+
+ install-strip: install
+
diff --git a/net-analyzer/ipband/files/ipband-0.8.1-postfix.patch b/net-analyzer/ipband/files/ipband-0.8.1-postfix.patch
new file mode 100644
index 000000000000..9db8313afb30
--- /dev/null
+++ b/net-analyzer/ipband/files/ipband-0.8.1-postfix.patch
@@ -0,0 +1,13 @@
+--- a/ipband.sample.conf
++++ b/ipband.sample.conf
+@@ -61,7 +61,10 @@
+ # MTA string. Default is "/usr/sbin/sendmail -t -ba". Change it to
+ # whatever runs MTA of your choice. Note that the stringis tokenized and
+ # passed to exec(), so that shell's metacharacters are not interpreted.
++# Sendmail
+ #mtastring "/usr/sbin/sendmail -t -ba"
++# Postfix
++#mtastring "/usr/sbin/sendmail -t"
+
+ # Default number of subnet mask bits.
+ #maskbits 24
diff --git a/net-analyzer/ipband/files/ipband-init b/net-analyzer/ipband/files/ipband-init
new file mode 100644
index 000000000000..aa3474129eb5
--- /dev/null
+++ b/net-analyzer/ipband/files/ipband-init
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.1-r1.ebuild b/net-analyzer/ipband/ipband-0.8.1-r1.ebuild
new file mode 100644
index 000000000000..1e0feff597c1
--- /dev/null
+++ b/net-analyzer/ipband/ipband-0.8.1-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+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="~amd64 x86"
+
+DEPEND=">=net-libs/libpcap-0.4"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-postfix.patch
+
+ tc-export CC
+}
+
+src_install() {
+ dobin ipband
+ doman ipband.8
+ dodoc CHANGELOG README
+
+ newinitd "${FILESDIR}"/ipband-init ipband
+
+ insinto /etc/
+ newins ipband.sample.conf ipband.conf
+}
diff --git a/net-analyzer/ipband/metadata.xml b/net-analyzer/ipband/metadata.xml
new file mode 100644
index 000000000000..1a6bed5f2dea
--- /dev/null
+++ b/net-analyzer/ipband/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">ipband</remote-id>
+ </upstream>
+</pkgmetadata>