Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | DESCRIPTION = "IPTraf is a console-based network statistics utility for Linux. \ |
| 2 | It gathers a variety of figures such as TCP connection packet and byte counts, \ |
| 3 | interface statistics and activity indicators, TCP/UDP traffic breakdowns, \ |
| 4 | and LAN station packet and byte counts." |
| 5 | |
| 6 | HOMEPAGE = "http://iptraf.seul.org" |
| 7 | |
| 8 | LICENSE = "GPLv2" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=dc0bdc29df738baf327368b1bbb15a45" |
| 10 | |
| 11 | DEPENDS = "ncurses" |
| 12 | |
| 13 | SRC_URI = " \ |
| 14 | ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz \ |
| 15 | file://0001-src-Fix-error-in-cross-compile.patch" |
| 16 | SRC_URI[md5sum] = "377371c28ee3c21a76f7024920649ea8" |
| 17 | SRC_URI[sha256sum] = "9ee433d95573d612539da4b452e6cdcbca6ab6674a88bfbf6eaf12d4902b5163" |
| 18 | RDEPENDS_${PN} = "ncurses" |
| 19 | |
| 20 | EXTRA_OEMAKE = "-e MAKEFLAGS=" |
| 21 | |
| 22 | do_compile() { |
| 23 | oe_runmake -C src all |
| 24 | } |
| 25 | |
| 26 | do_install() { |
| 27 | install -d ${D}${bindir} |
| 28 | oe_runmake -C src install \ |
| 29 | TARGET=${D}${bindir} \ |
| 30 | WORKDIR=${D}${localstatedir}/local/iptraf \ |
| 31 | LOGDIR=${D}${localstatedir}/log/iptraf \ |
| 32 | LOCKDIR=${D}${localstatedir}/run/iptraf |
| 33 | } |
| 34 | |
| 35 | FILES_${PN} += "${bindir} ${localstatedir} /run" |