Browse Source

package: add bonnie++

Closes #3379

A good filesystem performance benchmark program

Signed-off-by: Martin Hicks <mort@bork.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Martin Hicks 14 years ago
parent
commit
4bc799856b
4 changed files with 31 additions and 1 deletions
  1. 2 1
      CHANGES
  2. 1 0
      package/Config.in
  3. 10 0
      package/bonnie/Config.in
  4. 18 0
      package/bonnie/bonnie.mk

+ 2 - 1
CHANGES

@@ -9,10 +9,11 @@
 	quagga, readline, rsync, samba, squid, socat, squashfs, tslib,
 	quagga, readline, rsync, samba, squid, socat, squashfs, tslib,
 	webkit, xerces, xlib_xtrans, xorg-server, xterm, xz
 	webkit, xerces, xlib_xtrans, xorg-server, xterm, xz
 
 
-	New packages: can-utils, htop, libv4l
+	New packages: bonnie++, can-utils, htop, libv4l
 
 
 	Issues resolved (http://bugs.uclibc.org):
 	Issues resolved (http://bugs.uclibc.org):
 
 
+	#3379: New Package: bonnie++
 	#3445: Not working openssl-10.0.0d on 386sx
 	#3445: Not working openssl-10.0.0d on 386sx
 	#3451: fakeroot package: wrong FAKEROOT_SITE variable
 	#3451: fakeroot package: wrong FAKEROOT_SITE variable
 	#3457: alsamixergui: broken URL
 	#3457: alsamixergui: broken URL

+ 1 - 0
package/Config.in

@@ -17,6 +17,7 @@ source "package/xz/Config.in"
 endmenu
 endmenu
 
 
 menu "Debugging, profiling and benchmark"
 menu "Debugging, profiling and benchmark"
+source "package/bonnie/Config.in"
 source "package/dhrystone/Config.in"
 source "package/dhrystone/Config.in"
 source "package/dmalloc/Config.in"
 source "package/dmalloc/Config.in"
 source "package/kexec/Config.in"
 source "package/kexec/Config.in"

+ 10 - 0
package/bonnie/Config.in

@@ -0,0 +1,10 @@
+config BR2_PACKAGE_BONNIE
+	bool "bonnie++"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Filesystem tester
+
+	  http://www.coker.com.au/bonnie++/
+
+comment "bonnie++ requires a toolchain with C++ support enabled"
+	depends on !BR2_INSTALL_LIBSTDCPP

+ 18 - 0
package/bonnie/bonnie.mk

@@ -0,0 +1,18 @@
+#
+# bonnie++
+#
+
+BONNIE_VERSION = 1.03e
+BONNIE_SOURCE = bonnie++-$(BONNIE_VERSION).tgz
+BONNIE_SITE = http://www.coker.com.au/bonnie++/
+
+define BONNIE_INSTALL_TARGET_CMDS
+	install -D -m 755 $(@D)/bonnie++ $(TARGET_DIR)/usr/sbin/bonnie++
+	install -D -m 755 $(@D)/zcav $(TARGET_DIR)/usr/sbin/zcav
+endef
+
+define BONNIE_UNINSTALL_TARGET_CMDS
+	rm -f $(TARGET_DIR)/usr/sbin/bonnie++ $(TARGET_DIR)/usr/sbin/zcav
+endef
+
+$(eval $(call AUTOTARGETS,package,bonnie))