nmon: new package
[Peter: add _LICENSE_FILES, pass TARGET_CFLAGS/LDFLAGS, indent] Signed-off-by: David Bachelart <david.bachelart@bbright.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
7841dd2dc2
commit
ea0ac289fc
@ -99,6 +99,7 @@ menu "Debugging, profiling and benchmark"
|
||||
source "package/memstat/Config.in"
|
||||
source "package/netperf/Config.in"
|
||||
source "package/netsniff-ng/Config.in"
|
||||
source "package/nmon/Config.in"
|
||||
source "package/oprofile/Config.in"
|
||||
source "package/pax-utils/Config.in"
|
||||
source "package/pv/Config.in"
|
||||
|
7
package/nmon/Config.in
Normal file
7
package/nmon/Config.in
Normal file
@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_NMON
|
||||
bool "nmon"
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
Nmon is short for Nigel's performance Monitor for Linux
|
||||
|
||||
http://nmon.sourceforge.net/pmwiki.php
|
5
package/nmon/nmon.hash
Normal file
5
package/nmon/nmon.hash
Normal file
@ -0,0 +1,5 @@
|
||||
# From https://sourceforge.net/projects/nmon/files/
|
||||
md5 a72e3eb737c230cd309329330a5545bd lmon16f.c
|
||||
sha1 b69fdddf86ffe674e0133426fa09935ed678ab7d lmon16f.c
|
||||
# Locally computed
|
||||
sha256 280a371e17488f8a2c5e0c64273155789be6fa5b937ab5c465488e591bdc5cd9 lmon16f.c
|
28
package/nmon/nmon.mk
Normal file
28
package/nmon/nmon.mk
Normal file
@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# nmon
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NMON_VERSION = 16f
|
||||
NMON_SITE = http://sourceforge.net/projects/nmon/files
|
||||
NMON_SOURCE = lmon$(NMON_VERSION).c
|
||||
NMON_LICENSE = GPLv3+
|
||||
NMON_LICENSE_FILES = $(NMON_SOURCE)
|
||||
NMON_DEPENDENCIES = ncurses
|
||||
NMON_CFLAGS = $(TARGET_CFLAGS) -D JFS -D GETUSER -D LARGEMEM -D DEBIAN
|
||||
|
||||
define NMON_EXTRACT_CMDS
|
||||
cp $(DL_DIR)/$(NMON_SOURCE) $(@D)
|
||||
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))
|
Loading…
Reference in New Issue
Block a user