diff options
Diffstat (limited to 'app-benchmarks/spew')
-rw-r--r-- | app-benchmarks/spew/Manifest | 7 | ||||
-rw-r--r-- | app-benchmarks/spew/files/fix-automake-1.13.patch | 28 | ||||
-rw-r--r-- | app-benchmarks/spew/files/fix-format-security.patch | 24 | ||||
-rw-r--r-- | app-benchmarks/spew/files/fix-ncurses-tinfo.patch | 29 | ||||
-rw-r--r-- | app-benchmarks/spew/files/remove-symlinks-makefile.patch | 26 | ||||
-rw-r--r-- | app-benchmarks/spew/metadata.xml | 13 | ||||
-rw-r--r-- | app-benchmarks/spew/spew-1.0.8-r1.ebuild | 43 |
7 files changed, 170 insertions, 0 deletions
diff --git a/app-benchmarks/spew/Manifest b/app-benchmarks/spew/Manifest new file mode 100644 index 000000000000..e05e5ed7947b --- /dev/null +++ b/app-benchmarks/spew/Manifest @@ -0,0 +1,7 @@ +AUX fix-automake-1.13.patch 738 BLAKE2B 988e2b37d12959d8c08380cb33ca4f82a9f2076e16008f29c658a4c4189b219a74f06087ff9aeb46b20399fbdb79edb84af244266a5d103eba3509729b73a106 SHA512 d901296e786de378c669bf0e5303ccd1825d29ffa2116aba301250577abdef4a79b28e7e7a31587b373819cf940392b72b1cf0352ab4ec5d81861c72c70c76fb +AUX fix-format-security.patch 1209 BLAKE2B fa33eb49b61ee74f09f3df70d684c441ed1f089f94cc3571903bbd8c856995e2ad44fbdcb7e63dd6ee9202da23f5822c883037c6307f59c9e65f2efb777e3a05 SHA512 17437880d9780f70f3d7e6208e3bf6d0788290876b2a1c473ce2a5df25fe51ec6df91c8d950196b2d0f498eafdedd2896a36539e393c9d2429200b3ae80b6617 +AUX fix-ncurses-tinfo.patch 1094 BLAKE2B 446d9c396fef3b03898153e840536557af9aeafef35f9cf54fe6cf22eaf39f20f6920d47af1f4086bc9a6fa05303c7b7df54d189fdbdacc15bb9e33a2b53d6ed SHA512 84afc54f824fab7c74e370b9879555edc24d1ba0139446781c0b61a72b09936acabb8f6c3151f9d5c4fe602188b65b69816cf6fa9bd80b2147a6ff8a2561065e +AUX remove-symlinks-makefile.patch 1125 BLAKE2B 85f660d6ae7da3ebefd4f728c4537919373b4083930f8bdc8bf548efb57905c2ed38802b1aa72b0cfe16b8fa4018d832e0b1c85c60485b0f4d7e4e3defdeffe9 SHA512 4cedf0afe234089cced001bc5f491d49c836fc3acdf2264eecdc6d5621e9130efe9b4b24ce2198ed3edd9a4ec413bb5cbf45a2803650f8525acf3a903511cccc +DIST spew-1.0.8.tgz 162091 BLAKE2B 9ca0bba6cc749feb016d86bd4e159646538e0a89842aad44474bc377fe67c7f51aa33df2c4df14b329e1b7dabe78ef7da9f50daa0b01f8679a0e98810e5ea1b1 SHA512 ec76a1e681bbaabef6cdc63ced5114a856a312e91c5ff3e0d1536221583a1c939f9308139863670695121c8c720123a6d0697491867ccafc091607888cc81b56 +EBUILD spew-1.0.8-r1.ebuild 1077 BLAKE2B 505b6271d37c638c396f3d6258bdef0d6e7288054cff8aba09f9dc7683139c927bd6fb8e06c94667ea0542904d3c1b74353b57f69baedf76f671b644fd03ae5f SHA512 012b63e9f8c23adfc7e0ccfb878c1b424e74c120cd96d8ceb268ae1e26120b5f42e28a66919506456fd9092247b56f07b397edce70feafd6f1f6cda8b0100f41 +MISC metadata.xml 461 BLAKE2B 33e988b7c7846f687d9c6b83fbf3b560bde47a5be6cac346baa32a8f783ca7c0c5ba64be1c40411630884504aec99429e4a7f9cb9648fb55a23fd046c0be614d SHA512 fe2f2e2cac973a052af263b4021d198835077aaa43dcae82a1101b8156a6cc6d309078f78d6216234ea591a9202afaae298aa6d87755e7e3c032a5d841056597 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 +} |