From: Noor Ahsan <noor_ah...@mentor.com>

* Imported from oe.dev commit id d6f49fe115206047b41b0195724ba872897ef531

Signed-off-by: Noor Ahsan <noor_ah...@mentor.com>
---
 meta-oe/recipes-benchmark/dbench/dbench_4.0.bb     |   25 +++++++++++++++++
 .../recipes-benchmark/dbench/files/destdir.patch   |   28 ++++++++++++++++++++
 .../recipes-benchmark/dbench/files/makefile.patch  |   18 ++++++++++++
 3 files changed, 71 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-benchmark/dbench/dbench_4.0.bb
 create mode 100644 meta-oe/recipes-benchmark/dbench/files/destdir.patch
 create mode 100644 meta-oe/recipes-benchmark/dbench/files/makefile.patch

diff --git a/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb 
b/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb
new file mode 100644
index 0000000..b61eb91
--- /dev/null
+++ b/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "The dbench (disk) and tbench (TCP) benchmarks"
+DESCRIPTION_dbench = "Filesystem load benchmark"
+DESCRIPTION_tbench = "TCP load benchmark"
+HOMEPAGE = "http://samba.org/ftp/tridge/dbench/";
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+
+DEPENDS = "popt"
+
+SRC_URI = "\
+  http://samba.org/ftp/tridge/dbench/dbench-${PV}.tar.gz \
+  file://destdir.patch \
+  file://makefile.patch"
+
+inherit autotools
+
+PACKAGES =+ "tbench tbench-dbg"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+FILES_tbench = "${bindir}/tbench* ${prefix}/share/client.txt"
+FILES_tbench-dbg += "${bindir}/.debug/tbench*"
+
+SRC_URI[md5sum] = "1fe56ff71b9a416f8889d7150ac54da4"
+SRC_URI[sha256sum] = 
"6001893f34e68a3cfeb5d424e1f2bfef005df96a22d86f35dc770c5bccf3aa8a"
diff --git a/meta-oe/recipes-benchmark/dbench/files/destdir.patch 
b/meta-oe/recipes-benchmark/dbench/files/destdir.patch
new file mode 100644
index 0000000..ca9a8ee
--- /dev/null
+++ b/meta-oe/recipes-benchmark/dbench/files/destdir.patch
@@ -0,0 +1,28 @@
+Append $(DESTDIR) to all $(bindir), $(datadir) and $(mandir). Got 
+this patch from OE commit id 709c4d66e0b107ca606941b988bad717c0b45d9b
+
+Upstream-Status: Inappropriate [not author]
+
+Index: dbench-3.04/Makefile.in
+===================================================================
+--- dbench-3.04.orig/Makefile.in       2006-09-17 20:21:07.000000000 +0200
++++ dbench-3.04/Makefile.in    2006-09-17 20:21:36.000000000 +0200
+@@ -32,12 +32,12 @@
+ 
+ # Careful here: don't install client.txt over itself.
+ install: all
+-      ${INSTALLCMD} -d $(bindir) $(datadir) $(mandir)
+-      ${INSTALLCMD} dbench tbench tbench_srv $(bindir)
+-      ${INSTALLCMD} client.txt $(datadir)
+-      ${INSTALLCMD} -m644 dbench.1 $(mandir)
+-      ln -sf dbench.1 $(mandir)/tbench.1
+-      ln -sf dbench.1 $(mandir)/tbench_srv.1
++      ${INSTALLCMD} -d $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) 
$(DESTDIR)$(mandir)
++      ${INSTALLCMD} dbench tbench tbench_srv $(DESTDIR)$(bindir)
++      ${INSTALLCMD} client.txt $(DESTDIR)$(datadir)
++      ${INSTALLCMD} -m644 dbench.1 $(DESTDIR)$(mandir)
++      ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench.1
++      ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench_srv.1
+ 
+ clean:
+       rm -f *.o *~ dbench tbench tbench_srv
diff --git a/meta-oe/recipes-benchmark/dbench/files/makefile.patch 
b/meta-oe/recipes-benchmark/dbench/files/makefile.patch
new file mode 100644
index 0000000..09d619a
--- /dev/null
+++ b/meta-oe/recipes-benchmark/dbench/files/makefile.patch
@@ -0,0 +1,18 @@
+Add space between install -m option and its argument. Got this patch from 
+OE 709c4d66e0b107ca606941b988bad717c0b45d9b
+
+Upstream-Status: Inappropriate [not author]
+
+Index: dbench-4.0/Makefile.in
+===================================================================
+--- dbench-4.0.orig/Makefile.in
++++ dbench-4.0/Makefile.in
+@@ -35,7 +35,7 @@ install: all
+       ${INSTALLCMD} -d $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) 
$(DESTDIR)$(mandir)
+       ${INSTALLCMD} dbench tbench tbench_srv $(DESTDIR)$(bindir)
+       ${INSTALLCMD} client.txt $(DESTDIR)$(datadir)
+-      ${INSTALLCMD} -m644 dbench.1 $(DESTDIR)$(mandir)
++      ${INSTALLCMD} -m 644 dbench.1 $(DESTDIR)$(mandir)
+       ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench.1
+       ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench_srv.1
+ 
-- 
1.7.0.4


_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to