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