2017-01-02 16:45:23 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nmon
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-13 15:57:44 +02:00
|
|
|
NMON_VERSION = 16g
|
|
|
|
NMON_SITE = https://sourceforge.net/projects/nmon/files
|
2017-01-02 16:45:23 +01:00
|
|
|
NMON_SOURCE = lmon$(NMON_VERSION).c
|
2017-03-30 15:43:33 +02:00
|
|
|
NMON_LICENSE = GPL-3.0+
|
2017-01-02 16:45:23 +01:00
|
|
|
NMON_LICENSE_FILES = $(NMON_SOURCE)
|
|
|
|
NMON_DEPENDENCIES = ncurses
|
|
|
|
NMON_CFLAGS = $(TARGET_CFLAGS) -D JFS -D GETUSER -D LARGEMEM -D DEBIAN
|
|
|
|
|
|
|
|
define NMON_EXTRACT_CMDS
|
2018-04-02 15:09:24 +02:00
|
|
|
cp $(NMON_DL_DIR)/$(NMON_SOURCE) $(@D)
|
2017-01-02 16:45:23 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define NMON_BUILD_CMDS
|
|
|
|
$(TARGET_CC) $(NMON_CFLAGS) $(TARGET_LDFLAGS) -o $(@D)/nmon \
|
|
|
|
$(@D)/$(NMON_SOURCE) -lncurses -lm
|
|
|
|
endef
|
|
|
|
|
|
|
|
define NMON_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/nmon $(TARGET_DIR)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|