]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
stress: New package.
authorErik Kapfer <erik.kapfer@ipfire.org>
Tue, 13 Nov 2012 21:31:39 +0000 (22:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Nov 2012 21:31:39 +0000 (22:31 +0100)
config/rootfiles/packages/stress [new file with mode: 0644]
lfs/stress [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/packages/stress b/config/rootfiles/packages/stress
new file mode 100644 (file)
index 0000000..2b0a000
--- /dev/null
@@ -0,0 +1,3 @@
+usr/bin/stress
+#usr/share/info/stress.info
+#usr/share/man/man1/stress.1
\ No newline at end of file
diff --git a/lfs/stress b/lfs/stress
new file mode 100644 (file)
index 0000000..166d840
--- /dev/null
@@ -0,0 +1,69 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 1.0.4
+
+THISAPP    = stress-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = stress
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = a607afa695a511765b40993a64c6e2f4
+
+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) && ./configure --prefix=/usr
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index ea908d9480e5e58e499d018ef42ec346288d02e8..3cb3e079339f3f8142871a02ef7b755c30c7c4cf 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -772,6 +772,7 @@ buildipfire() {
   ipfiremake minidlna
   ipfiremake fping
   ipfiremake telnet
+  ipfiremake stress
   echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild
   cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild
   echo >> $BASEDIR/build/var/ipfire/firebuild