diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-benchmark/dbench | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-benchmark/dbench')
-rw-r--r-- | meta-oe/recipes-benchmark/dbench/dbench_4.0.bb | 25 | ||||
-rw-r--r-- | meta-oe/recipes-benchmark/dbench/files/destdir.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-benchmark/dbench/files/makefile.patch | 18 |
3 files changed, 71 insertions, 0 deletions
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 0000000000..1915e4c2eb --- /dev/null +++ b/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "The dbench (disk) and tbench (TCP) benchmarks" | ||
2 | SUMMARY_dbench = "Filesystem load benchmark" | ||
3 | SUMMARY_tbench = "TCP load benchmark" | ||
4 | HOMEPAGE = "http://samba.org/ftp/tridge/dbench/" | ||
5 | LICENSE = "GPLv3" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
7 | |||
8 | DEPENDS = "popt" | ||
9 | |||
10 | SRC_URI = "\ | ||
11 | http://samba.org/ftp/tridge/dbench/dbench-${PV}.tar.gz \ | ||
12 | file://destdir.patch \ | ||
13 | file://makefile.patch" | ||
14 | |||
15 | inherit autotools | ||
16 | |||
17 | PACKAGES =+ "tbench tbench-dbg" | ||
18 | |||
19 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
20 | |||
21 | FILES_tbench = "${bindir}/tbench* ${prefix}/share/client.txt" | ||
22 | FILES_tbench-dbg += "${bindir}/.debug/tbench*" | ||
23 | |||
24 | SRC_URI[md5sum] = "1fe56ff71b9a416f8889d7150ac54da4" | ||
25 | 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 0000000000..ca9a8ee207 --- /dev/null +++ b/meta-oe/recipes-benchmark/dbench/files/destdir.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | Append $(DESTDIR) to all $(bindir), $(datadir) and $(mandir). Got | ||
2 | this patch from OE commit id 709c4d66e0b107ca606941b988bad717c0b45d9b | ||
3 | |||
4 | Upstream-Status: Inappropriate [not author] | ||
5 | |||
6 | Index: dbench-3.04/Makefile.in | ||
7 | =================================================================== | ||
8 | --- dbench-3.04.orig/Makefile.in 2006-09-17 20:21:07.000000000 +0200 | ||
9 | +++ dbench-3.04/Makefile.in 2006-09-17 20:21:36.000000000 +0200 | ||
10 | @@ -32,12 +32,12 @@ | ||
11 | |||
12 | # Careful here: don't install client.txt over itself. | ||
13 | install: all | ||
14 | - ${INSTALLCMD} -d $(bindir) $(datadir) $(mandir) | ||
15 | - ${INSTALLCMD} dbench tbench tbench_srv $(bindir) | ||
16 | - ${INSTALLCMD} client.txt $(datadir) | ||
17 | - ${INSTALLCMD} -m644 dbench.1 $(mandir) | ||
18 | - ln -sf dbench.1 $(mandir)/tbench.1 | ||
19 | - ln -sf dbench.1 $(mandir)/tbench_srv.1 | ||
20 | + ${INSTALLCMD} -d $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) $(DESTDIR)$(mandir) | ||
21 | + ${INSTALLCMD} dbench tbench tbench_srv $(DESTDIR)$(bindir) | ||
22 | + ${INSTALLCMD} client.txt $(DESTDIR)$(datadir) | ||
23 | + ${INSTALLCMD} -m644 dbench.1 $(DESTDIR)$(mandir) | ||
24 | + ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench.1 | ||
25 | + ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench_srv.1 | ||
26 | |||
27 | clean: | ||
28 | 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 0000000000..09d619ad38 --- /dev/null +++ b/meta-oe/recipes-benchmark/dbench/files/makefile.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Add space between install -m option and its argument. Got this patch from | ||
2 | OE 709c4d66e0b107ca606941b988bad717c0b45d9b | ||
3 | |||
4 | Upstream-Status: Inappropriate [not author] | ||
5 | |||
6 | Index: dbench-4.0/Makefile.in | ||
7 | =================================================================== | ||
8 | --- dbench-4.0.orig/Makefile.in | ||
9 | +++ dbench-4.0/Makefile.in | ||
10 | @@ -35,7 +35,7 @@ install: all | ||
11 | ${INSTALLCMD} -d $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) $(DESTDIR)$(mandir) | ||
12 | ${INSTALLCMD} dbench tbench tbench_srv $(DESTDIR)$(bindir) | ||
13 | ${INSTALLCMD} client.txt $(DESTDIR)$(datadir) | ||
14 | - ${INSTALLCMD} -m644 dbench.1 $(DESTDIR)$(mandir) | ||
15 | + ${INSTALLCMD} -m 644 dbench.1 $(DESTDIR)$(mandir) | ||
16 | ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench.1 | ||
17 | ln -sf dbench.1 $(DESTDIR)$(mandir)/tbench_srv.1 | ||
18 | |||