summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-11 20:34:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-12 18:02:44 +0000
commitfce38ec55f9111190b52234abb79b4f194e55ace (patch)
tree6ecc28696212499b7ef2914b0d6da70ee25d0040 /main
parent70b4e96383ab57f17ac202148731f4237fa539dd (diff)
downloadaports-fce38ec55f9111190b52234abb79b4f194e55ace.tar.bz2
aports-fce38ec55f9111190b52234abb79b4f194e55ace.tar.xz
main/busybox: beep: fix -d option
fixes #320 (cherry picked from commit 725cf1202858d1f324e67f67c1f4a6c4fea783d5)
Diffstat (limited to 'main')
-rw-r--r--main/busybox/0001-beep-the-d-option-takes-milliseconds-not-microsecond.patch25
-rw-r--r--main/busybox/APKBUILD4
2 files changed, 28 insertions, 1 deletions
diff --git a/main/busybox/0001-beep-the-d-option-takes-milliseconds-not-microsecond.patch b/main/busybox/0001-beep-the-d-option-takes-milliseconds-not-microsecond.patch
new file mode 100644
index 00000000..15d8e109
--- /dev/null
+++ b/main/busybox/0001-beep-the-d-option-takes-milliseconds-not-microsecond.patch
@@ -0,0 +1,25 @@
+From 4d277601bdd3717ff304b2eef9823cc4c17134e2 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 11 Mar 2010 17:06:59 +0000
+Subject: [PATCH] beep: the -d option takes milliseconds not microseconds
+
+---
+ miscutils/beep.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/miscutils/beep.c b/miscutils/beep.c
+index c17cbfd..10768e7 100644
+--- a/miscutils/beep.c
++++ b/miscutils/beep.c
+@@ -83,7 +83,7 @@ int beep_main(int argc, char **argv)
+ usleep(1000 * length);
+ ioctl(speaker, KIOCSOUND, (void*)0);
+ if (--rep)
+- usleep(delay);
++ usleep(1000 * delay);
+ }
+ }
+
+--
+1.7.0.2
+
diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD
index 82d7e8b9..b54140d4 100644
--- a/main/busybox/APKBUILD
+++ b/main/busybox/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox
pkgver=1.16.0
-pkgrel=4
+pkgrel=5
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url=http://busybox.net
license="GPL-2"
@@ -20,6 +20,7 @@ source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
busybox-1.16.0-tftp.patch
busybox-1.16.0-usage.patch
busybox-1.16.0-wget.patch
+ 0001-beep-the-d-option-takes-milliseconds-not-microsecond.patch
busyboxconfig"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -72,4 +73,5 @@ f4758daa8023f000228e9509cceb02d1 busybox-1.16.0-md5_sha_compat.patch
e24dc9e56b5de4fff706cfbe5c75d9b2 busybox-1.16.0-tftp.patch
289c8ee19cc43fe175bbd7933c6b5cdf busybox-1.16.0-usage.patch
928ca5a26599cd1dbb80e08132140832 busybox-1.16.0-wget.patch
+00b2aca448952eeb3b579792070712fd 0001-beep-the-d-option-takes-milliseconds-not-microsecond.patch
9743e7ecd48f37b0d420f64bef7fb2a8 busyboxconfig"