summaryrefslogtreecommitdiff
path: root/app-benchmarks/spew
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-benchmarks/spew
reinit the tree, so we can have metadata
Diffstat (limited to 'app-benchmarks/spew')
-rw-r--r--app-benchmarks/spew/Manifest10
-rw-r--r--app-benchmarks/spew/files/fix-automake-1.13.patch28
-rw-r--r--app-benchmarks/spew/files/fix-format-security.patch24
-rw-r--r--app-benchmarks/spew/files/fix-ncurses-tinfo.patch29
-rw-r--r--app-benchmarks/spew/files/remove-symlinks-makefile.patch26
-rw-r--r--app-benchmarks/spew/metadata.xml13
-rw-r--r--app-benchmarks/spew/spew-1.0.8-r1.ebuild43
-rw-r--r--app-benchmarks/spew/spew-1.0.8.ebuild41
8 files changed, 214 insertions, 0 deletions
diff --git a/app-benchmarks/spew/Manifest b/app-benchmarks/spew/Manifest
new file mode 100644
index 000000000000..e4bc29f43f59
--- /dev/null
+++ b/app-benchmarks/spew/Manifest
@@ -0,0 +1,10 @@
+AUX fix-automake-1.13.patch 738 SHA256 b2ef8dfd2e1cd6d6b0e2dde2c87f17c62781b5844d3c64f69e8e1a6b901c61dc SHA512 d901296e786de378c669bf0e5303ccd1825d29ffa2116aba301250577abdef4a79b28e7e7a31587b373819cf940392b72b1cf0352ab4ec5d81861c72c70c76fb WHIRLPOOL 2cc08a143eb1ed793c981436aaf24390de5a696345c0af6bf32ee46da957c1d0aa8924a1d07df164fa791e682ead2a595ca0aa6c2624fe849f4b3e74ee2349c7
+AUX fix-format-security.patch 1209 SHA256 56c6e9cd07f649487d143c28ba4032d034708d785dfa85726122b4aa7f7b1790 SHA512 17437880d9780f70f3d7e6208e3bf6d0788290876b2a1c473ce2a5df25fe51ec6df91c8d950196b2d0f498eafdedd2896a36539e393c9d2429200b3ae80b6617 WHIRLPOOL 0ebdae64451f582180964e03bcd754dc2bf2156025c44fd6578510fd596cf868a6185363970fc680d43c6a8531fe25c95e9a0933310689b0a314ed4b7fe27872
+AUX fix-ncurses-tinfo.patch 1094 SHA256 a328c206fafc5399366f37bc2b47d04b843a2c7504f774cda45232bb6ccbfde0 SHA512 84afc54f824fab7c74e370b9879555edc24d1ba0139446781c0b61a72b09936acabb8f6c3151f9d5c4fe602188b65b69816cf6fa9bd80b2147a6ff8a2561065e WHIRLPOOL 4ae097ce86e50477a00d0e318692d8b8d6a22c5c85b8e0e5a591eafbdb2b0343511510967c19cca3e5789758df0087d7c151250a4c13af48e524c83e180015c4
+AUX remove-symlinks-makefile.patch 1125 SHA256 06e591faefec55e12d52576f7ac4972dc4e4d0ba550f20bac3c089c7df1253a1 SHA512 4cedf0afe234089cced001bc5f491d49c836fc3acdf2264eecdc6d5621e9130efe9b4b24ce2198ed3edd9a4ec413bb5cbf45a2803650f8525acf3a903511cccc WHIRLPOOL 45406c8d36368e8f90e6aa16b6b4adb9a8193c963f1745fe59cb3b2e7a4887985bfc60c74cffcb7a6869bcfe630401568b06023fa8d365a46f750cb9f29e4299
+DIST spew-1.0.8.tgz 162091 SHA256 200da1b4390a5e4bf91cb7278b3ad813194f0e395abc0da6296ac415e11a76cb SHA512 ec76a1e681bbaabef6cdc63ced5114a856a312e91c5ff3e0d1536221583a1c939f9308139863670695121c8c720123a6d0697491867ccafc091607888cc81b56 WHIRLPOOL 9aac2fec8b514271fcaf3e72eb6affa505fcaae274e1966e67371c7671aa8e46cf9c0ab7345b83de4ce60a6a51b72cb9e17c692839a4eb810762bc8b851bc20a
+EBUILD spew-1.0.8-r1.ebuild 1077 SHA256 81d8ccfb96363907235bf2d1bf39ed317d3af5c526e1c1ff00c22c130ef3c728 SHA512 012b63e9f8c23adfc7e0ccfb878c1b424e74c120cd96d8ceb268ae1e26120b5f42e28a66919506456fd9092247b56f07b397edce70feafd6f1f6cda8b0100f41 WHIRLPOOL 70569864b466b96703157bdc80ea9d868db0b1894debd36b54325b92a32740d78b65a1abe0f3c0287ef2ebb9cb6a0298430c0d07e8ef02ed493d8e8e1836ebc4
+EBUILD spew-1.0.8.ebuild 983 SHA256 ae133b04ef1967cb3d63f74734fdebc4250838d29a74d8b29d1eac13e4b354a4 SHA512 4dcaf1c3adfc0cb0635f7f6e76e11cae307cf5679f6112ef051e2bb717cc1c8600ae75fe311be69c7f42b0b23d15af7b23b88edb27a2f3dc4e8c2c0c2a1aa2bb WHIRLPOOL a147af40d4de764703b59742b6b018b1e5dabbae1469e24b56bf5fd8c8098c28e586abc0d531137a8ef28f9b427e00f9d74324d4f6957a14871bf9d2a500ea26
+MISC ChangeLog 2366 SHA256 fecaecd871f78749cb03a7c8a25ed76b7c075a95aa35019935127a64b649b3b0 SHA512 e0385495c4d5d112b1e25a0f93c3180f1673a50c8437783cbb60478e9db53e32ee783180c6ecf52f4bdca7ae6e50d721dde82c36ca73cea62c064633c72778c4 WHIRLPOOL 4ca8449b3f5e15dc3775d0df58fae62cde559eae89b10061bd397946a2b9becdad94e1f5e84b759399112c15941f3927c756be1d9404bffa7b3bd6d7408582a7
+MISC ChangeLog-2015 1441 SHA256 4728441999acdfe7372ee6fbcb625a31f7dc66b93282d65240194a3c593d61a4 SHA512 dc570daff423eb3a2f1624dd9647bbca3cd82dfeacf6ffc7a87e7ee452f126da6536ed210cb51a4f4ca2d9bc9c385e9f11dfd3bad9544af9187e169091572b8c WHIRLPOOL b09263a3e3e9ffe0d4f1824868ecb292d83d06e07fc093bff84704b67e08374e0f4a038403534f2261a4cd5f80435b1516bb63e94e651a834378c02d4a25c3bf
+MISC metadata.xml 461 SHA256 94f4ce7e2573bc493ac1f1e136b0bb184247ddddd17e7ce6e86259b35fb6f0ed SHA512 fe2f2e2cac973a052af263b4021d198835077aaa43dcae82a1101b8156a6cc6d309078f78d6216234ea591a9202afaae298aa6d87755e7e3c032a5d841056597 WHIRLPOOL 5800850abadeec4153467d4dfb0165d535dd71e0518df077ee8dee423a7276a1a10662566e4a2a068d29ceebdda06bd022e57e0a3feae770c7e08ac35cddd592
diff --git a/app-benchmarks/spew/files/fix-automake-1.13.patch b/app-benchmarks/spew/files/fix-automake-1.13.patch
new file mode 100644
index 000000000000..c046c1b955eb
--- /dev/null
+++ b/app-benchmarks/spew/files/fix-automake-1.13.patch
@@ -0,0 +1,28 @@
+diff -Naur spew-1.0.8.orig/configure.ac spew-1.0.8/configure.ac
+--- spew-1.0.8.orig/configure.ac 2010-05-14 01:17:52.000000000 -0400
++++ spew-1.0.8/configure.ac 2013-06-21 09:06:42.000000000 -0400
+@@ -2,20 +2,13 @@
+ # Process this file with autoconf to produce a configure script.
+
+ AC_PREREQ(2.57)
+-AC_INIT(src/spew.cpp)
++AC_INIT(spew, 1.0.8)
++AC_CONFIG_SRCDIR(src/spew.cpp)
+ AC_CONFIG_AUX_DIR(config)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ AM_MAINTAINER_MODE
+
+-SPEW_AGE=1
+-SPEW_REVISION=0
+-SPEW_CURRENT=8
+-AC_SUBST(SPEW_AGE)
+-AC_SUBST(SPEW_REVISION)
+-AC_SUBST(SPEW_CURRENT)
+-VERSION=$SPEW_AGE.$SPEW_REVISION.$SPEW_CURRENT
+-
+-AM_INIT_AUTOMAKE(spew, $VERSION)
++AM_INIT_AUTOMAKE
+
+ # Checks for programs.
+ AC_PROG_CXX
diff --git a/app-benchmarks/spew/files/fix-format-security.patch b/app-benchmarks/spew/files/fix-format-security.patch
new file mode 100644
index 000000000000..dd34d875bd0e
--- /dev/null
+++ b/app-benchmarks/spew/files/fix-format-security.patch
@@ -0,0 +1,24 @@
+diff -Naur spew-1.0.8.orig/src/spew.cpp spew-1.0.8/src/spew.cpp
+--- spew-1.0.8.orig/src/spew.cpp 2010-05-14 01:06:18.000000000 -0400
++++ spew-1.0.8/src/spew.cpp 2014-11-19 08:39:31.806338597 -0500
+@@ -285,7 +285,7 @@
+ PATTERN_LOOKUP[Job::PATTERN_USER_DEFINED],
+ PATTERN_LOOKUP[Job::PATTERN_USER_DEFINED],
+ PATTERN_LOOKUP[DEFAULT_PATTERN]);
+- fprintf(stdout, outStr);
++ fprintf(stdout, "%s", outStr);
+
+ fprintf(stdout, "\nReport bugs to Andrew Patterson <andrew.patterson@hp.com>.\n");
+ }
+diff -Naur spew-1.0.8.orig/src/SpewTuiStatisticsWindow.cpp spew-1.0.8/src/SpewTuiStatisticsWindow.cpp
+--- spew-1.0.8.orig/src/SpewTuiStatisticsWindow.cpp 2008-05-13 00:47:17.000000000 -0400
++++ spew-1.0.8/src/SpewTuiStatisticsWindow.cpp 2014-11-19 08:39:52.527339540 -0500
+@@ -278,7 +278,7 @@
+ "");
+ if (mSpewTui->getCurrentIteration() > 0)
+ {
+- int len = snprintf(NULL, 0, (char *)mTotalRunTime.getElapsedTimeStr().c_str());
++ int len = snprintf(NULL, 0, "%s", (char *)mTotalRunTime.getElapsedTimeStr().c_str());
+ mvwprintw(mWindow,
+ RUNTIME_FIELD_STARTY,
+ RUNTIME_FIELD_STARTX + RUNTIME_FIELD_WIDTH - len,
diff --git a/app-benchmarks/spew/files/fix-ncurses-tinfo.patch b/app-benchmarks/spew/files/fix-ncurses-tinfo.patch
new file mode 100644
index 000000000000..9905e2057042
--- /dev/null
+++ b/app-benchmarks/spew/files/fix-ncurses-tinfo.patch
@@ -0,0 +1,29 @@
+diff -Naur spew-1.0.8.orig/configure.ac spew-1.0.8/configure.ac
+--- spew-1.0.8.orig/configure.ac 2014-11-19 08:15:31.284273029 -0500
++++ spew-1.0.8/configure.ac 2014-11-19 08:16:07.063274657 -0500
+@@ -21,6 +21,7 @@
+ # Checks for libraries.
+ AC_CHECK_LIB(popt, poptGetContext, ,AC_MSG_ERROR([PACKAGE] requires popt))
+ AC_CHECK_LIB(ncurses, wresize, ,AC_MSG_ERROR([PACKAGE] requires ncurses))
++PKG_CHECK_MODULES(NCURSES, [ncurses])
+
+ # Checks for header files.
+ AC_HEADER_STDC
+diff -Naur spew-1.0.8.orig/src/Makefile.am spew-1.0.8/src/Makefile.am
+--- spew-1.0.8.orig/src/Makefile.am 2014-11-19 08:15:31.311273030 -0500
++++ spew-1.0.8/src/Makefile.am 2014-11-19 08:16:57.034276932 -0500
+@@ -24,7 +24,7 @@
+ libtui_a_SOURCES = \
+ Tui.cpp Tui.h
+
+-LDADD = libcommon.a libtui.a
++LDADD = libcommon.a libtui.a $(NCURSES_LIBS)
+
+ bin_PROGRAMS = spew
+ spew_SOURCES = spew.cpp \
+@@ -37,4 +37,5 @@
+ SpewTuiStatisticsWindow.cpp SpewTuiStatisticsWindow.h \
+ SpewTuiStatusWindow.cpp SpewTuiStatusWindow.h
+
++spew_CFLAGS = $(NCURSES_CFLAGS)
+ spew_LDFLAGS = $(STATIC_LINK)
diff --git a/app-benchmarks/spew/files/remove-symlinks-makefile.patch b/app-benchmarks/spew/files/remove-symlinks-makefile.patch
new file mode 100644
index 000000000000..e5c369a7f8a0
--- /dev/null
+++ b/app-benchmarks/spew/files/remove-symlinks-makefile.patch
@@ -0,0 +1,26 @@
+diff -Naur spew-1.0.8.orig/man/Makefile.am spew-1.0.8/man/Makefile.am
+--- spew-1.0.8.orig/man/Makefile.am 2008-05-13 00:47:28.000000000 -0400
++++ spew-1.0.8/man/Makefile.am 2011-04-05 09:39:32.000000000 -0400
+@@ -10,11 +10,5 @@
+ sed -e 's!SPEW_VERSION!$(VERSION)!' \
+ -e 's!SYSCONFDIR!$(sysconfdir)!' $< >$@
+
+-install-data-am: install-man install-man-local
+-
+-install-man-local:
+- (cd $(DESTDIR)$(mandir)/man1 && $(LN_S) -f spew.1 gorge.1)
+- (cd $(DESTDIR)$(mandir)/man1 && $(LN_S) -f spew.1 regorge.1)
+-
+ help2man:
+ help2man --section=1 --no-info --name="measures I/O performance and/or generates I/O load" --include="spew.1.include" --output=spew.1.in ../src/spew
+diff -Naur spew-1.0.8.orig/src/Makefile.am spew-1.0.8/src/Makefile.am
+--- spew-1.0.8.orig/src/Makefile.am 2008-05-13 00:47:20.000000000 -0400
++++ spew-1.0.8/src/Makefile.am 2011-04-05 09:35:16.000000000 -0400
+@@ -38,7 +38,3 @@
+ SpewTuiStatusWindow.cpp SpewTuiStatusWindow.h
+
+ spew_LDFLAGS = $(STATIC_LINK)
+-
+-install-exec-local:
+- (cd $(DESTDIR)$(bindir) && $(LN_S) -f spew gorge)
+- (cd $(DESTDIR)$(bindir) && $(LN_S) -f spew regorge)
diff --git a/app-benchmarks/spew/metadata.xml b/app-benchmarks/spew/metadata.xml
new file mode 100644
index 000000000000..130a05db05f5
--- /dev/null
+++ b/app-benchmarks/spew/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <longdescription lang="en">
+ An I/O performance measurement and load generation tool. Writes
+ and/or reads generated data to or from a character device, block
+ device, or regular file.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-benchmarks/spew/spew-1.0.8-r1.ebuild b/app-benchmarks/spew/spew-1.0.8-r1.ebuild
new file mode 100644
index 000000000000..746b3b536e96
--- /dev/null
+++ b/app-benchmarks/spew/spew-1.0.8-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Measures I/O performance and/or generates I/O load"
+HOMEPAGE="http://spew.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/spew/1.0.8/spew-1.0.8.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~mips ~ppc ~ppc64 x86"
+IUSE="static"
+
+DEPEND="static? ( sys-libs/ncurses[-gpm] dev-libs/popt[static-libs] )
+ !static? ( sys-libs/ncurses dev-libs/popt )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/fix-format-security.patch
+ epatch "${FILESDIR}"/fix-automake-1.13.patch
+ epatch "${FILESDIR}"/remove-symlinks-makefile.patch
+ epatch "${FILESDIR}"/fix-ncurses-tinfo.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static static-link)
+}
+
+src_compile() {
+ emake AR=$(tc-getAR)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dosym ${PN} /usr/bin/gorge
+ dosym ${PN} /usr/bin/regorge
+ dosym ${PN}.1.bz2 /usr/share/man/man1/gorge.1.bz2
+ dosym ${PN}.1.bz2 /usr/share/man/man1/reorge.1.bz2
+}
diff --git a/app-benchmarks/spew/spew-1.0.8.ebuild b/app-benchmarks/spew/spew-1.0.8.ebuild
new file mode 100644
index 000000000000..a699f26eac3d
--- /dev/null
+++ b/app-benchmarks/spew/spew-1.0.8.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Measures I/O performance and/or generates I/O load"
+HOMEPAGE="http://spew.berlios.de/"
+SRC_URI="ftp://ftp.berlios.de/pub/spew/1.0.8/spew-1.0.8.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~mips ~ppc ~ppc64 x86"
+IUSE="static"
+
+DEPEND="static? ( sys-libs/ncurses[-gpm] dev-libs/popt[static-libs] )
+ !static? ( sys-libs/ncurses dev-libs/popt )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/fix-automake-1.13.patch
+ epatch "${FILESDIR}"/remove-symlinks-makefile.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static static-link)
+}
+
+src_compile() {
+ emake AR=$(tc-getAR)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dosym ${PN} /usr/bin/gorge
+ dosym ${PN} /usr/bin/regorge
+ dosym ${PN}.1.bz2 /usr/share/man/man1/gorge.1.bz2
+ dosym ${PN}.1.bz2 /usr/share/man/man1/reorge.1.bz2
+}