aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/iptraf/iptraf_3.0.0.bb
blob: e7a406fc5a63e35edb9ee1e765de17a1ccd409ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DESCRIPTION = "IPTraf is a console-based network statistics utility for Linux. \
It gathers a variety of figures such as TCP connection packet and byte counts, \
interface statistics and activity indicators, TCP/UDP traffic breakdowns, \
and LAN station packet and byte counts."

HOMEPAGE = "http://iptraf.seul.org"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dc0bdc29df738baf327368b1bbb15a45"

DEPENDS = "ncurses"

SRC_URI = " \
    ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz \
    file://0001-src-Fix-error-in-cross-compile.patch"
SRC_URI[md5sum] = "377371c28ee3c21a76f7024920649ea8"
SRC_URI[sha256sum] = "9ee433d95573d612539da4b452e6cdcbca6ab6674a88bfbf6eaf12d4902b5163"
RDEPENDS_${PN} = "ncurses"

EXTRA_OEMAKE = "-e MAKEFLAGS="

do_compile() {
    oe_runmake -C src all
}

do_install_append() {
    rm -r ${D}/${localstatedir}/run
}

do_install() {
    install -d ${D}${bindir}
    oe_runmake -C src install \
        TARGET=${D}${bindir} \
        WORKDIR=${D}${localstatedir}/local/iptraf \
        LOGDIR=${D}${localstatedir}/log/iptraf \
        LOCKDIR=${D}${localstatedir}/run/iptraf
}

FILES_${PN} += "${bindir} ${localstatedir} /run"