diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch | 12 | ||||
-rw-r--r-- | package/busybox/busybox.mk | 2 | ||||
-rw-r--r-- | package/iostat/Config.in | 2 | ||||
-rw-r--r-- | package/iostat/iostat-cpunum.patch | 27 | ||||
-rw-r--r-- | package/iostat/iostat.mk | 51 | ||||
-rw-r--r-- | package/iostat/iostat.patch | 11 |
6 files changed, 59 insertions, 46 deletions
diff --git a/package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch b/package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch new file mode 100644 index 000000000..557e337b1 --- /dev/null +++ b/package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch @@ -0,0 +1,12 @@ +diff -urpN busybox-1.17.1/debianutils/mktemp.c busybox-1.17.1-mktemp/debianutils/mktemp.c +--- busybox-1.17.1/debianutils/mktemp.c 2010-07-25 00:12:56.000000000 +0200 ++++ busybox-1.17.1-mktemp/debianutils/mktemp.c 2010-07-27 08:21:26.000000000 +0200 +@@ -50,7 +50,7 @@ int mktemp_main(int argc UNUSED_PARAM, c + opts = getopt32(argv, "dqtp:", &path); + + chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX"); +- if (chp[0] != '/' || (opts & 8)) ++ if (!strchr(chp, '/') || (opts & 8)) + chp = concat_path_file(path, chp); + + if (opts & 1) { /* -d */ diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 086b56371..b7f474091 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -29,7 +29,7 @@ endef endif # id applet breaks on >=1.13.0 with old uclibc unless the bb pwd routines are used -ifeq ($(BR2_BUSYBOX_VERSION_1_13_X)$(BR2_BUSYBOX_VERSION_1_14_X)$(BR2_UCLIBC_VERSION_0_9_28_3)$(BR2_UCLIBC_VERSION_0_9_29),yy) +ifeq ($(BR2_BUSYBOX_VERSION_1_13_X)$(BR2_BUSYBOX_VERSION_1_14_X)$(BR2_UCLIBC_VERSION_0_9_29),yy) define BUSYBOX_SET_BB_PWD if grep -q 'CONFIG_ID=y' $(BUSYBOX_BUILD_CONFIG); \ then \ diff --git a/package/iostat/Config.in b/package/iostat/Config.in index 8e99df21e..1aa146458 100644 --- a/package/iostat/Config.in +++ b/package/iostat/Config.in @@ -3,4 +3,4 @@ config BR2_PACKAGE_IOSTAT help An I/O performance monitoring utility. - http://linux.inet.hr/ + http://www.linuxinsight.com/iostat_utility.html diff --git a/package/iostat/iostat-cpunum.patch b/package/iostat/iostat-cpunum.patch new file mode 100644 index 000000000..0e75dbf71 --- /dev/null +++ b/package/iostat/iostat-cpunum.patch @@ -0,0 +1,27 @@ +From bf646965f75cdad77a45fa3b0046e093b202b2ce Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <gustavo@zacarias.com.ar> +Date: Thu, 22 Jul 2010 12:42:10 -0300 +Subject: [PATCH] Make cpu number counter more reliable + + +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> +--- + iostat.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/iostat.c b/iostat.c +index 13e2af7..5d74085 100644 +--- a/iostat.c ++++ b/iostat.c +@@ -140,7 +140,7 @@ void get_number_of_cpus() + + handle_error("Can't open /proc/cpuinfo", !ncpufp); + while (fgets(buffer, sizeof(buffer), ncpufp)) { +- if (!strncmp(buffer, "processor\t:", 11)) ++ if (!strncasecmp(buffer, "processor\t", 10)) + ncpu++; + } + fclose(ncpufp); +-- +1.7.1 + diff --git a/package/iostat/iostat.mk b/package/iostat/iostat.mk index 651f397e5..de7e1ff74 100644 --- a/package/iostat/iostat.mk +++ b/package/iostat/iostat.mk @@ -3,44 +3,29 @@ # iostat # ############################################################# -IOSTAT_VERSION:=2.2 -IOSTAT_SOURCE:=iostat-$(IOSTAT_VERSION).tar.gz -IOSTAT_SITE:=http://linux.inet.hr/files -IOSTAT_DIR:=$(BUILD_DIR)/iostat-$(IOSTAT_VERSION) -IOSTAT_BINARY:=iostat -IOSTAT_TARGET_BINARY:=usr/bin/iostat -$(DL_DIR)/$(IOSTAT_SOURCE): - $(call DOWNLOAD,$(IOSTAT_SITE),$(IOSTAT_SOURCE)) +IOSTAT_VERSION = 2.2 +IOSTAT_SITE = http://www.linuxinsight.com/files iostat-source: $(DL_DIR)/$(IOSTAT_SOURCE) -$(IOSTAT_DIR)/.unpacked: $(DL_DIR)/$(IOSTAT_SOURCE) - $(ZCAT) $(DL_DIR)/$(IOSTAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(IOSTAT_DIR) package/iostat/ iostat\*.patch - touch $(IOSTAT_DIR)/.unpacked +define IOSTAT_BUILD_CMDS + $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" +endef -$(IOSTAT_DIR)/$(IOSTAT_BINARY): $(IOSTAT_DIR)/.unpacked - $(MAKE) CC="$(TARGET_CC)" -C $(IOSTAT_DIR) - $(STRIPCMD) $(IOSTAT_DIR)/$(IOSTAT_BINARY) +define IOSTAT_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef -$(TARGET_DIR)/$(IOSTAT_TARGET_BINARY): $(IOSTAT_DIR)/$(IOSTAT_BINARY) - $(INSTALL) -m 0755 -D $(IOSTAT_DIR)/$(IOSTAT_BINARY) $(TARGET_DIR)/$(IOSTAT_TARGET_BINARY) +define IOSTAT_INSTALL_TARGET_CMDS + $(INSTALL) -D $(IOSTAT_DIR)/iostat $(TARGET_DIR)/usr/bin/iostat + $(INSTALL) -D $(IOSTAT_DIR)/iostat.8 \ + $(TARGET_DIR)/usr/share/man/man8/iostat.8 +endef -iostat: $(TARGET_DIR)/$(IOSTAT_TARGET_BINARY) +define IOSTAT_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/usr/bin/iostat + rm -f $(TARGET_DIR)/usr/share/man/man8/iostat.8 +endef -iostat-clean: - rm -f $(TARGET_DIR)/$(IOSTAT_TARGET_BINARY) - -$(MAKE) -C $(IOSTAT_DIR) clean - -iostat-dirclean: - rm -rf $(IOSTAT_DIR) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_IOSTAT),y) -TARGETS+=iostat -endif +$(eval $(call GENTARGETS,package,iostat)) diff --git a/package/iostat/iostat.patch b/package/iostat/iostat.patch deleted file mode 100644 index acf2a52e4..000000000 --- a/package/iostat/iostat.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- iostat-2.2/iostat.c.orig 2005-02-14 12:44:03.000000000 -0800 -+++ iostat-2.2/iostat.c 2005-03-10 15:24:09.000000000 -0800 -@@ -140,7 +140,7 @@ - - handle_error("Can't open /proc/cpuinfo", !ncpufp); - while (fgets(buffer, sizeof(buffer), ncpufp)) { -- if (!strncmp(buffer, "processor\t:", 11)) -+ if (!strncmp(buffer, "processor\t", 10)) - ncpu++; - } - fclose(ncpufp); |