From 7c1f6113d9c4166f842fbaf95360c9bc8f7eaa10 Mon Sep 17 00:00:00 2001 From: Li xin Date: Tue, 18 Nov 2014 13:52:49 +0800 Subject: nicstat: add new recipe nicstat is a tool that prints out network statistics for all network interface cards (NICs), including packets, kilobytes per second, average packet sizes and more. Signed-off-by: Li Xin Signed-off-by: Martin Jansa --- meta-oe/recipes-extended/nicstat/nicstat_1.95.bb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-oe/recipes-extended/nicstat/nicstat_1.95.bb (limited to 'meta-oe/recipes-extended/nicstat') diff --git a/meta-oe/recipes-extended/nicstat/nicstat_1.95.bb b/meta-oe/recipes-extended/nicstat/nicstat_1.95.bb new file mode 100644 index 000000000..5126a31cd --- /dev/null +++ b/meta-oe/recipes-extended/nicstat/nicstat_1.95.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "nicstat is a Solaris and Linux command-line that prints out network \ +statistics for all network interface cards (NICs), including packets, kilobytes \ +per second, average packet sizes and more." +HOMEPAGE = "http://nicstat.sourceforge.net" +LICENSE = "Artistic-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4a94da2a1f918b217ef5156634fc9e0" + +SRC_URI = "http://softlayer-sng.dl.sourceforge.net/project/${BPN}/${BP}.tar.gz" +SRC_URI[md5sum] = "9a0b87bbc670c1e738e5b40c7afd184d" +SRC_URI[sha256sum] = "c4cc33f8838f4523f27c3d7584eedbe59f4c587f0821612f5ac2201adc18b367" + +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} -o nicstat nicstat.c +} +do_install() { + install -d ${D}/${bindir}/ + install -d ${D}/${mandir}/ + install -m 0755 ${S}/nicstat ${D}${bindir}/ + install -m 0644 ${S}/nicstat.1 ${D}/${mandir}/ +} -- cgit v1.2.3-54-g00ecf