Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | SUMMARY = "nmon performance monitor" |
| 2 | HOMEPAGE = "http://nmon.sf.net" |
| 3 | SECTION = "console/utils" |
| 4 | LICENSE = "GPLv3" |
| 5 | LIC_FILES_CHKSUM = "file://${WORKDIR}/Documentation.txt;md5=dbb13658cf55d687c4f2ff771a696d4a" |
| 6 | DEPENDS = "ncurses" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 7 | DEPENDS:append:libc-musl = " bsd-headers" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 | " |
| 13 | SRC_URI[lmon.md5sum] = "246ccfc74d5af55d992601fc4d3d4a72" |
| 14 | SRC_URI[lmon.sha256sum] = "da82dd693b503b062854dfe7dbb5d36b347872ab44a4aa05b97e9d577747f688" |
| 15 | SRC_URI[doc.md5sum] = "dbb13658cf55d687c4f2ff771a696d4a" |
| 16 | SRC_URI[doc.sha256sum] = "1f7f83afe62a7210be5e83cd24157adb854c14599efe0b377a7ecca933869278" |
| 17 | |
| 18 | CFLAGS += "-D JFS -D GETUSER -Wall -D LARGEMEM" |
| 19 | LDFLAGS += "-ltinfo -lncursesw -lm" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | ASNEEDED:pn-nmon = "" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}" |
| 23 | |
| 24 | do_compile() { |
| 25 | ${CC} ${CFLAGS} ${LDFLAGS} lmon${PV}.c -o nmon |
| 26 | } |
| 27 | |
| 28 | do_install() { |
| 29 | install -d ${D}${bindir} |
| 30 | install -m 0755 nmon ${D}${bindir} |
| 31 | } |