Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | SUMMARY = "nmon performance monitor" |
| 2 | HOMEPAGE = "http://nmon.sf.net" |
| 3 | SECTION = "console/utils" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "GPL-3.0-only" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://Documentation.txt;md5=dbb13658cf55d687c4f2ff771a696d4a" |
| 6 | DEPENDS = "ncurses" |
| 7 | DEPENDS:append:libc-musl = " bsd-headers" |
| 8 | |
| 9 | SRC_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 | " |
| 14 | SRC_URI[lmon.sha256sum] = "2bed4d45fdfdf1d1387ec91e139c04975d5f838e3e0d53c0fe2d803a707e5fc1" |
| 15 | SRC_URI[doc.sha256sum] = "1f7f83afe62a7210be5e83cd24157adb854c14599efe0b377a7ecca933869278" |
| 16 | |
| 17 | CFLAGS += "-D JFS -D GETUSER -Wall -D LARGEMEM" |
| 18 | LDFLAGS += "-ltinfo -lncursesw -lm" |
| 19 | ASNEEDED:pn-nmon = "" |
| 20 | |
| 21 | S = "${WORKDIR}" |
| 22 | |
| 23 | do_compile() { |
| 24 | ${CC} ${CFLAGS} ${LDFLAGS} lmon${PV}.c -o nmon |
| 25 | } |
| 26 | |
| 27 | do_install() { |
| 28 | install -d ${D}${bindir} |
| 29 | install -m 0755 nmon ${D}${bindir} |
| 30 | } |