]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
sysbench: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 May 2013 15:10:16 +0000 (17:10 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 May 2013 15:10:16 +0000 (17:10 +0200)
A tool for performance benchmarks.

config/rootfiles/packages/sysbench [new file with mode: 0644]
lfs/sysbench [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/packages/sysbench b/config/rootfiles/packages/sysbench
new file mode 100644 (file)
index 0000000..3164256
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/sysbench
diff --git a/lfs/sysbench b/lfs/sysbench
new file mode 100644 (file)
index 0000000..b6e008e
--- /dev/null
@@ -0,0 +1,72 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 0.4.12
+
+THISAPP    = sysbench-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = sysbench
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 3a6d54fdd3fe002328e4458206392b9d
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && touch AUTHORS NEWS
+       cd $(DIR_APP) && autoreconf -vfi
+       cd $(DIR_APP) && ./configure --prefix=/usr --without-mysql
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
+       rm -rvf /usr/share/doc/sysbench
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 8a2d4f8c84a3efb2fac5b69254445233ffd2e926..8ed09d673091138eb531758c4345f535904d81c1 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -764,6 +764,7 @@ buildipfire() {
   ipfiremake avahi
   ipfiremake nginx
   ipfiremake sendEmail
+  ipfiremake sysbench
   echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild
   cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild
   echo >> $BASEDIR/build/var/ipfire/firebuild