summaryrefslogtreecommitdiff
path: root/net-analyzer/bwmon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/bwmon
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/bwmon')
-rw-r--r--net-analyzer/bwmon/Manifest9
-rw-r--r--net-analyzer/bwmon/bwmon-1.3-r2.ebuild36
-rw-r--r--net-analyzer/bwmon/files/bwmon-1.3-build.patch22
-rw-r--r--net-analyzer/bwmon/files/bwmon-1.3-overflow.patch20
-rw-r--r--net-analyzer/bwmon/files/bwmon-1.3-tinfo.patch11
-rw-r--r--net-analyzer/bwmon/files/bwmon-1.3-typo-fix.patch11
-rw-r--r--net-analyzer/bwmon/metadata.xml12
7 files changed, 121 insertions, 0 deletions
diff --git a/net-analyzer/bwmon/Manifest b/net-analyzer/bwmon/Manifest
new file mode 100644
index 000000000000..5d47c0a9dc3f
--- /dev/null
+++ b/net-analyzer/bwmon/Manifest
@@ -0,0 +1,9 @@
+AUX bwmon-1.3-build.patch 490 SHA256 82a726a34c54e2c1e08a39a0b8ed6a6e5d54dfeae872a097dce35b3112d6fba7 SHA512 1d5901ff95563acfeb87a0da4863fc2878bb9d3112a4ce698b0e24683f630d8810d75500bb0edd4adea37c3d9ff9efd3bde6d3d91b7f861a4108fd1866aca6a1 WHIRLPOOL 3bc0ffc739ccc8ca91df0b80a25b2750bed84fa89cb915b13451d65971a9c0f5776f8fc361490399937e99068e81ccf508c63b5be96994a2896b7333adf6b59d
+AUX bwmon-1.3-overflow.patch 543 SHA256 25f566d99c247998ee040e11561bfdd24799ee43f4aee05cc49ec71136a3c911 SHA512 c8d4bb28606161d0f3e9bd151bcfcb63edcb3d0e0d44e3328f22a2295c28c9257e132b173b724b7e7cd0fdec9bb31e57219cdcddcd4f525b13ca736bbf7cb42e WHIRLPOOL 3fe55d70da3d34e24295ed9fee6ff7573c958f27f802c7d9ad626d0a4f3558dd10d1e870f263aed98bb73fda30cc84bcd2b203dd7e4d6886b3ea139f90e3b85f
+AUX bwmon-1.3-tinfo.patch 242 SHA256 6321ed2fbbd54096028b9017096f668e912115d293eec1516239640cdbc9ab87 SHA512 710f9cb4ff61b84f717603f5b814cfaed90af95c67cbc051eb9535084cb02c26711e3dd9f539165640ffb7bc770a15d77144de9c5ccb1235a6b11c3619b3d0ec WHIRLPOOL 5ef7bb42469f02e09c3d3ececd7e3fad796d688a5e3ae12ccf350299a7bb3ee52bd9b522dd26370de12a1d74c3e8add536403e66732a9b54a46ab3ffd7ba94eb
+AUX bwmon-1.3-typo-fix.patch 534 SHA256 1251e0907880415b9d404b9105281d755f0fe369d86154fa61b601e3253f9772 SHA512 4c0a23a7b49a86e35239e1b7e0273d3ffafa4ea1a43918557ed26e4680eb2563aa1635670868ab7f39157118d140844a0706828d9f09f938d21e90f3fa5d6854 WHIRLPOOL ea9494e3d190876e0476c50221e4af1bc3cea53d10406d0d10785e3fe5c69f44f2b601b9ed7e6613a2de2617be40dd5cdd26fdada092dc1e20787966d215dda0
+DIST bwmon-1.3.tar.gz 5668 SHA256 624381208d0faae6c123bc6198a59d6c4316cd4fffb1ba5aca206374f5a42df6 SHA512 6552ba03f0cfe7d2adebe7ae49379cc109b4f8da56dafec1264ac39c114809c7cde161f6321a67516b22b04abbad5d1ab3b4efb313479ad131fb20638c6871e8 WHIRLPOOL 1b05208fdae45881b3175f5f84fe5d816c1d0db182ccb34be1b61e3f2e14bde5cb627dda0ded10cb1f21490277eb6d5c3cd3456001854e0dd418cca6d63cb8d1
+EBUILD bwmon-1.3-r2.ebuild 733 SHA256 8e22e3ac749ced3a576a3f7c0948e1e09ea97649a8293483f2d3bdf96494210d SHA512 8199fb1a3541bca40d1173e2a5b44fda7f810199c4037899149c5b4207578799104996e50c79a1826f4f49428345d22d7c715ecd5d83f86cf2f3a004ebf738cf WHIRLPOOL 6e73d2b51108d0b673de2c79bc85ee14b3ebb907dabcd35de2113d101442e69a934105b2664fbec8d630fede7ee6d5f703a38a07017a45968968121f486a2762
+MISC ChangeLog 2557 SHA256 7ae88100efeaf94be4dac4ef99de0073bd84200abc1710064f38b42a9a12d1f0 SHA512 9251f264f101040093c9702396027a122843b11b86997515196cbad7806f66078c473711d8148b394650776bc6827cb6a9b7c92bfba9e9d8dac51ce3b6700fc0 WHIRLPOOL 6cf688d4c64cf6519c25f06cd55f72ee8eb7097c9813e16f48cf119357bf2dc21669e4ac2a33ec561e95f59451437512d51d9b3281edf54e28b03e3fc351d103
+MISC ChangeLog-2015 3746 SHA256 a9593daf487fc3581ca1a57bb4caedaf8760491bd7298f76f0bf284a41a0cea1 SHA512 d96f1a1e261607df1d494b3dc2c947a803e4a25a89334452c8e516f412717678d5fe60a0c7f4ede7629dc531f4229f9a3911debc44b6d5822c5d1480a4bc9ae9 WHIRLPOOL 141c9ece279212764c9db62731697d7de9cfcc322a11bec525a21eb3491740487822be107a150f79cb352024ddad760207d6bcaf0462299c65faea6a9f8f0df1
+MISC metadata.xml 424 SHA256 81b7a305f5253628794f1cd2114052a37e323a57f39a356014614ce207970692 SHA512 56c90d7c0ab1908d42982a62c42ae80a60f825adca80025fb87ae6cd21248501809b0cd639f47ef8edcf33abdffaf17cc0f8ede5a33b7eaee5bbb93c2f19885d WHIRLPOOL e029736ecd97bf1d20af12a50629908cd33ebe97378488eeceea18644410dfe2cba3ecb5e8617421ff89aa97b6ed4b016330a5cf11abe56bc7bad7d3dcf710ac
diff --git a/net-analyzer/bwmon/bwmon-1.3-r2.ebuild b/net-analyzer/bwmon/bwmon-1.3-r2.ebuild
new file mode 100644
index 000000000000..3b4912656104
--- /dev/null
+++ b/net-analyzer/bwmon/bwmon-1.3-r2.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="Simple ncurses bandwidth monitor"
+HOMEPAGE="http://bwmon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+SLOT="0"
+LICENSE="GPL-2 public-domain"
+KEYWORDS="amd64 hppa ppc sparc x86"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-typo-fix.patch \
+ "${FILESDIR}"/${P}-overflow.patch \
+ "${FILESDIR}"/${P}-tinfo.patch
+}
+
+src_compile() {
+ emake -C src CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_install () {
+ dobin ${PN}
+ dodoc README
+}
diff --git a/net-analyzer/bwmon/files/bwmon-1.3-build.patch b/net-analyzer/bwmon/files/bwmon-1.3-build.patch
new file mode 100644
index 000000000000..6d4eadf15551
--- /dev/null
+++ b/net-analyzer/bwmon/files/bwmon-1.3-build.patch
@@ -0,0 +1,22 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -10,8 +10,8 @@ CC = gcc
+ RM = /bin/rm
+ INSTALL = install
+
+-CFLAGS = -I../include -Wall -D__THREADS
+-LDFLAGS = -lpthread -lncurses
++CFLAGS += -I../include -Wall -D__THREADS
++LIBS = -lpthread -lncurses
+
+ SRC = bwmon.c
+ OBJS = $(SRC:.c=.o)
+@@ -19,7 +19,7 @@ OBJS = $(SRC:.c=.o)
+ all: bwmon
+
+ bwmon: $(OBJS)
+- $(CC) $(LDFLAGS) -o ../$@ $(OBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o ../$@ $(OBJS) $(LIBS)
+
+ clean:
+ @for i in $(OBJS) *~ core bwmon; do \
diff --git a/net-analyzer/bwmon/files/bwmon-1.3-overflow.patch b/net-analyzer/bwmon/files/bwmon-1.3-overflow.patch
new file mode 100644
index 000000000000..052d1d766351
--- /dev/null
+++ b/net-analyzer/bwmon/files/bwmon-1.3-overflow.patch
@@ -0,0 +1,20 @@
+--- a/src/bwmon.c
++++ b/src/bwmon.c
+@@ -408,7 +408,7 @@ bool_t
+ print_uptime(float * uptime)
+ {
+ unsigned int tmp = 0, hour = 0, min = 0, sec = 0;
+- char hostname[30];
++ char hostname[50];
+
+ tmp = (uint)(*uptime);
+ sec = tmp % 60;
+@@ -418,7 +418,7 @@ print_uptime(float * uptime)
+ hour = tmp % 24;
+ tmp = (tmp - hour) / 24;
+
+- if (gethostname(hostname, strlen(hostname)) != 0)
++ if (gethostname(hostname, sizeof(hostname)) != 0)
+ strcpy(hostname, "System");
+
+ printw("\n%s uptime: %u day%c %u hour%c %u minutes and %u seconds\n",
diff --git a/net-analyzer/bwmon/files/bwmon-1.3-tinfo.patch b/net-analyzer/bwmon/files/bwmon-1.3-tinfo.patch
new file mode 100644
index 000000000000..df0bb06cb968
--- /dev/null
+++ b/net-analyzer/bwmon/files/bwmon-1.3-tinfo.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -11,7 +11,7 @@
+ INSTALL = install
+
+ CFLAGS += -I../include -Wall -D__THREADS
+-LIBS = -lpthread -lncurses
++LIBS = -lpthread $(shell ${PKG_CONFIG} --libs ncurses)
+
+ SRC = bwmon.c
+ OBJS = $(SRC:.c=.o)
diff --git a/net-analyzer/bwmon/files/bwmon-1.3-typo-fix.patch b/net-analyzer/bwmon/files/bwmon-1.3-typo-fix.patch
new file mode 100644
index 000000000000..36f6af8e5ee6
--- /dev/null
+++ b/net-analyzer/bwmon/files/bwmon-1.3-typo-fix.patch
@@ -0,0 +1,11 @@
+--- a/src/bwmon.c
++++ b/src/bwmon.c
+@@ -36,7 +36,7 @@
+ "by Kimmo Nupponen (kimmoon@users.sourceforge.net)\n"
+ "$Date: 2014/07/10 19:51:24 $\n\n"
+ "usage: %s [-b] [-h] [-a] [-m] [-u seconds]\n"
+- "\t-a Print bandwidth utiliasation in Kbytes rather than Kbits. The default\n"
++ "\t-b Print bandwidth utilisation in KBytes rather than Kbits. The default\n"
+ "\t is to use Kbits\n"
+ "\t-a Print also average bandwidth since last boot per interface\n"
+ "\t-m Print maximum bandwidth since launch of this utility\n"
diff --git a/net-analyzer/bwmon/metadata.xml b/net-analyzer/bwmon/metadata.xml
new file mode 100644
index 000000000000..5d308982f242
--- /dev/null
+++ b/net-analyzer/bwmon/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+ <longdescription>Simple ncurses bandwidth monitor</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">bwmon</remote-id>
+ </upstream>
+</pkgmetadata>