diff --git a/packages/sysutils/busybox/patches/busybox-1.17.0-acpid.diff b/packages/sysutils/busybox/patches/busybox-1.17.0-acpid.diff new file mode 100644 index 0000000000..664b87e310 --- /dev/null +++ b/packages/sysutils/busybox/patches/busybox-1.17.0-acpid.diff @@ -0,0 +1,30 @@ +diff -urpN busybox-1.17.0/util-linux/acpid.c busybox-1.17.0-acpid/util-linux/acpid.c +--- busybox-1.17.0/util-linux/acpid.c 2010-06-24 04:40:43.000000000 +0200 ++++ busybox-1.17.0-acpid/util-linux/acpid.c 2010-07-12 06:24:00.000000000 +0200 +@@ -9,9 +9,25 @@ + #include "libbb.h" + + #include ++#ifndef EV_SW ++# define EV_SW 0x05 ++#endif ++#ifndef EV_KEY ++# define EV_KEY 0x01 ++#endif ++#ifndef SW_LID ++# define SW_LID 0x00 ++#endif + #ifndef SW_RFKILL_ALL +-# define SW_RFKILL_ALL 3 ++# define SW_RFKILL_ALL 0x03 + #endif ++#ifndef KEY_POWER ++# define KEY_POWER 116 /* SC System Power Down */ ++#endif ++#ifndef KEY_SLEEP ++# define KEY_SLEEP 142 /* SC System Sleep */ ++#endif ++ + + /* + * acpid listens to ACPI events coming either in textual form diff --git a/packages/sysutils/busybox/patches/busybox-1.17.0-mktemp.diff b/packages/sysutils/busybox/patches/busybox-1.17.0-mktemp.diff new file mode 100644 index 0000000000..023a7cfc2a --- /dev/null +++ b/packages/sysutils/busybox/patches/busybox-1.17.0-mktemp.diff @@ -0,0 +1,13 @@ +diff -urpN busybox-1.17.0/debianutils/mktemp.c busybox-1.17.0-mktemp/debianutils/mktemp.c +--- busybox-1.17.0/debianutils/mktemp.c 2010-06-24 04:40:43.000000000 +0200 ++++ busybox-1.17.0-mktemp/debianutils/mktemp.c 2010-07-12 03:42:48.000000000 +0200 +@@ -50,7 +50,8 @@ int mktemp_main(int argc UNUSED_PARAM, c + opts = getopt32(argv, "dqtp:", &path); + + chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX"); +- chp = concat_path_file(path, chp); ++ if (chp[0] != '/' || (opts & 8)) ++ chp = concat_path_file(path, chp); + + if (opts & 1) { /* -d */ + if (mkdtemp(chp) == NULL) diff --git a/packages/sysutils/busybox/patches/busybox-1.17.0-wget.diff b/packages/sysutils/busybox/patches/busybox-1.17.0-wget.diff new file mode 100644 index 0000000000..d649f65ebb --- /dev/null +++ b/packages/sysutils/busybox/patches/busybox-1.17.0-wget.diff @@ -0,0 +1,12 @@ +diff -urpN busybox-1.17.0/networking/wget.c busybox-1.17.0-wget/networking/wget.c +--- busybox-1.17.0/networking/wget.c 2010-06-24 04:40:43.000000000 +0200 ++++ busybox-1.17.0-wget/networking/wget.c 2010-07-12 03:27:57.000000000 +0200 +@@ -50,7 +50,7 @@ static void progress_meter(int flag) + } + + bb_progress_update(&G.pmt, G.curfile, G.beg_range, G.transferred, +- G.chunked ? 0 : G.content_len + G.beg_range); ++ G.chunked ? 0 : G.beg_range + G.transferred + G.content_len); + + if (flag == 0) { + /* last call to progress_meter */