mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
14
package/memstat/0001-PATH_MAX.patch
Normal file
14
package/memstat/0001-PATH_MAX.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
Add missing #include for PATH_MAX
|
||||
|
||||
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
|
||||
|
||||
--- memstat-0.8.org/memstat.c 2009-06-08 14:38:05.000000000 +0200
|
||||
+++ memstat-0.8/memstat.c 2014-09-12 03:55:43.096035374 +0200
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
+#include <limits.h>
|
||||
|
||||
/* blacklist devices that just map physical memory */
|
||||
char *blacklist[] = { "/dev/mem",
|
||||
9
package/memstat/Config.in
Normal file
9
package/memstat/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_MEMSTAT
|
||||
bool "memstat"
|
||||
help
|
||||
Memstat lists all the processes, executables, and shared
|
||||
libraries that are using up virtual memory. It's helpful to
|
||||
see how the shared memory is used and which 'old' libs are
|
||||
loaded.
|
||||
|
||||
http://sourceforge.net/projects/memstattool
|
||||
2
package/memstat/memstat.hash
Normal file
2
package/memstat/memstat.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://sourceforge.net/projects/memstattool/files/
|
||||
sha1 26071dbc30a2796c0503c7d8060a548ca36f8df9 memstat_1.0.tar.gz
|
||||
24
package/memstat/memstat.mk
Normal file
24
package/memstat/memstat.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# memstat
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MEMSTAT_VERSION = 1.0
|
||||
MEMSTAT_SITE = http://downloads.sourceforge.net/project/memstattool
|
||||
MEMSTAT_SOURCE = memstat_$(MEMSTAT_VERSION).tar.gz
|
||||
MEMSTAT_LICENSE = GPL
|
||||
MEMSTAT_LICENSE_FILES = debian/copyright
|
||||
|
||||
define MEMSTAT_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" CFLAGS="$(TARGET_CFLAGS)" \
|
||||
-C $(@D) memstat
|
||||
endef
|
||||
|
||||
define MEMSTAT_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D $(@D)/memstat.conf -m 0644 \
|
||||
$(TARGET_DIR)/etc/memstat.conf
|
||||
$(INSTALL) -D $(@D)/memstat $(TARGET_DIR)/usr/bin/memstat
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user