blob: d4a357cea0103faf232293bb0f1d40718fed7ab9 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "nmon performance monitor"
2HOMEPAGE = "http://nmon.sf.net"
3SECTION = "console/utils"
Andrew Geissler9aee5002022-03-30 16:27:02 +00004LICENSE = "GPL-3.0-only"
Andrew Geissler595f6302022-01-24 19:11:47 +00005LIC_FILES_CHKSUM = "file://Documentation.txt;md5=dbb13658cf55d687c4f2ff771a696d4a"
6DEPENDS = "ncurses"
7DEPENDS:append:libc-musl = " bsd-headers"
8
9SRC_URI = "${SOURCEFORGE_MIRROR}/nmon/lmon${PV}.c;name=lmon \
10 ${SOURCEFORGE_MIRROR}/nmon/Documentation.txt;name=doc \
11 file://0001-lmon16g.c-Adjust-system-headers.patch \
12 file://0001-Fix-a-lot-of-Werror-format-security-errors-with-mvpr.patch \
13 "
14SRC_URI[lmon.sha256sum] = "2bed4d45fdfdf1d1387ec91e139c04975d5f838e3e0d53c0fe2d803a707e5fc1"
15SRC_URI[doc.sha256sum] = "1f7f83afe62a7210be5e83cd24157adb854c14599efe0b377a7ecca933869278"
16
17CFLAGS += "-D JFS -D GETUSER -Wall -D LARGEMEM"
18LDFLAGS += "-ltinfo -lncursesw -lm"
19ASNEEDED:pn-nmon = ""
20
21S = "${WORKDIR}"
22
23do_compile() {
24 ${CC} ${CFLAGS} ${LDFLAGS} lmon${PV}.c -o nmon
25}
26
27do_install() {
28 install -d ${D}${bindir}
29 install -m 0755 nmon ${D}${bindir}
30}