packages: add bonnie++
[openwrt/svn-archive/archive.git] / utils / bonnie++ / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bonnie++
11 PKG_VERSION:=1.96
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.coker.com.au/bonnie++/experimental/
16 PKG_MD5SUM:=7b8594559f00887d2865de1838328b35
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/bonniexx
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+libstdcpp +libpthread
26 TITLE:=Bonnie++ - hard drive bottleneck testing program.
27 URL:=http://www.coker.com.au/bonnie++/
28 endef
29
30 define Package/bonniexx/description
31 Bonnie++ is a benchmark suite that is aimed at performing a number of simple
32 tests of hard drive and file system performance.
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 TARGET_CXX="$(TARGET_CXX)" \
38 TARGET_LINK="$(TARGET_CXX)" \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all
41 endef
42
43 define Package/bonniexx/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(CP) $(PKG_BUILD_DIR)/bonnie++ $(1)/usr/bin/
46 $(CP) $(PKG_BUILD_DIR)/bon_csv2html $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,bonniexx))