diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-benchmarks | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-benchmarks')
166 files changed, 4835 insertions, 0 deletions
diff --git a/app-benchmarks/acovea-gtk/Manifest b/app-benchmarks/acovea-gtk/Manifest new file mode 100644 index 000000000000..8b183311dbdc --- /dev/null +++ b/app-benchmarks/acovea-gtk/Manifest @@ -0,0 +1 @@ +DIST acovea-gtk-1.0.1.tar.gz 407230 SHA256 9214168a66c69d3a76251c265a31a8a87220cd1e9d5865785e92f00cd4f8bae8 SHA512 c26eb0059b0f6a8a77ebff2f9cad9a9d543a2932f035e520c40bc3b917d1570533be934571528b7e2e53932e56afa77eff108a1ac51678a514960563a775c2ed WHIRLPOOL 66e8f6653d2ffbb9ec50cf3654f5522bd73f8fc709887e4b5dd6f0ee863583a7c5be6770f412bc7ae8c58d41314333f4d505d55de3eb0078e0d05ea992e2fd00 diff --git a/app-benchmarks/acovea-gtk/acovea-gtk-1.0.1.ebuild b/app-benchmarks/acovea-gtk/acovea-gtk-1.0.1.ebuild new file mode 100644 index 000000000000..95d84255d23f --- /dev/null +++ b/app-benchmarks/acovea-gtk/acovea-gtk-1.0.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="Analysis of Compiler Options via Evolutionary Algorithm GUI" +HOMEPAGE="http://www.coyotegulch.com/products/acovea/" +SRC_URI="http://www.coyotegulch.com/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="unicode" + +RDEPEND=">=app-benchmarks/acovea-5 + dev-cpp/gtkmm:2.4" +DEPEND="${RDEPEND}" + +src_prepare() { + use unicode && epatch "${FILESDIR}"/${P}-unicode.patch + epatch "${FILESDIR}"/${P}-{libbrahe,libsigc,gcc4.3}.patch + + eautorerconf +} + +src_install() { + DOCS=( ChangeLog NEWS README ) + default + make_desktop_entry "${PN}" Acovea-gtk \ + /usr/share/acovea-gtk/pixmaps/acovea_icon_064.png System +} diff --git a/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-gcc4.3.patch b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-gcc4.3.patch new file mode 100644 index 000000000000..30bfc96ab3fa --- /dev/null +++ b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-gcc4.3.patch @@ -0,0 +1,23 @@ +--- a/src/settings_window.cc ++++ b/src/settings_window.cc +@@ -6,6 +6,7 @@ + // This file is for your program, I won't touch it again! + + #include <gtkmm.h> ++#include <cstring> + #include "config.h" + #include "settings_window.hh" + + +--- a/src/main_window.cc ++++ b/src/main_window.cc +@@ -9,6 +9,8 @@ + #include <gtkmm.h> + #include <gtkmm/main.h> + #include <iomanip> ++#include <cstring> ++#include <sys/stat.h> + #include "config.h" + #include "main_window.hh" + + diff --git a/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-libbrahe.patch b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-libbrahe.patch new file mode 100644 index 000000000000..4511f23e92f5 --- /dev/null +++ b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-libbrahe.patch @@ -0,0 +1,8 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -22,4 +22,4 @@ + AM_CXXFLAGS = @GTKMM_CFLAGS@ + + acovea_gtk_LDFLAGS = -pthread -L//usr/lib +-acovea_gtk_LDADD = @LIBS@ @GTKMM_LIBS@ -lgthread-2.0 -lglib-2.0 -lcoyotl -levocosm -lacovea -lexpat ++acovea_gtk_LDADD = @LIBS@ @GTKMM_LIBS@ -lgthread-2.0 -lglib-2.0 -lcoyotl -levocosm -lbrahe -lacovea -lexpat diff --git a/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-libsigc.patch b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-libsigc.patch new file mode 100644 index 000000000000..aa60489ae630 --- /dev/null +++ b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-libsigc.patch @@ -0,0 +1,101 @@ +--- a/src/about_box_glade.cc ++++ b/src/about_box_glade.cc +@@ -1530,8 +1530,8 @@ + hbuttonbox1->show(); + vbox3->show(); + about_box->show(); +- about_close_button->signal_clicked().connect(SigC::slot(*this, &about_box_glade::on_about_close_button_clicked), false); +- about_box->signal_realize().connect(SigC::slot(*this, &about_box_glade::on_about_box_realize), false); ++ about_close_button->signal_clicked().connect(sigc::mem_fun(*this, &about_box_glade::on_about_close_button_clicked), false); ++ about_box->signal_realize().connect(sigc::mem_fun(*this, &about_box_glade::on_about_box_realize), false); + } + + about_box_glade::~about_box_glade() +--- a/src/main_window_glade.cc ++++ b/src/main_window_glade.cc +@@ -998,19 +998,19 @@ + main_status->show(); + vbox1->show(); + main_window->show(); +- menu_set_run_options->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_set_run_options_activate), false); +- menu_save_options_default->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_save_options_default_activate), false); +- menu_load_default_options->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_load_default_options_activate), false); +- menu_save_options->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_save_options_activate), false); +- save_load_options->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_load_options_activate), false); +- menu_quit->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_quit_activate), false); +- menu_run->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_run_activate), false); +- menu_stop->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_stop_activate), false); +- menu_save_output->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_menu_save_output_activate), false); +- menu_about->signal_activate().connect(SigC::slot(*this, &main_window_glade::on_about1_activate), false); +- toolbar_settings_button->signal_clicked().connect(SigC::slot(*this, &main_window_glade::on_toolbar_settings_button_clicked), false); +- toolbar_run_button->signal_clicked().connect(SigC::slot(*this, &main_window_glade::on_toolbar_run_button_clicked), false); +- toolbar_stop_button->signal_clicked().connect(SigC::slot(*this, &main_window_glade::on_toolbar_stop_button_clicked), false); ++ menu_set_run_options->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_set_run_options_activate), false); ++ menu_save_options_default->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_save_options_default_activate), false); ++ menu_load_default_options->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_load_default_options_activate), false); ++ menu_save_options->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_save_options_activate), false); ++ save_load_options->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_load_options_activate), false); ++ menu_quit->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_quit_activate), false); ++ menu_run->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_run_activate), false); ++ menu_stop->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_stop_activate), false); ++ menu_save_output->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_menu_save_output_activate), false); ++ menu_about->signal_activate().connect(sigc::mem_fun(*this, &main_window_glade::on_about1_activate), false); ++ toolbar_settings_button->signal_clicked().connect(sigc::mem_fun(*this, &main_window_glade::on_toolbar_settings_button_clicked), false); ++ toolbar_run_button->signal_clicked().connect(sigc::mem_fun(*this, &main_window_glade::on_toolbar_run_button_clicked), false); ++ toolbar_stop_button->signal_clicked().connect(sigc::mem_fun(*this, &main_window_glade::on_toolbar_stop_button_clicked), false); + } + + main_window_glade::~main_window_glade() +--- a/src/settings_window_glade.cc ++++ b/src/settings_window_glade.cc +@@ -391,11 +391,11 @@ + hbuttonbox3->show(); + vbox6->show(); + settings_window->show(); +- settings_benchmark_browse_button->signal_clicked().connect(SigC::slot(*this, &settings_window_glade::on_settings_benchmark_browse_button_clicked), false); +- settings_config_browse_button->signal_clicked().connect(SigC::slot(*this, &settings_window_glade::on_settings_config_browse_button_clicked), false); +- settings_seed_check->signal_toggled().connect(SigC::slot(*this, &settings_window_glade::on_settings_seed_check_toggled), false); +- settings_cancel_button->signal_clicked().connect(SigC::slot(*this, &settings_window_glade::on_settings_cancel_button_clicked), false); +- settings_okay_button->signal_clicked().connect(SigC::slot(*this, &settings_window_glade::on_settings_okay_button_clicked), false); ++ settings_benchmark_browse_button->signal_clicked().connect(sigc::mem_fun(*this, &settings_window_glade::on_settings_benchmark_browse_button_clicked), false); ++ settings_config_browse_button->signal_clicked().connect(sigc::mem_fun(*this, &settings_window_glade::on_settings_config_browse_button_clicked), false); ++ settings_seed_check->signal_toggled().connect(sigc::mem_fun(*this, &settings_window_glade::on_settings_seed_check_toggled), false); ++ settings_cancel_button->signal_clicked().connect(sigc::mem_fun(*this, &settings_window_glade::on_settings_cancel_button_clicked), false); ++ settings_okay_button->signal_clicked().connect(sigc::mem_fun(*this, &settings_window_glade::on_settings_okay_button_clicked), false); + } + + settings_window_glade::~settings_window_glade() +--- a/src/about_box_glade.cc ++++ b/src/about_box_glade.cc +@@ -14,8 +14,7 @@ + #endif // + #include "config.h" + #include <gtkmmconfig.h> + #if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2 +-#include <sigc++/compatibility.h> + #define GMM_GTKMM_22_24(a,b) b + #else //gtkmm 2.2 + #define GMM_GTKMM_22_24(a,b) a +--- a/src/main_window_glade.cc ++++ b/src/main_window_glade.cc +@@ -14,8 +14,7 @@ + #endif // + #include "config.h" + #include <gtkmmconfig.h> + #if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2 +-#include <sigc++/compatibility.h> + #define GMM_GTKMM_22_24(a,b) b + #else //gtkmm 2.2 + #define GMM_GTKMM_22_24(a,b) a +--- a/src/settings_window_glade.cc ++++ b/src/settings_window_glade.cc +@@ -14,8 +14,7 @@ + #endif // + #include "config.h" + #include <gtkmmconfig.h> + #if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2 +-#include <sigc++/compatibility.h> + #define GMM_GTKMM_22_24(a,b) b + #else //gtkmm 2.2 + #define GMM_GTKMM_22_24(a,b) a + diff --git a/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-unicode.patch b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-unicode.patch new file mode 100644 index 000000000000..a81d90282f38 --- /dev/null +++ b/app-benchmarks/acovea-gtk/files/acovea-gtk-1.0.1-unicode.patch @@ -0,0 +1,12 @@ +--- a/src/main_window.cc ++++ b/src/main_window.cc +@@ -488,7 +488,7 @@ + { + Glib::RefPtr<Gtk::TextBuffer> buffer = main_window_output->get_buffer(); + Gtk::TextIter end = buffer->end(); +- buffer->insert(buffer->end(),text->c_str()); ++ buffer->insert(buffer->end(),Glib::convert (text->c_str(), "UTF-8", "ISO-8859-1")); + } + + void main_window::set_ui_running(bool running) + diff --git a/app-benchmarks/acovea-gtk/metadata.xml b/app-benchmarks/acovea-gtk/metadata.xml new file mode 100644 index 000000000000..ca0d72e3113b --- /dev/null +++ b/app-benchmarks/acovea-gtk/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/app-benchmarks/acovea/Manifest b/app-benchmarks/acovea/Manifest new file mode 100644 index 000000000000..40bda9a447ec --- /dev/null +++ b/app-benchmarks/acovea/Manifest @@ -0,0 +1 @@ +DIST libacovea-5.1.1.tar.gz 363048 SHA256 e84167ac683e6bf7720bd3edf1fc60e77961eb489d31fa2c1d0a34e7d67ae079 SHA512 47ac88d713004ccdbf31c29bd5ead3e9d869eee262f2c12e12bf9aa7ec177d2c1e175908704cd5463b314752692edcd98d69408dbeb5873caff1745535a3a365 WHIRLPOOL 420b6ec243a0e94a532091c1efebd37e42775db7c3402066849003f5325bf81ff0b87c64e6d0771dc1ccd6615484aebe1d40fec5e7ab19879596454a3cb95a4f diff --git a/app-benchmarks/acovea/acovea-5.1.1-r1.ebuild b/app-benchmarks/acovea/acovea-5.1.1-r1.ebuild new file mode 100644 index 000000000000..1e8c42409b34 --- /dev/null +++ b/app-benchmarks/acovea/acovea-5.1.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +WANT_AUTOMAKE=1.9 +inherit autotools eutils + +DESCRIPTION="Analysis of Compiler Options via Evolutionary Algorithm" +HOMEPAGE="http://www.coyotegulch.com/products/acovea/" +SRC_URI="http://www.coyotegulch.com/distfiles/lib${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="static-libs" + +RDEPEND=">=dev-libs/libcoyotl-3.1.0 + >=dev-libs/libevocosm-3.1.0 + dev-libs/expat" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/lib${P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-asneeded.patch \ + "${FILESDIR}"/${P}-free-fix.patch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-glibc-212.patch \ + "${FILESDIR}"/${P}-underlinking.patch + + if has_version ">=dev-libs/libevocosm-3.3.0"; then + epatch ${FILESDIR}"/${P}-libevocosm.patch" + fi + + eautomake +} + +src_configure() { + econf \ + --disable-dependency-tracking \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc ChangeLog NEWS README + find "${D}" -name '*.la' -exec rm -f '{}' + +} diff --git a/app-benchmarks/acovea/acovea-5.1.1.ebuild b/app-benchmarks/acovea/acovea-5.1.1.ebuild new file mode 100644 index 000000000000..55ec6e4cf165 --- /dev/null +++ b/app-benchmarks/acovea/acovea-5.1.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +WANT_AUTOMAKE=1.9 +inherit autotools eutils + +DESCRIPTION="Analysis of Compiler Options via Evolutionary Algorithm" +HOMEPAGE="http://www.coyotegulch.com/products/acovea/" +SRC_URI="http://www.coyotegulch.com/distfiles/lib${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="static-libs" + +RDEPEND=">=dev-libs/libcoyotl-3.1.0 + >=dev-libs/libevocosm-3.1.0 + dev-libs/expat" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/lib${P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-asneeded.patch \ + "${FILESDIR}"/${P}-free-fix.patch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-glibc-212.patch + + if has_version ">=dev-libs/libevocosm-3.3.0"; then + epatch ${FILESDIR}"/${P}-libevocosm.patch" + fi + + eautomake +} + +src_configure() { + econf \ + --disable-dependency-tracking \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc ChangeLog NEWS README + find "${D}" -name '*.la' -exec rm -f '{}' + +} diff --git a/app-benchmarks/acovea/files/acovea-5.1.1-asneeded.patch b/app-benchmarks/acovea/files/acovea-5.1.1-asneeded.patch new file mode 100644 index 000000000000..8bfb8a175550 --- /dev/null +++ b/app-benchmarks/acovea/files/acovea-5.1.1-asneeded.patch @@ -0,0 +1,16 @@ +--- cmdline/Makefile.am ++++ cmdline/Makefile.am +@@ -7,4 +7,4 @@ + + runacovea_SOURCES = runacovea.cpp + +-LIBS = -L../libacovea -lacovea -lcoyotl -levocosm -lexpat ++LIBS = -L../libacovea -lacovea -lcoyotl -levocosm +--- libacovea/Makefile.am ++++ libacovea/Makefile.am +@@ -16,3 +16,5 @@ + library_include_HEADERS = $(h_sources) + + DEFS=-I. -I$(srcdir) ++ ++LIBS = -lexpat diff --git a/app-benchmarks/acovea/files/acovea-5.1.1-free-fix.patch b/app-benchmarks/acovea/files/acovea-5.1.1-free-fix.patch new file mode 100644 index 000000000000..55b3b00e8897 --- /dev/null +++ b/app-benchmarks/acovea/files/acovea-5.1.1-free-fix.patch @@ -0,0 +1,12 @@ +--- benchmarks/treebench.c ++++ benchmarks/treebench.c +@@ -201,8 +201,8 @@ + if (page->m_links[n] != NULL) + recursive_destroy_page(page->m_links[n]); + +- free(page); + } ++ free(page); + } + + static void free_btree(btree * btree) diff --git a/app-benchmarks/acovea/files/acovea-5.1.1-gcc44.patch b/app-benchmarks/acovea/files/acovea-5.1.1-gcc44.patch new file mode 100644 index 000000000000..c5e5392b2f99 --- /dev/null +++ b/app-benchmarks/acovea/files/acovea-5.1.1-gcc44.patch @@ -0,0 +1,14 @@ +--- libacovea/acovea.cpp ++++ libacovea/acovea.cpp +@@ -44,10 +44,11 @@ + #include <unistd.h> + #include <sys/types.h> + #include <sys/wait.h> + + #include <vector> ++#include <cstdio> + #include <cstring> + #include <sstream> + #include <iostream> + #include <iomanip> + #include <stdexcept> diff --git a/app-benchmarks/acovea/files/acovea-5.1.1-glibc-212.patch b/app-benchmarks/acovea/files/acovea-5.1.1-glibc-212.patch new file mode 100644 index 000000000000..9763951a672a --- /dev/null +++ b/app-benchmarks/acovea/files/acovea-5.1.1-glibc-212.patch @@ -0,0 +1,12 @@ +http://bugs.gentoo.org/336260 + +--- libacovea/acovea.cpp ++++ libacovea/acovea.cpp +@@ -44,6 +44,7 @@ + #include <unistd.h> + #include <sys/types.h> + #include <sys/wait.h> ++#include <sys/stat.h> + + #include <vector> + #include <cstring> diff --git a/app-benchmarks/acovea/files/acovea-5.1.1-libevocosm.patch b/app-benchmarks/acovea/files/acovea-5.1.1-libevocosm.patch new file mode 100644 index 000000000000..f801b8c68bcb --- /dev/null +++ b/app-benchmarks/acovea/files/acovea-5.1.1-libevocosm.patch @@ -0,0 +1,119 @@ +--- libacovea/acovea.cpp ++++ libacovea/acovea.cpp +@@ -86,7 +86,7 @@ + // randomize settings of this option + void option::randomize() + { +- m_enabled = (g_random.get_rand_real2() < 0.5); ++ m_enabled = (g_random.get_real() < 0.5); + } + + // mutate this option +@@ -246,7 +246,7 @@ + m_step = 1; + + // possibly adjust value to randomize populations +- size_t choice = g_random.get_rand_index(3); ++ size_t choice = g_random.get_index(3); + + switch (choice) + { +@@ -304,12 +304,12 @@ + void tuning_option::mutate() + { + // select our mutation +- if (g_random.get_rand_real2() < 0.5) ++ if (g_random.get_real() < 0.5) + option::mutate(); + else + { + // mutate value of this option, up or down randomly +- if (g_random.get_rand_real2() < 0.5) ++ if (g_random.get_real() < 0.5) + m_value -= m_step; + else + m_value += m_step; +@@ -335,7 +335,7 @@ + enum_option::enum_option(const vector<string> & a_choices, bool a_enabled) + : option(a_enabled), + m_choices(a_choices), +- m_setting(g_random.get_rand_index(a_choices.size())) ++ m_setting(g_random.get_index(a_choices.size())) + { + // nada + } +@@ -344,7 +344,7 @@ + enum_option::enum_option(const char ** a_choices, size_t a_num_choices, bool a_enabled) + : option(a_enabled), + m_choices(), +- m_setting(g_random.get_rand_index(a_num_choices)) ++ m_setting(g_random.get_index(a_num_choices)) + { + for (int n = 0; n < a_num_choices; ++n) + m_choices.push_back(string(a_choices[n])); +@@ -369,7 +369,7 @@ + token = strtok(NULL,"|"); + } + +- m_setting = g_random.get_rand_index(m_choices.size()); ++ m_setting = g_random.get_index(m_choices.size()); + + free(choices); + } +@@ -407,17 +407,17 @@ + void enum_option::randomize() + { + // randomize enabled +- m_enabled = (g_random.get_rand_real2() < 0.5); ++ m_enabled = (g_random.get_real() < 0.5); + + // randomize setting +- m_setting = g_random.get_rand_index(m_choices.size()); ++ m_setting = g_random.get_index(m_choices.size()); + } + + // mutate this option + void enum_option::mutate() + { + // select our mutation +- if (g_random.get_rand() & 1) ++ if (g_random.get_real() < 0.5) + option::mutate(); + else + { +@@ -435,7 +435,7 @@ + + // find a different setting + while (new_setting == m_setting) +- new_setting = g_random.get_rand_index(m_choices.size()); ++ new_setting = g_random.get_index(m_choices.size()); + + m_setting = new_setting; + } +@@ -915,7 +915,7 @@ + // randomly pick an option from one of the parents + for (int n = 0; n < a_parent1.size(); ++n) + { +- if (g_random.get_rand() & 1) ++ if (g_random.get_real() < 0.5) + child.push_back(a_parent1[n]->clone()); + else + child.push_back(a_parent2[n]->clone()); +@@ -931,7 +931,7 @@ + { + for (int n = 0; n < a_options.size(); ++n) + { +- if (g_random.get_rand_real2() < a_mutation_chance) ++ if (g_random.get_real() < a_mutation_chance) + a_options[n]->mutate(); + } + } +@@ -1096,7 +1096,7 @@ + acovea_organism * child; + + // do we crossover? +- if (g_random.get_rand_real2() <= m_crossover_rate) ++ if (g_random.get_real() <= m_crossover_rate) + { + // select a second parent + size_t second_index = first_index; diff --git a/app-benchmarks/acovea/files/acovea-5.1.1-underlinking.patch b/app-benchmarks/acovea/files/acovea-5.1.1-underlinking.patch new file mode 100644 index 000000000000..06ef410b6cc6 --- /dev/null +++ b/app-benchmarks/acovea/files/acovea-5.1.1-underlinking.patch @@ -0,0 +1,10 @@ +diff --git a/cmdline/Makefile.am b/cmdline/Makefile.am +index f3c763e..8e18d9c 100644 +--- a/cmdline/Makefile.am ++++ b/cmdline/Makefile.am +@@ -7,4 +7,4 @@ bin_PROGRAMS = runacovea + + runacovea_SOURCES = runacovea.cpp + +-LIBS = -L../libacovea -lacovea -lcoyotl -levocosm ++LIBS = -L../libacovea -lacovea -lcoyotl -levocosm -lbrahe diff --git a/app-benchmarks/acovea/metadata.xml b/app-benchmarks/acovea/metadata.xml new file mode 100644 index 000000000000..ca0d72e3113b --- /dev/null +++ b/app-benchmarks/acovea/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/app-benchmarks/bashmark/Manifest b/app-benchmarks/bashmark/Manifest new file mode 100644 index 000000000000..1054a31e0780 --- /dev/null +++ b/app-benchmarks/bashmark/Manifest @@ -0,0 +1 @@ +DIST bashmark-0.6.2.tar.bz2 21944 SHA256 cdef5531069ccb9242a6c0ae3298be85053784782c4fe4a9d9518215dd2f085f SHA512 43935b44c1b871d724aca0e1a6dfd99c73c29ec276c4127186e8dc6c7b27d57554b8b32a7e2372cd0b78eb584df7ee169f51f47e6666f61eaacbe35c5d4074f8 WHIRLPOOL 93b0596d69819fecf2969edb132466d24fba4cc9a1f5d2ba5cac5a95735dd34af133afb01beca8f9588f62812c76b043acf13554dacec148636f4bbed1deff9d diff --git a/app-benchmarks/bashmark/bashmark-0.6.2.ebuild b/app-benchmarks/bashmark/bashmark-0.6.2.ebuild new file mode 100644 index 000000000000..571160233f73 --- /dev/null +++ b/app-benchmarks/bashmark/bashmark-0.6.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Geno's cross platform benchmarking suite" +HOMEPAGE="http://bashmark.coders-net.de" + +SRC_URI="http://bashmark.coders-net.de/download/src/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-as-needed.patch + epatch "${FILESDIR}"/${P}-gcc43.patch + epatch "${FILESDIR}"/${P}-gcc47.patch +} + +src_install() { + dobin bashmark + dodoc ChangeLog +} diff --git a/app-benchmarks/bashmark/files/bashmark-0.6.2-as-needed.patch b/app-benchmarks/bashmark/files/bashmark-0.6.2-as-needed.patch new file mode 100644 index 000000000000..6c01fd934e5d --- /dev/null +++ b/app-benchmarks/bashmark/files/bashmark-0.6.2-as-needed.patch @@ -0,0 +1,12 @@ +diff -ru bashmark-0.6.2-orig/makefile bashmark-0.6.2/makefile +--- bashmark-0.6.2-orig/makefile 2007-10-08 23:01:06.000000000 +0300 ++++ bashmark-0.6.2/makefile 2007-10-08 23:01:22.000000000 +0300 +@@ -10,7 +10,7 @@ + BIN = bashmark + + $(BIN): $(OBJ) +- $(LD) $(LDFLAGS) $(CXXFLAGS) $(OBJ) -o $(BIN) ++ $(LD) $(CXXFLAGS) $(OBJ) $(LDFLAGS) -o $(BIN) + + + Benchmark.o: diff --git a/app-benchmarks/bashmark/files/bashmark-0.6.2-gcc43.patch b/app-benchmarks/bashmark/files/bashmark-0.6.2-gcc43.patch new file mode 100644 index 000000000000..625abdab397b --- /dev/null +++ b/app-benchmarks/bashmark/files/bashmark-0.6.2-gcc43.patch @@ -0,0 +1,48 @@ +diff -NrU5 bashmark-0.6.2.orig/Benchmark.cpp bashmark-0.6.2/Benchmark.cpp +--- bashmark-0.6.2.orig/Benchmark.cpp 2008-06-29 11:53:07.000000000 +0200 ++++ bashmark-0.6.2/Benchmark.cpp 2008-06-29 11:54:02.000000000 +0200 +@@ -15,11 +15,11 @@ + * * + * You should have received a copy of the GNU General Public License * + * along with this software; if not, write to the Free Software * + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * + ***************************************************************************/ +-#include <string> ++#include <cstring> + #include "Benchmark.hpp" + #include "Stopwatch.hpp" + #include "Main.hpp" + + +diff -NrU5 bashmark-0.6.2.orig/main.cpp bashmark-0.6.2/main.cpp +--- bashmark-0.6.2.orig/main.cpp 2008-06-29 11:53:07.000000000 +0200 ++++ bashmark-0.6.2/main.cpp 2008-06-29 11:56:40.000000000 +0200 +@@ -17,10 +17,11 @@ + * along with this software; if not, write to the Free Software * + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * + ***************************************************************************/ + + #include <sstream> ++#include <cstring> + using std::stringstream; + + + #include "Output.hpp" + #include "Sysinfo.hpp" +diff -NrU5 bashmark-0.6.2.orig/Sysinfo.cpp bashmark-0.6.2/Sysinfo.cpp +--- bashmark-0.6.2.orig/Sysinfo.cpp 2008-06-29 11:53:07.000000000 +0200 ++++ bashmark-0.6.2/Sysinfo.cpp 2008-06-29 11:55:58.000000000 +0200 +@@ -15,11 +15,12 @@ + * * + * You should have received a copy of the GNU General Public License * + * along with this software; if not, write to the Free Software * + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * + ***************************************************************************/ +- ++ ++#include <cstring> + #include "Sysinfo.hpp" + + using Geno::Sysinfo; + using Geno::Cpu_Info; + diff --git a/app-benchmarks/bashmark/files/bashmark-0.6.2-gcc47.patch b/app-benchmarks/bashmark/files/bashmark-0.6.2-gcc47.patch new file mode 100644 index 000000000000..cb26d32b1fd6 --- /dev/null +++ b/app-benchmarks/bashmark/files/bashmark-0.6.2-gcc47.patch @@ -0,0 +1,29 @@ + https://bugs.gentoo.org/422577 + + error: 'usleep' was not declared in this scope + + + Benchmark.cpp | 1 + + main.cpp | 1 + + 2 files changed, 2 insertions(+) + +--- a/Benchmark.cpp ++++ b/Benchmark.cpp +@@ -18,6 +18,7 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * + ***************************************************************************/ + #include <cstring> ++#include <unistd.h> + #include "Benchmark.hpp" + #include "Stopwatch.hpp" + #include "Main.hpp" +--- a/main.cpp ++++ b/main.cpp +@@ -20,6 +20,7 @@ + + #include <sstream> + #include <cstring> ++#include <unistd.h> + using std::stringstream; + + diff --git a/app-benchmarks/bashmark/metadata.xml b/app-benchmarks/bashmark/metadata.xml new file mode 100644 index 000000000000..f50ab76d5abd --- /dev/null +++ b/app-benchmarks/bashmark/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> +</pkgmetadata> diff --git a/app-benchmarks/bonnie++/Manifest b/app-benchmarks/bonnie++/Manifest new file mode 100644 index 000000000000..d04c043d5296 --- /dev/null +++ b/app-benchmarks/bonnie++/Manifest @@ -0,0 +1,2 @@ +DIST bonnie++-1.96.tgz 105183 SHA256 9c9d87bf09ac5a42a915ceeb9d8bb8358c0ca4642d86b85ed48ca5f15ee3456c SHA512 d389545be68eb236382ac1cc361d171e28b6204c9ea2427a6d4743086fb16a3a1ee78acc35fd0706237d8d90dd8403872ed743583496b1e2512fa57242ff0bb8 WHIRLPOOL 57b04f3cac809bd66e32c895c857bfce969ae16a207eecef743b5c522b6d7496bf518d352a673011fba3e9073f541a274cbc9a4ae5ddd88b37cb386ea2b2e5d4 +DIST bonnie++-1.97.tgz 102604 SHA256 44f5a05937648a6526ba99354555d7d15f2dd392e55d3436f6746da6f6c35982 SHA512 985fd4d0ef643fda5363e61609a5d73206ecfdd1c27470cc7babeaf9b7d87136c6bf40f62366d3f3ea58c50a307fa62aea59dc5efa69854fff9c43d1c940d3ab WHIRLPOOL 23af9926691868a208fd69f7ec401fa0c2332835ccc63e4b0143497faabb02f21ddd56a41014b532287f4418e0ac92c712aff2bc0657ad2512961fa5aa3567b9 diff --git a/app-benchmarks/bonnie++/bonnie++-1.96-r1.ebuild b/app-benchmarks/bonnie++/bonnie++-1.96-r1.ebuild new file mode 100644 index 000000000000..b37e43482f30 --- /dev/null +++ b/app-benchmarks/bonnie++/bonnie++-1.96-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Hard drive bottleneck testing benchmark suite" +HOMEPAGE="http://www.coker.com.au/bonnie++/" +SRC_URI="http://www.coker.com.au/bonnie++/experimental/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-compile-flags.patch +} + +src_configure() { + econf \ + $(use_with debug) \ + --disable-stripping \ + || die +} + +src_compile() { + emake || die "emake failed" + emake zcav || die "emake zcav failed" # see #9073 +} + +src_install() { + dosbin bonnie++ zcav || die + dobin bon_csv2html bon_csv2txt || die + doman bon_csv2html.1 bon_csv2txt.1 bonnie++.8 zcav.8 + dohtml readme.html + dodoc changelog.txt credits.txt +} diff --git a/app-benchmarks/bonnie++/bonnie++-1.96.ebuild b/app-benchmarks/bonnie++/bonnie++-1.96.ebuild new file mode 100644 index 000000000000..b0e81de23099 --- /dev/null +++ b/app-benchmarks/bonnie++/bonnie++-1.96.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Hard drive bottleneck testing benchmark suite" +HOMEPAGE="http://www.coker.com.au/bonnie++/" +SRC_URI="http://www.coker.com.au/bonnie++/experimental/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +src_compile() { + econf \ + $(use_with debug) \ + --disable-stripping \ + || die + emake || die "emake failed" + emake zcav || die "emake zcav failed" # see #9073 +} + +src_install() { + dosbin bonnie++ zcav || die + dobin bon_csv2html bon_csv2txt || die + doman bon_csv2html.1 bon_csv2txt.1 bonnie++.8 zcav.8 + dohtml readme.html + dodoc changelog.txt credits.txt +} diff --git a/app-benchmarks/bonnie++/bonnie++-1.97.ebuild b/app-benchmarks/bonnie++/bonnie++-1.97.ebuild new file mode 100644 index 000000000000..66c735bc2f43 --- /dev/null +++ b/app-benchmarks/bonnie++/bonnie++-1.97.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Hard drive bottleneck testing benchmark suite" +HOMEPAGE="http://www.coker.com.au/bonnie++/" +SRC_URI="http://www.coker.com.au/bonnie++/experimental/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +# hmm? +S="${WORKDIR}/${P}.1" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.96-compile-flags.patch" +} + +src_configure() { + econf \ + $(use_with debug) \ + --disable-stripping \ + || die +} + +src_compile() { + emake || die "emake failed" + emake zcav || die "emake zcav failed" # see #9073 +} + +src_install() { + dosbin bonnie++ zcav || die + dobin bon_csv2html bon_csv2txt || die + doman bon_csv2html.1 bon_csv2txt.1 bonnie++.8 zcav.8 + dohtml readme.html + dodoc changelog.txt credits.txt +} diff --git a/app-benchmarks/bonnie++/files/bonnie++-1.93c-64bit.patch b/app-benchmarks/bonnie++/files/bonnie++-1.93c-64bit.patch new file mode 100644 index 000000000000..2af76d8f8c80 --- /dev/null +++ b/app-benchmarks/bonnie++/files/bonnie++-1.93c-64bit.patch @@ -0,0 +1,15 @@ +--- getc_putc.cpp.old 2004-09-15 02:37:21.500489552 +0200 ++++ getc_putc.cpp 2004-09-15 02:40:58.623481840 +0200 +@@ -165,7 +165,11 @@ + int size = 0, wrote; + while(size < file_size) + { +- wrote = write(FILE_FD, buf, min(sizeof(buf), (unsigned int)file_size - size)); ++ //wrote = write(FILE_FD, buf, min(sizeof(buf), (unsigned int)file_size - size)); ++ /* ++ * gcc doesn't like above line. ? : should do the job as good as min()... ++ */ ++ wrote = write(FILE_FD, buf, (sizeof(buf) < (file_size - size) ? (sizeof(buf)):(file_size - size))); + if(wrote < 0) + { + fprintf(stderr, "Can't extend file - disk full?\n"); diff --git a/app-benchmarks/bonnie++/files/bonnie++-1.93c-missing_include.patch b/app-benchmarks/bonnie++/files/bonnie++-1.93c-missing_include.patch new file mode 100644 index 000000000000..2afe02b496bd --- /dev/null +++ b/app-benchmarks/bonnie++/files/bonnie++-1.93c-missing_include.patch @@ -0,0 +1,46 @@ +diff -Naur bonnie++-1.93c.orig/bon_csv2html.cpp bonnie++-1.93c/bon_csv2html.cpp +--- bonnie++-1.93c.orig/bon_csv2html.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/bon_csv2html.cpp 2008-05-02 14:13:57.000000000 +0200 +@@ -3,6 +3,7 @@ + #include <vector> + #include <string.h> + #include <math.h> ++#include <stdlib.h> + + // Maximum number of items expected on a csv line + #define MAX_ITEMS 48 +diff -Naur bonnie++-1.93c.orig/getc_putc.cpp bonnie++-1.93c/getc_putc.cpp +--- bonnie++-1.93c.orig/getc_putc.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/getc_putc.cpp 2008-05-02 14:19:15.000000000 +0200 +@@ -12,6 +12,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> ++#include <string.h> + #include <vector> + + #include "duration.h" +diff -Naur bonnie++-1.93c.orig/getc_putc_helper.cpp bonnie++-1.93c/getc_putc_helper.cpp +--- bonnie++-1.93c.orig/getc_putc_helper.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/getc_putc_helper.cpp 2008-05-02 14:19:57.000000000 +0200 +@@ -7,6 +7,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> ++#include <string.h> + #include "duration.h" + #include <vector> + #include "getc_putc.h" +diff -Naur bonnie++-1.93c.orig/zcav.cpp bonnie++-1.93c/zcav.cpp +--- bonnie++-1.93c.orig/zcav.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/zcav.cpp 2008-05-02 14:20:42.000000000 +0200 +@@ -9,6 +9,9 @@ + #include "getopt.h" + #endif + ++#include <stdlib.h> ++#include <string.h> ++ + #define TOO_MANY_LOOPS 100 + + void usage() diff --git a/app-benchmarks/bonnie++/files/bonnie++-1.94-missing_include.patch b/app-benchmarks/bonnie++/files/bonnie++-1.94-missing_include.patch new file mode 100644 index 000000000000..2afe02b496bd --- /dev/null +++ b/app-benchmarks/bonnie++/files/bonnie++-1.94-missing_include.patch @@ -0,0 +1,46 @@ +diff -Naur bonnie++-1.93c.orig/bon_csv2html.cpp bonnie++-1.93c/bon_csv2html.cpp +--- bonnie++-1.93c.orig/bon_csv2html.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/bon_csv2html.cpp 2008-05-02 14:13:57.000000000 +0200 +@@ -3,6 +3,7 @@ + #include <vector> + #include <string.h> + #include <math.h> ++#include <stdlib.h> + + // Maximum number of items expected on a csv line + #define MAX_ITEMS 48 +diff -Naur bonnie++-1.93c.orig/getc_putc.cpp bonnie++-1.93c/getc_putc.cpp +--- bonnie++-1.93c.orig/getc_putc.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/getc_putc.cpp 2008-05-02 14:19:15.000000000 +0200 +@@ -12,6 +12,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> ++#include <string.h> + #include <vector> + + #include "duration.h" +diff -Naur bonnie++-1.93c.orig/getc_putc_helper.cpp bonnie++-1.93c/getc_putc_helper.cpp +--- bonnie++-1.93c.orig/getc_putc_helper.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/getc_putc_helper.cpp 2008-05-02 14:19:57.000000000 +0200 +@@ -7,6 +7,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> ++#include <string.h> + #include "duration.h" + #include <vector> + #include "getc_putc.h" +diff -Naur bonnie++-1.93c.orig/zcav.cpp bonnie++-1.93c/zcav.cpp +--- bonnie++-1.93c.orig/zcav.cpp 2008-05-02 14:12:19.000000000 +0200 ++++ bonnie++-1.93c/zcav.cpp 2008-05-02 14:20:42.000000000 +0200 +@@ -9,6 +9,9 @@ + #include "getopt.h" + #endif + ++#include <stdlib.h> ++#include <string.h> ++ + #define TOO_MANY_LOOPS 100 + + void usage() diff --git a/app-benchmarks/bonnie++/files/bonnie++-1.95-homepage.patch b/app-benchmarks/bonnie++/files/bonnie++-1.95-homepage.patch new file mode 100644 index 000000000000..114d4143453b --- /dev/null +++ b/app-benchmarks/bonnie++/files/bonnie++-1.95-homepage.patch @@ -0,0 +1,12 @@ +diff -Nu -Nu -uarN bonnie++-1.93c.orig/bonnie++.8 bonnie++-1.93c/bonnie++.8 +--- bonnie++-1.93c.orig/bonnie++.8 2008-05-27 09:49:18.000000000 +0200 ++++ bonnie++-1.93c/bonnie++.8 2008-05-27 09:51:50.000000000 +0200 +@@ -32,7 +32,7 @@ + INN. + .P + All the details of the tests performed by Bonnie++ are contained in the file +-.BR /usr/share/doc/bonnie++/readme.html ++.BR /usr/share/doc/bonnie++-1.95/html/readme.html + + .SH "OPTIONS" + For Bonnie++ every option is of the form of a hyphen followed by a letter and diff --git a/app-benchmarks/bonnie++/files/bonnie++-1.96-compile-flags.patch b/app-benchmarks/bonnie++/files/bonnie++-1.96-compile-flags.patch new file mode 100644 index 000000000000..05821f977ecc --- /dev/null +++ b/app-benchmarks/bonnie++/files/bonnie++-1.96-compile-flags.patch @@ -0,0 +1,17 @@ +diff --git a/Makefile.in b/Makefile.in +index 4f14819..1092891 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -9,9 +9,9 @@ prefix=@prefix@ + eprefix=@exec_prefix@ + #MORE_WARNINGS=-Weffc++ + WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope -Wcast-align -Wsign-compare -Wpointer-arith -Wwrite-strings -Wformat-security -Wswitch-enum -Winit-self $(MORE_WARNINGS) +-CFLAGS=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS) +-CXX=@CXX@ $(CFLAGS) +-LINK=@CXX@ ++CXXFLAGS += @debug@ -DNDEBUG $(WFLAGS) ++CXX=@CXX@ $(CXXFLAGS) ++LINK=@CXX@ $(LDFLAGS) + THREAD_LFLAGS=@thread_ldflags@ + + INSTALL=@INSTALL@ diff --git a/app-benchmarks/bonnie++/metadata.xml b/app-benchmarks/bonnie++/metadata.xml new file mode 100644 index 000000000000..dbb54cf3d480 --- /dev/null +++ b/app-benchmarks/bonnie++/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <longdescription> + Bonnie++ is based on the Bonnie hard drive benchmark by Tim Bray. This + program is used by ReiserFS developers, but can be useful for anyone + who wants to know how fast their hard drive or file system is. + </longdescription> +</pkgmetadata> diff --git a/app-benchmarks/bonnie/Manifest b/app-benchmarks/bonnie/Manifest new file mode 100644 index 000000000000..1b0a4305d450 --- /dev/null +++ b/app-benchmarks/bonnie/Manifest @@ -0,0 +1 @@ +DIST bonnie.tar.gz 7140 SHA256 e420ca9275ddd9aa5fdb27d86851a57eea5ff94e8ccf6ba71352d35546842937 SHA512 4cb431986870baf1d9e5f757970a4b489f89d4349f051cc2ae0aea035ce19a7962047920a3af1567e375b2c6f1e826309b044b8a8727400601203042a34ecb5f WHIRLPOOL fee140ff6110edef099ae9d1b3bc50341730c4e53bef39db8a2b63451e8dcf12322e3b74c2537c3bebf86a230de5b75c6393dd915d13ba891363493331844876 diff --git a/app-benchmarks/bonnie/bonnie-2.0.6-r1.ebuild b/app-benchmarks/bonnie/bonnie-2.0.6-r1.ebuild new file mode 100644 index 000000000000..909a18f708f0 --- /dev/null +++ b/app-benchmarks/bonnie/bonnie-2.0.6-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Performance Test of Filesystem I/O using standard C library calls" +HOMEPAGE="http://www.textuality.com/bonnie/" +SRC_URI="http://www.textuality.com/bonnie/bonnie.tar.gz" + +LICENSE="bonnie" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + epatch \ + "${FILESDIR}"/bonnie_man.patch \ + "${FILESDIR}"/Makefile.patch \ + "${FILESDIR}"/${P}-includes.patch +} + +src_compile() { + emake CC=$(tc-getCC) SYSFLAGS="${CFLAGS}" || die +} + +src_install() { + newbin Bonnie bonnie + doman bonnie.1 + dodoc Instructions +} diff --git a/app-benchmarks/bonnie/bonnie-2.0.6.ebuild b/app-benchmarks/bonnie/bonnie-2.0.6.ebuild new file mode 100644 index 000000000000..4cd7505bf0d7 --- /dev/null +++ b/app-benchmarks/bonnie/bonnie-2.0.6.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Performance Test of Filesystem I/O using standard C library calls" +HOMEPAGE="http://www.textuality.com/bonnie/" +SRC_URI="http://www.textuality.com/bonnie/bonnie.tar.gz" + +LICENSE="bonnie" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ~mips ppc ppc64 sparc x86" +IUSE="" +DEPEND="" +RDEPEND="" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} || die + epatch "${FILESDIR}"/bonnie_man.patch + epatch "${FILESDIR}"/Makefile.patch +} + +src_compile() { + make SYSFLAGS="${CFLAGS}" || die + mv Bonnie bonnie +} + +src_install() { + doman bonnie.1 + dodoc Instructions + dobin bonnie +} diff --git a/app-benchmarks/bonnie/files/Makefile.patch b/app-benchmarks/bonnie/files/Makefile.patch new file mode 100644 index 000000000000..c4367087b8b5 --- /dev/null +++ b/app-benchmarks/bonnie/files/Makefile.patch @@ -0,0 +1,17 @@ +--- a/Makefile 1996-08-29 03:45:37.000000000 +0200 ++++ b/Makefile 2011-08-25 16:07:10.757629898 +0200 +@@ -1,11 +1,11 @@ +-CFLAGS = -O $(SYSFLAGS) ++CFLAGS = $(SYSFLAGS) + + bsd: + @echo 'Options are "make bsd" and "make SysV" - the default is "bsd".' + @echo 'If you get messages about missing functions, try "make SysV."' +- make Bonnie ++ $(MAKE) Bonnie + + SysV: +- make Bonnie 'SYSFLAGS=-DSysV' ++ $(MAKE) Bonnie 'SYSFLAGS=-DSysV' + + Bonnie: diff --git a/app-benchmarks/bonnie/files/bonnie-2.0.6-includes.patch b/app-benchmarks/bonnie/files/bonnie-2.0.6-includes.patch new file mode 100644 index 000000000000..cfefe953c6f1 --- /dev/null +++ b/app-benchmarks/bonnie/files/bonnie-2.0.6-includes.patch @@ -0,0 +1,13 @@ +--- a/Bonnie.c 1996-08-28 18:23:49.000000000 +0200 ++++ b/Bonnie.c 2010-10-12 20:15:26.000000000 +0200 +@@ -29,6 +29,10 @@ + #include <fcntl.h> + #include <sys/types.h> + #include <sys/time.h> ++#include <time.h> ++#include <string.h> ++#include <stdlib.h> ++#include <sys/wait.h> + #if defined(SysV) + #include <limits.h> + #include <sys/times.h> diff --git a/app-benchmarks/bonnie/files/bonnie_man.patch b/app-benchmarks/bonnie/files/bonnie_man.patch new file mode 100644 index 000000000000..63dac33159a4 --- /dev/null +++ b/app-benchmarks/bonnie/files/bonnie_man.patch @@ -0,0 +1,16 @@ +--- bonnie.1.orig 2003-01-07 14:19:29.000000000 -0600 ++++ bonnie.1 2003-01-07 14:20:19.000000000 -0600 +@@ -60,11 +60,11 @@ + .fi + .in + .. +-.TH Bonnie 1 "2.0.6" Textuality ++.TH bonnie 1 "2.0.6" Textuality + .SH NAME + Bonnie - File system benchmark + .SH "SYNOPSIS" +-.B Bonnie ++.B bonnie + .RI "[-d\ scratch-dir]" + .RI "[-html]" + .RI "[-m\ machine-label]" diff --git a/app-benchmarks/bonnie/metadata.xml b/app-benchmarks/bonnie/metadata.xml new file mode 100644 index 000000000000..7e5a7f579109 --- /dev/null +++ b/app-benchmarks/bonnie/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> +</pkgmetadata> diff --git a/app-benchmarks/bootchart2/Manifest b/app-benchmarks/bootchart2/Manifest new file mode 100644 index 000000000000..8584afcac2f9 --- /dev/null +++ b/app-benchmarks/bootchart2/Manifest @@ -0,0 +1 @@ +DIST bootchart2-0.14.7.tar.gz 1175145 SHA256 abce617f0392b05619ee18f6a118f3445892bcedba6b762cdf467bafab2276a9 SHA512 82074a6ca6725a1b9ffe2a5d7f7bc6fd7918ab837573c23f75e7ebf209f30284ac7e59d2e84768ed313e4cee80da8e67dde167881d907fe71eff376ae9d16541 WHIRLPOOL 32b6cff0db49ccb3db0bf21b6b9fc05301a7fa0cd741149a118a41e2c12e82f5345f1a9e4c83aed53d48cf9809193554a583b3ccf37862b8af9277a458f42d58 diff --git a/app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild b/app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild new file mode 100644 index 000000000000..4e466bd85420 --- /dev/null +++ b/app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} ) + +inherit linux-info python-r1 systemd toolchain-funcs + +DESCRIPTION="Performance analysis and visualization of the system boot process" +HOMEPAGE="https://github.com/mmeeks/bootchart/" +SRC_URI="https://github.com/mmeeks/bootchart/archive/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="svg test X" + +REQUIRED_USE=" + X? ( ${PYTHON_REQUIRED_USE} ) + test? ( X )" + +RDEPEND=" + !app-benchmarks/bootchart + X? ( + dev-python/pycairo[svg?,${PYTHON_USEDEP}] + dev-python/pygtk[$(python_gen_usedep 'python2*')] + ${PYTHON_DEPS} + ) + sys-apps/lsb-release" +DEPEND="${PYTHON_DEPS}" + +S="${WORKDIR}"/${PN%2}-${PV} + +CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS" + +src_prepare() { + tc-export CC + sed \ + -e "/^install/s:py-install-compile::g" \ + -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \ + -i Makefile || die + sed \ + -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \ + -i bootchartd.conf bootchartd.in || die +} + +src_test() { + python_foreach_impl emake test +} + +src_install() { + export DOCDIR=/usr/share/doc/${PF} + default + + # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't + # just change it. Since no libraries are installed, /lib is fine. + keepdir /lib/bootchart/tmpfs + + installation() { + python_domodule pybootchartgui + + python_newscript pybootchartgui.py pybootchartgui + } + use X && python_foreach_impl installation + + newinitd "${FILESDIR}"/${PN}.init ${PN} + +} + +pkg_postinst() { + elog "If you are using an initrd during boot" + echo + elog "please add the init script to your default runlevel" + elog "rc-update add bootchart2 default" + echo +} diff --git a/app-benchmarks/bootchart2/files/bootchart2.init b/app-benchmarks/bootchart2/files/bootchart2.init new file mode 100644 index 000000000000..32cc4b8620f1 --- /dev/null +++ b/app-benchmarks/bootchart2/files/bootchart2.init @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use localmount +} + +start() { + if /bin/grep -q "rdinitrd=/sbin/bootchartd" /proc/cmdline; then + if /bin/pidof bootchart-collector> /dev/null 2>&1; then + ebegin "Scheduling termination of Bootchart" + /sbin/bootchartd start + /sbin/bootchartd wait & + eend $? + fi + else + einfo "No bootchart process found!" + eindent + einfo "This script does not start bootchart, but only schedules its termination." + einfo "Bootchart should be started from the kernel command line." + einfo "Please check the README on how to do that." + eoutdent + eend 0 + fi +} diff --git a/app-benchmarks/bootchart2/metadata.xml b/app-benchmarks/bootchart2/metadata.xml new file mode 100644 index 000000000000..8e46e4c9881b --- /dev/null +++ b/app-benchmarks/bootchart2/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">mmeeks/bootchart</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/contest/Manifest b/app-benchmarks/contest/Manifest new file mode 100644 index 000000000000..d179d78e26e9 --- /dev/null +++ b/app-benchmarks/contest/Manifest @@ -0,0 +1 @@ +DIST contest-0.61.tar.gz 33676 SHA256 f35f89cc46c9a826c218e305e8580bfce7a4a8cb05392792ac623a410ecbfdac SHA512 94da72227af07909fe4bcbbbe303cc3a04bf871a7e2f2c133b2ac7974250528e7cfbb40ae98f80f392c8b65b37f42812a46c11c77ba985702a383eda1d3682f2 WHIRLPOOL 762d56bc71a84ede16da78b757449ad226a40b64413ebc81aa7c29f40ced2dd223ae09d4eb7fba50e2d8d81b34cf6a0168afd367ef85da1e1265f6b272473423 diff --git a/app-benchmarks/contest/contest-0.61.ebuild b/app-benchmarks/contest/contest-0.61.ebuild new file mode 100644 index 000000000000..149c9dbb4b9c --- /dev/null +++ b/app-benchmarks/contest/contest-0.61.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs eutils + +DESCRIPTION="Test system responsiveness to compare different kernels" +HOMEPAGE="http://members.optusnet.com.au/ckolivas/contest/" +SRC_URI="http://members.optusnet.com.au/ckolivas/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND=">=app-benchmarks/dbench-2.0" + +src_unpack () { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/contest-fortify_sources.patch" + + #Removing -g + sed -i "s:-g::" Makefile + #Adding our cflags + sed -i "s:-O2:${CFLAGS} ${LDFLAGS}:" Makefile + sed -i -e "/^CC/s/gcc/$(tc-getCC)/" Makefile +} +src_compile() { + emake || die +} + +src_install() { + dobin contest || die + doman contest.1 + dodoc README +} diff --git a/app-benchmarks/contest/files/contest-fortify_sources.patch b/app-benchmarks/contest/files/contest-fortify_sources.patch new file mode 100644 index 000000000000..cb2e6d6dd639 --- /dev/null +++ b/app-benchmarks/contest/files/contest-fortify_sources.patch @@ -0,0 +1,11 @@ +--- bmark.c 2009-02-27 23:13:44.000000000 +0000 ++++ bmark.c 2009-02-27 23:12:44.000000000 +0000 +@@ -47,7 +47,7 @@ + } + /* child */ + +- if((tmpfd=open(TMP_FILE, O_RDWR|O_CREAT|O_TRUNC))==-1){ ++ if((tmpfd=open(TMP_FILE, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR))==-1){ + printsys("Could not open temporary file\n"); + } + if(dup2(tmpfd, TMP_FD)==-1){ diff --git a/app-benchmarks/contest/metadata.xml b/app-benchmarks/contest/metadata.xml new file mode 100644 index 000000000000..59e2b8f78cb5 --- /dev/null +++ b/app-benchmarks/contest/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/app-benchmarks/cpuburn/Manifest b/app-benchmarks/cpuburn/Manifest new file mode 100644 index 000000000000..7cf8fcf1b57f --- /dev/null +++ b/app-benchmarks/cpuburn/Manifest @@ -0,0 +1 @@ +DIST cpuburn-1.4a.tar.gz 9277 SHA256 eb191ce9bfbf453d30c218c3419573df102a3588f96c4a43686c84bb9da4bed6 SHA512 db84cabe70af0b6b3579c746f6df08c268b7145c9521fc609ce5b4cfd497dbb0639e52ab55f34110cff297ec23cf1413db28c6bff4e6f81a69722626886df7ce WHIRLPOOL e119aeaf3453357125fb0f203fdbd0bb68f52479213d6cf6462fcaf53636cb4a13b16f5350cc4b9a382ff9ccc362535f362f6b5b78165c683dcd432e281c7b46 diff --git a/app-benchmarks/cpuburn/cpuburn-1.4a-r1.ebuild b/app-benchmarks/cpuburn/cpuburn-1.4a-r1.ebuild new file mode 100644 index 000000000000..6d06937ccd3b --- /dev/null +++ b/app-benchmarks/cpuburn/cpuburn-1.4a-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic toolchain-funcs + +MY_P="${PV/./_}" + +DESCRIPTION="Designed to heavily load CPU chips [testing purposes]" +HOMEPAGE="http://pages.sbcglobal.net/redelm/" +#SRC_URI="http://pages.sbcglobal.net/redelm/cpuburn_${MY_P}_tar.gz -> ${P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-flags.patch \ + "${FILESDIR}"/01-variables.patch + use amd64 && append-flags -m32 #65719 + tc-export CC +} + +src_install() { + dodoc Design README + dobin burn{BX,K6,K7,MMX,P5,P6} +} diff --git a/app-benchmarks/cpuburn/cpuburn-1.4a.ebuild b/app-benchmarks/cpuburn/cpuburn-1.4a.ebuild new file mode 100644 index 000000000000..30ebdbef6930 --- /dev/null +++ b/app-benchmarks/cpuburn/cpuburn-1.4a.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic toolchain-funcs + +MY_P="${PV/./_}" + +DESCRIPTION="Designed to heavily load CPU chips [testing purposes]" +HOMEPAGE="http://pages.sbcglobal.net/redelm/" +#SRC_URI="http://pages.sbcglobal.net/redelm/cpuburn_${MY_P}_tar.gz -> ${P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch + use amd64 && append-flags -m32 #65719 + tc-export CC +} + +src_install() { + dodoc Design README + dobin burn{BX,K6,K7,MMX,P5,P6} +} diff --git a/app-benchmarks/cpuburn/files/01-variables.patch b/app-benchmarks/cpuburn/files/01-variables.patch new file mode 100644 index 000000000000..3e8b666c29ec --- /dev/null +++ b/app-benchmarks/cpuburn/files/01-variables.patch @@ -0,0 +1,40 @@ +--- cpuburn-1.4a.orig/burnK7.S ++++ cpuburn-1.4a/burnK7.S +@@ -74,6 +74,7 @@ int_exit: + push %eax + int $0x80 + #endif ++.data # Data allocation + .align 32,0 + .fill 64 + half: .long 0x7fffffff,0 +--- cpuburn-1.4a.orig/burnP5.S ++++ cpuburn-1.4a/burnP5.S +@@ -77,6 +77,7 @@ crunch: + #else + int $0x80 + #endif ++.data # Data allocation + .align 32,0 + half: .long 0xffffffff,0x3fdfffff + one: .long 0xffffffff,0x3fefffff +--- cpuburn-1.4a.orig/burnP6.S ++++ cpuburn-1.4a/burnP6.S +@@ -69,6 +69,7 @@ int_exit: # error abort + push %eax # *BSD syscall + int $0x80 + #endif ++.data # Data allocation + .align 32,0 + half: .long 0x7fffffff,0 + e: .long 0xffffffff,0x3fdfffff +--- cpuburn-1.4a.orig/burnK6.S ++++ cpuburn-1.4a/burnK6.S +@@ -68,6 +68,7 @@ int_exit: + push %eax + int $0x80 + #endif ++.data # Data allocation + .align 32,0 + half: .long 0x7fffffff,0 + e: .long 0xffffffff,0x3fdfffff diff --git a/app-benchmarks/cpuburn/files/cpuburn-1.4a-flags.patch b/app-benchmarks/cpuburn/files/cpuburn-1.4a-flags.patch new file mode 100644 index 000000000000..97b8836c0af4 --- /dev/null +++ b/app-benchmarks/cpuburn/files/cpuburn-1.4a-flags.patch @@ -0,0 +1,7 @@ +--- Makefile.orig 2001-06-16 05:39:17.000000000 +0200 ++++ Makefile 2010-10-12 20:31:38.000000000 +0200 +@@ -1,3 +1,3 @@ + all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX + .S: +- gcc -s -nostdlib -o $@ $< ++ $(CC) $(CFLAGS) $(LDFLAGS) -nostdlib -o $@ $< diff --git a/app-benchmarks/cpuburn/metadata.xml b/app-benchmarks/cpuburn/metadata.xml new file mode 100644 index 000000000000..afc8cb4d2030 --- /dev/null +++ b/app-benchmarks/cpuburn/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <longdescription> + CPUBurn is the ultimate stability testing tool for overclockers. The + program heats up any x86 CPU to the maximum possible operating + temperature that is achievable by using ordinary software. + </longdescription> +</pkgmetadata> diff --git a/app-benchmarks/dbench/Manifest b/app-benchmarks/dbench/Manifest new file mode 100644 index 000000000000..39640a7d581b --- /dev/null +++ b/app-benchmarks/dbench/Manifest @@ -0,0 +1 @@ +DIST dbench-4.0.tar.gz 2055359 SHA256 6001893f34e68a3cfeb5d424e1f2bfef005df96a22d86f35dc770c5bccf3aa8a SHA512 70c65c5b079edf745c267be753919c780153c9064dbda95c270b3c2c1d8c16e84fab4e743eb777436813678ecff13ec2b55d011e8acc4bd83e58f0dda7438e7f WHIRLPOOL f39d17ec5ec6e8618045337c408f7c7dc722a8c54c68872ca5a03c8affd35de1f6e6d5e842e90dcb889816fc7891f31b9217d2591ec2e90c056d92fdca90da89 diff --git a/app-benchmarks/dbench/dbench-4.0.ebuild b/app-benchmarks/dbench/dbench-4.0.ebuild new file mode 100644 index 000000000000..a9c818f7f109 --- /dev/null +++ b/app-benchmarks/dbench/dbench-4.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +inherit eutils autotools + +DESCRIPTION="Popular filesystem benchmark" +SRC_URI="ftp://ftp.samba.org/pub/tridge/dbench/${P}.tar.gz" +HOMEPAGE="http://samba.org/ftp/tridge/dbench/" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 hppa ppc ppc64 sparc x86" +IUSE="" + +DEPEND="dev-libs/popt" +RDEPEND="${DEPEND}" + +src_prepare() { + eautoheader + eautoconf + sed -i -e \ + "s:\$(CC) -o:\$(CC) \$(LDFLAGS) -o:" \ + Makefile.in || die + eautoreconf +} + +src_compile() { + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin dbench tbench tbench_srv + dodoc README INSTALL + doman dbench.1 + insinto /usr/share/dbench + doins client.txt +} + +pkg_postinst() { + elog "You can find the client.txt file in ${ROOT}usr/share/dbench." +} diff --git a/app-benchmarks/dbench/metadata.xml b/app-benchmarks/dbench/metadata.xml new file mode 100644 index 000000000000..ca0d72e3113b --- /dev/null +++ b/app-benchmarks/dbench/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/app-benchmarks/expedite/Manifest b/app-benchmarks/expedite/Manifest new file mode 100644 index 000000000000..d75f7b4a8dda --- /dev/null +++ b/app-benchmarks/expedite/Manifest @@ -0,0 +1 @@ +DIST expedite-1.7.10.tar.bz2 5736765 SHA256 91d0290ba3635a4440c389647643beaa8e39def2789d685d54a58a723398cc10 SHA512 13085583b68e8c44696e39d7c88b2b17cddfc3a1800d619810827830be9106062289fe6c79c5b1e84c568ee2f38c400251f2342f9c773c6ef4a1a0e3daa503f8 WHIRLPOOL 85fa61af7077ad58173ac3cb423f676040c4a7a07de9c2b73e0119e5d0a5d613f23d9911426807911b4287c121620ae8e254edfc96ea60157a5418ae68b10a90 diff --git a/app-benchmarks/expedite/expedite-1.7.10.ebuild b/app-benchmarks/expedite/expedite-1.7.10.ebuild new file mode 100644 index 000000000000..bdd94549434e --- /dev/null +++ b/app-benchmarks/expedite/expedite-1.7.10.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +EKEY_STATE="snap" + +inherit enlightenment + +DESCRIPTION="Performance and correctness test suite for Evas" +SRC_URI="http://download.enlightenment.org/releases/${P}.tar.bz2" + +LICENSE="BSD-2" +IUSE="directfb fbcon opengl X xcb" + +RDEPEND=">=dev-libs/eina-${PV} + >=media-libs/evas-${PV}[directfb?,fbcon?,opengl?,X?,xcb?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_configure() { + if use X ; then + if use xcb ; then + ewarn "You have enabled both 'X' and 'xcb', so we will use" + ewarn "X as it's considered the most stable for evas." + fi + E_ECONF+=( + --disable-xrender-xcb + $(use_enable opengl opengl-x11) + ) + elif use xcb ; then + E_ECONF+=( + --enable-xrender-xcb + ) + else + E_ECONF+=( + --disable-gl-xlib + --disable-software-xcb + --disable-gl-xcb + ) + fi + E_ECONF+=( + $(use_enable directfb) + $(use_enable fbcon fb) + $(use_enable X simple-x11) + $(use_enable X software-x11) + $(use_enable X xrender-x11) + ) + enlightenment_src_configure +} diff --git a/app-benchmarks/expedite/metadata.xml b/app-benchmarks/expedite/metadata.xml new file mode 100644 index 000000000000..5e1261900709 --- /dev/null +++ b/app-benchmarks/expedite/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>enlightenment</herd> +</pkgmetadata> diff --git a/app-benchmarks/filebench/Manifest b/app-benchmarks/filebench/Manifest new file mode 100644 index 000000000000..43f88c7173e8 --- /dev/null +++ b/app-benchmarks/filebench/Manifest @@ -0,0 +1 @@ +DIST filebench-1.4.9.1.tar.gz 349535 SHA256 a1d1516083a1d46bccf6246caf709e800e93eccf17572583343e77726b720678 SHA512 a6400aba4266fcf98e46c4824796a594adc5d5e7f9605f6e1ab01973ce448e27948991e453b186947a8d89f8603a69a3ba955edf2a1abccd2935196af7b6f0d1 WHIRLPOOL 5d5a5c1a2d9eeaaaaf14cd97725ce8ba47ed1f06e1713a6315320697a37a5b12027aa09f819c3e3b1a75cc435823d661e532e7ca319009eb928dc62a778b9bf4 diff --git a/app-benchmarks/filebench/filebench-1.4.9.1.ebuild b/app-benchmarks/filebench/filebench-1.4.9.1.ebuild new file mode 100644 index 000000000000..bc981643acde --- /dev/null +++ b/app-benchmarks/filebench/filebench-1.4.9.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils autotools + +DESCRIPTION="Filebench - A Model Based File System Workload Generator" +HOMEPAGE="http://sourceforge.net/projects/filebench/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="CDDL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/libaio + sys-devel/flex + sys-devel/bison" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + #epatch "${FILESDIR}/linux-port.patch" + eautoreconf +} + +src_compile() { + econf + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" + + dodoc README AUTHORS +} diff --git a/app-benchmarks/filebench/files/linux-port.patch b/app-benchmarks/filebench/files/linux-port.patch new file mode 100644 index 000000000000..c0608128d558 --- /dev/null +++ b/app-benchmarks/filebench/files/linux-port.patch @@ -0,0 +1,369 @@ +Index: filebench-1.2.4/filebench/flowop_library.c +=================================================================== +--- filebench-1.2.4.orig/filebench/flowop_library.c ++++ filebench-1.2.4/filebench/flowop_library.c +@@ -789,6 +789,7 @@ flowoplib_aiowait(threadflow_t *threadfl + for (ncompleted = 0, inprogress = 0, + aio = flowop->fo_thread->tf_aiolist; + ncompleted < todo, aio != NULL; aio = aio->al_next) { ++ int result; + + result = aio_error64(&aio->al_aiocb); + +Index: filebench-1.2.4/filebench/fileset.c +=================================================================== +--- filebench-1.2.4.orig/filebench/fileset.c ++++ filebench-1.2.4/filebench/fileset.c +@@ -32,8 +32,9 @@ + #include <math.h> + #include <libgen.h> + #include <sys/mman.h> +-#include "fileset.h" ++ + #include "filebench.h" ++#include "fileset.h" + #include "gamma_dist.h" + + /* +@@ -631,9 +632,9 @@ fileset_create(fileset_t *fileset) + /* we are re-using */ + reusing = 1; + filebench_log(LOG_VERBOSE, +- "Re-using %s %s on %s file system.", ++ "Re-using %s %s.", + fileset_entity_name(fileset), +- fileset_name, sb.st_fstype); ++ fileset_name); + } + } + (void) mkdir(path, 0755); +Index: filebench-1.2.4/filebench/filebench.h +=================================================================== +--- filebench-1.2.4.orig/filebench/filebench.h ++++ filebench-1.2.4/filebench/filebench.h +@@ -32,6 +32,15 @@ + + #include <stdio.h> + #include <string.h> ++#include <errno.h> ++ ++#ifndef HAVE_BOOLEAN_T ++typedef enum { B_FALSE, B_TRUE } boolean_t; ++#endif ++ ++#ifndef HAVE_U_LONGLONG_T ++typedef unsigned long long u_longlong_t; ++#endif + + #include "vars.h" + #include "misc.h" +Index: filebench-1.2.4/filebench/eventgen.c +=================================================================== +--- filebench-1.2.4.orig/filebench/eventgen.c ++++ filebench-1.2.4/filebench/eventgen.c +@@ -40,9 +40,10 @@ + */ + + #include <sys/time.h> ++ ++#include "filebench.h" + #include "vars.h" + #include "eventgen.h" +-#include "filebench.h" + #include "flowop.h" + #include "ipc.h" + +Index: filebench-1.2.4/filebench/procflow.c +=================================================================== +--- filebench-1.2.4.orig/filebench/procflow.c ++++ filebench-1.2.4/filebench/procflow.c +@@ -30,8 +30,8 @@ + #include <sys/stat.h> + #include <sys/wait.h> + +-#include "procflow.h" + #include "filebench.h" ++#include "procflow.h" + #include "flowop.h" + #include "ipc.h" + +@@ -162,7 +162,7 @@ procflow_createproc(procflow_t *procflow + } + + #else +- if (execl(execname, procname, "-a", procname, "-i", ++ if (execlp(execname, procname, "-a", procname, "-i", + instance, "-s", shmaddr, "-m", shmpath, NULL) < 0) { + filebench_log(LOG_ERROR, + "procflow exec proc failed: %s", +Index: filebench-1.2.4/filebench/threadflow.c +=================================================================== +--- filebench-1.2.4.orig/filebench/threadflow.c ++++ filebench-1.2.4/filebench/threadflow.c +@@ -31,8 +31,9 @@ + #include <sys/lwp.h> + #endif + #include <signal.h> +-#include "threadflow.h" ++ + #include "filebench.h" ++#include "threadflow.h" + #include "flowop.h" + #include "ipc.h" + +Index: filebench-1.2.4/filebench/utils.c +=================================================================== +--- filebench-1.2.4.orig/filebench/utils.c ++++ filebench-1.2.4/filebench/utils.c +@@ -34,6 +34,8 @@ + #ifdef HAVE_STDINT_H + #include <stdint.h> + #endif ++ ++#include "filebench.h" + #include "utils.h" + #include "parsertypes.h" + +Index: filebench-1.2.4/filebench/vars.c +=================================================================== +--- filebench-1.2.4.orig/filebench/vars.c ++++ filebench-1.2.4/filebench/vars.c +@@ -30,12 +30,12 @@ + #include <string.h> + #include <errno.h> + ++#include "filebench.h" + #include "vars.h" + #include "misc.h" + #include "utils.h" + #include "stats.h" + #include "eventgen.h" +-#include "filebench.h" + #include "fb_random.h" + + static var_t *var_find_dynamic(char *name); +Index: filebench-1.2.4/filebench/parser_gram.y +=================================================================== +--- filebench-1.2.4.orig/filebench/parser_gram.y ++++ filebench-1.2.4/filebench/parser_gram.y +@@ -46,8 +46,9 @@ + #ifdef HAVE_LIBTECLA + #include <libtecla.h> + #endif +-#include "parsertypes.h" ++ + #include "filebench.h" ++#include "parsertypes.h" + #include "utils.h" + #include "stats.h" + #include "vars.h" +@@ -2642,7 +2643,7 @@ parser_help(cmd_t *cmd) + } else { + filebench_log(LOG_INFO, + "load <personality> (ls " +- "/usr/benchmarks/filebench/workloads for list)"); ++ FILEBENCHDIR "/workloads for list)"); + } + } + +Index: filebench-1.2.4/filebench/parser_lex.l +=================================================================== +--- filebench-1.2.4.orig/filebench/parser_lex.l ++++ filebench-1.2.4/filebench/parser_lex.l +@@ -38,9 +38,10 @@ + #ifdef HAVE_STDINT_H + #include <stdint.h> + #endif ++ ++#include "filebench.h" + #include "parsertypes.h" + #include "utils.h" +-#include "filebench.h" + + #include "parser_gram.h" + +Index: filebench-1.2.4/filebench/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/filebench/Makefile.am ++++ filebench-1.2.4/filebench/Makefile.am +@@ -7,19 +7,19 @@ + # + + bin_PROGRAMS = go_filebench +-filebench_SOURCES = gamma_dist.c misc.c procflow.c threadflow.c \ ++go_filebench_SOURCES = gamma_dist.c misc.c procflow.c threadflow.c \ + utils.c flowop.c flowop_library.c ipc.c \ + vars.c stats.c eventgen.c fileset.c fb_random.c \ + parser_gram.y parser_lex.l +-filebenchdir = $(datadir)/filebench +-INCLUDES = -I../intl -DFILEBENCHDIR=\"$(prefix)/filebench\" ++INCLUDES = -I../intl -DFILEBENCHDIR=\"$(FILEBENCHDIR)\" + + MV=@MV@ + LEX=@LEX@ + YACC=@YACC@ +-LFLAGS = @LFLAGS@ +-YFLAGS = @YFLAGS@ ++AM_LFLAGS = @LFLAGS@ ++AM_YFLAGS = @YFLAGS@ + DEFS = -D_REENTRANT @DEFINES@ ++LIBS = @LDLIBS@ + BUILD = @BUILD@ + + parser_lex.c: parser_lex.l parser_gram.h Makefile +Index: filebench-1.2.4/configure.in +=================================================================== +--- filebench-1.2.4.orig/configure.in ++++ filebench-1.2.4/configure.in +@@ -73,8 +73,8 @@ case "$host_os$host_cpu" in + YFLAGS="-d" + AC_DEFINE(HAVE_OFF64_T, 1, + [ Define if we can use 64 bit files ]) +- FILEBENCHDIR=${prefix}/filebench +- FILEBENCHBIN=${prefix}/bin ++ FILEBENCHDIR=${datadir}/filebench ++ FILEBENCHBIN=${bindir} + ;; + esac + +@@ -324,6 +324,6 @@ AC_SUBST(SRCDIR) + AC_SUBST(FILEBENCHDIR) + AC_SUBST(FILEBENCHBIN) + +-AC_CONFIG_FILES([Makefile filebench/Makefile fastsu/Makefile workloads/Makefile workloads/build/Makefile scripts/Makefile benchpoint/Makefile benchpoint/bin/Makefile benchpoint/config/Makefile benchpoint/functions/Makefile benchpoint/profiles/Makefile]) ++AC_CONFIG_FILES([Makefile filebench/Makefile fastsu/Makefile workloads/Makefile workloads/build/Makefile scripts/Makefile benchpoint/Makefile benchpoint/bin/Makefile benchpoint/config/Makefile benchpoint/functions/Makefile benchpoint/profiles/Makefile bin/Makefile]) + + AC_OUTPUT +Index: filebench-1.2.4/fastsu/fastsu.c +=================================================================== +--- filebench-1.2.4.orig/fastsu/fastsu.c ++++ filebench-1.2.4/fastsu/fastsu.c +@@ -1,23 +1,26 @@ + #include <unistd.h> + #include <stdio.h> + #include <stdlib.h> +-#include <strings.h> ++#include <string.h> + +-void ++int + main(int argc, char *argv[], char *envp[]) + { + char *shell; + char cmd[2048]; + +- *cmd = NULL; ++ *cmd = '\0'; + shell=getenv("SHELL"); +- *(argv++); ++ argv++; + argc--; + while(argc-- != 0) { + (void) strcat(cmd,*argv); + (void) strcat(cmd," "); +- *(argv++); ++ argv++; + } + + execlp(shell, shell, "-c", cmd, (char *) 0); ++ ++ /* control should not reach here */ ++ return -1; + } +Index: filebench-1.2.4/benchpoint/config/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/benchpoint/config/Makefile.am ++++ filebench-1.2.4/benchpoint/config/Makefile.am +@@ -6,8 +6,7 @@ + # See the file LICENSING in this distribution for details. + # + +-filebenchdir = $(prefix)/filebench +-configdir = $(filebenchdir)/config ++configdir = ${FILEBENCHDIR}/config + + config_DATA = *.conf + +Index: filebench-1.2.4/benchpoint/profiles/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/benchpoint/profiles/Makefile.am ++++ filebench-1.2.4/benchpoint/profiles/Makefile.am +@@ -6,8 +6,7 @@ + # See the file LICENSING in this distribution for details. + # + +-filebenchdir = $(prefix)/filebench +-configdir = $(filebenchdir)/config ++configdir = ${FILEBENCHDIR}/config + + config_DATA = *.prof + +Index: filebench-1.2.4/bin/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/bin/Makefile.am ++++ filebench-1.2.4/bin/Makefile.am +@@ -6,8 +6,5 @@ + # See the file LICENSING in this distribution for details. + # + +-filebenchdir = $(prefix)/filebench +-scriptsdir = $(filebenchdir)/bin +- +-scripts_SCRIPTS = filebench ++bin_SCRIPTS = filebench + +Index: filebench-1.2.4/benchpoint/functions/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/benchpoint/functions/Makefile.am ++++ filebench-1.2.4/benchpoint/functions/Makefile.am +@@ -6,8 +6,7 @@ + # See the file LICENSING in this distribution for details. + # + +-filebenchdir = $(prefix)/filebench +-configdir = $(filebenchdir)/config ++configdir = ${FILEBENCHDIR}/config + + config_SCRIPTS = *.func + +Index: filebench-1.2.4/scripts/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/scripts/Makefile.am ++++ filebench-1.2.4/scripts/Makefile.am +@@ -6,8 +6,7 @@ + # See the file LICENSING in this distribution for details. + # + +-filebenchdir = $(prefix)/filebench +-scriptsdir = $(filebenchdir)/scripts ++scriptsdir = ${FILEBENCHDIR}/scripts + + scripts_SCRIPTS = filebench_compare filebench_summary filebench_plot fs_flush + +Index: filebench-1.2.4/workloads/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/workloads/Makefile.am ++++ filebench-1.2.4/workloads/Makefile.am +@@ -6,8 +6,6 @@ + # See the file LICENSING in this distribution for details. + # + +-filebenchdir = $(datadir)/filebench +- + SUBDIRS = build + + pkg: filebench +Index: filebench-1.2.4/workloads/build/Makefile.am +=================================================================== +--- filebench-1.2.4.orig/workloads/build/Makefile.am ++++ filebench-1.2.4/workloads/build/Makefile.am +@@ -6,8 +6,7 @@ + # See the file LICENSING in this distribution for details. + # + +-filebenchdir = $(prefix)/filebench +-workloadsdir = $(filebenchdir)/workloads ++workloadsdir = ${FILEBENCHDIR}/workloads + + workloads_DATA = BUILD \ + bringover.f \ diff --git a/app-benchmarks/filebench/metadata.xml b/app-benchmarks/filebench/metadata.xml new file mode 100644 index 000000000000..fd1acd6e5c27 --- /dev/null +++ b/app-benchmarks/filebench/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <upstream> + <remote-id type="sourceforge">filebench</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/forkbomb/Manifest b/app-benchmarks/forkbomb/Manifest new file mode 100644 index 000000000000..505508723ad6 --- /dev/null +++ b/app-benchmarks/forkbomb/Manifest @@ -0,0 +1 @@ +DIST forkbomb-1.4.tar.gz 4718 SHA256 729b937e44c8408ad743fb243ee98580d01c9223a6716e8b25e0e1099097f1b6 SHA512 3f5404ed6b3fe70b970e79ffc5f75aef2f9b92d0087895e1ae7d3a5409f28475569dbbb00e5bcb66882f56ce34e18ce388babfbe7cfeb7729a688519663d016e WHIRLPOOL 2de05c595e62957f3e50cf3dbc8ce2aa5f201b66719bb9b7787ef4699531b5b4139e28a410acb6758cb58deee6b0ff446ba70c92e55bc8038b5907497a33821b diff --git a/app-benchmarks/forkbomb/forkbomb-1.4.ebuild b/app-benchmarks/forkbomb/forkbomb-1.4.ebuild new file mode 100644 index 000000000000..a4cef6bb2128 --- /dev/null +++ b/app-benchmarks/forkbomb/forkbomb-1.4.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Controlled fork() bomber for testing heavy system load" +HOMEPAGE="http://home.tiscali.cz:8080/~cz210552/forkbomb.html" +SRC_URI="http://home.tiscali.cz:8080/~cz210552/distfiles/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i '/^all/s/tags//' Makefile || die "sed failed" +} + +src_install() { + dobin ${PN} || die "dobin failed" + doman ${PN}.8 +} diff --git a/app-benchmarks/forkbomb/metadata.xml b/app-benchmarks/forkbomb/metadata.xml new file mode 100644 index 000000000000..d2a152451b5c --- /dev/null +++ b/app-benchmarks/forkbomb/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <longdescription> + Controlled fork() bomber for testing heavy system load + </longdescription> +</pkgmetadata> diff --git a/app-benchmarks/gtkperf/Manifest b/app-benchmarks/gtkperf/Manifest new file mode 100644 index 000000000000..fa19c21625fb --- /dev/null +++ b/app-benchmarks/gtkperf/Manifest @@ -0,0 +1 @@ +DIST gtkperf_0.40.tar.gz 402982 SHA256 9704344e732038eecbd007dd996a56293a6b027b5b76f3f036273a3fae1ab27b SHA512 d406955b38c0450c3c6a6a7e9fb1fa7b326932325360353001cab6be63c8deaaea487123512740b57cdc28579ee84aabce789df5ce7dfaa92f8d9010f0a6d7be WHIRLPOOL efecc92235b827301bea813478338ff80514e332ba5df889090d4b93dc022618695bba23e13621dddaecf04ff0140d17c9396a75e489667f3339c5f63960318f diff --git a/app-benchmarks/gtkperf/files/gtkperf-0.40-gentoo.patch b/app-benchmarks/gtkperf/files/gtkperf-0.40-gentoo.patch new file mode 100644 index 000000000000..eee7faf43b61 --- /dev/null +++ b/app-benchmarks/gtkperf/files/gtkperf-0.40-gentoo.patch @@ -0,0 +1,47 @@ +--- gtkperf-0.40/work/gtkperf/configure.in ++++ gtkperf-0.40/work/gtkperf/configure.in +@@ -8,7 +8,6 @@ + AM_CONFIG_HEADER(config.h) + + AC_ISC_POSIX +-CFLAGS="" + AC_SUBST(CFLAGS) + AC_PROG_CC + AM_PROG_CC_STDC +--- gtkperf-0.40/work/gtkperf/src/timing.c ++++ gtkperf-0.40/work/gtkperf/src/timing.c +@@ -97,7 +97,7 @@ + gtk_text_buffer_insert (appdata->textview_info_buffer, &iter, + timestring, -1); + +- g_printf (timestring); ++ g_printf ("%s", timestring); + + } + +@@ -129,7 +129,7 @@ + gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0, + " Test Finished"); + +- g_printf (timestring); ++ g_printf ("%s", timestring); + + } + +@@ -154,5 +154,5 @@ + gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0, + " Running tests..."); + +- g_printf (timestring); ++ g_printf ("%s", timestring); + } +--- gtkperf-0.40/work/gtkperf/src/main.c ++++ gtkperf-0.40/work/gtkperf/src/main.c +@@ -5,6 +5,7 @@ + #endif + + #include <gtk/gtk.h> ++#include <stdlib.h> + + #ifdef HILDONIZED + #include <libosso.h> diff --git a/app-benchmarks/gtkperf/gtkperf-0.40-r1.ebuild b/app-benchmarks/gtkperf/gtkperf-0.40-r1.ebuild new file mode 100644 index 000000000000..c8b402b2e259 --- /dev/null +++ b/app-benchmarks/gtkperf/gtkperf-0.40-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_P="${PN}_${PV}" +DESCRIPTION="Application designed to test GTK+ performance" +HOMEPAGE="http://gtkperf.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="nls" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/pkgconfig" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_configure() { + econf $(use_enable nls) +} + +src_install() { + default + + make_desktop_entry ${PN} ${PN} duck + + rm -rf "${D}/usr/doc" || die + dodoc AUTHORS ChangeLog README TODO +} diff --git a/app-benchmarks/gtkperf/metadata.xml b/app-benchmarks/gtkperf/metadata.xml new file mode 100644 index 000000000000..3f97da1d9531 --- /dev/null +++ b/app-benchmarks/gtkperf/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>xmw@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + GtkPerf is an application designed to test GTK+ performance. The point + is to create common testing platform to run predefined GTK+ widgets + (opening comboboxes, toggling buttons, scrolling text yms.) and this + way define the speed of device/platform. +</longdescription> + <upstream> + <remote-id type="sourceforge">gtkperf</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/httperf/Manifest b/app-benchmarks/httperf/Manifest new file mode 100644 index 000000000000..6d19b0abf959 --- /dev/null +++ b/app-benchmarks/httperf/Manifest @@ -0,0 +1 @@ +DIST httperf-0.9.0.tar.gz 425297 SHA256 e1a0bf56bcb746c04674c47b6cfa531fad24e45e9c6de02aea0d1c5f85a2bf1c SHA512 58ea6a3b8a82181a89e5df22fdf18d5be8c7b533c404108702cc03fc727fb1599a43e620d83d41630f8a951d80e48ed99d0c3dd8469ee1fc7626449b777971e1 WHIRLPOOL 7b36e636a063c9af7ff142f7a81947f5b693bb1a3bdbe98c5dfd1f5ac11edb380e97f19c3ad2a0a8d8505c0d63d8d714fe935a6e326f2373cbbb11a940431a7e diff --git a/app-benchmarks/httperf/files/httperf-0.8-optional-ssl.diff b/app-benchmarks/httperf/files/httperf-0.8-optional-ssl.diff new file mode 100644 index 000000000000..018fa03cabe4 --- /dev/null +++ b/app-benchmarks/httperf/files/httperf-0.8-optional-ssl.diff @@ -0,0 +1,20 @@ +diff --exclude='*~' --exclude='.*' -I '$Id:' -urN httperf-0.8.orig/configure.in httperf-0.8/configure.in +--- httperf-0.8.orig/configure.in 2005-08-17 15:51:17.000000000 -0400 ++++ httperf-0.8/configure.in 2005-08-17 16:06:20.000000000 -0400 +@@ -39,8 +39,14 @@ + dnl Checks for libraries. + dnl Replace `main' with a function in -lm: + AC_CHECK_LIB(m, main) +-AC_CHECK_LIB(crypto, main) +-AC_CHECK_LIB(ssl, SSL_version) ++ ++AC_MSG_CHECKING([whether to enable SSL support]) ++AC_ARG_ENABLE(ssl, [ --enable-ssl Enable SSL support]) ++AC_MSG_RESULT([$enable_ssl]) ++if test "$enable_ssl" = yes; then ++ AC_CHECK_LIB(crypto, main) ++ AC_CHECK_LIB(ssl, SSL_version) ++fi + + + dnl Checks for header files. diff --git a/app-benchmarks/httperf/files/httperf-0.8-respect-DESTDIR.diff b/app-benchmarks/httperf/files/httperf-0.8-respect-DESTDIR.diff new file mode 100644 index 000000000000..f905224e2de3 --- /dev/null +++ b/app-benchmarks/httperf/files/httperf-0.8-respect-DESTDIR.diff @@ -0,0 +1,17 @@ +diff --exclude='*~' --exclude='.*' -I '$Id:' -urN httperf-0.8.orig/Makefile.in httperf-0.8/Makefile.in +--- httperf-0.8.orig/Makefile.in 2005-08-17 16:07:21.000000000 -0400 ++++ httperf-0.8/Makefile.in 2005-08-17 16:34:50.000000000 -0400 +@@ -51,9 +51,10 @@ + $(LINK) idleconn.o $(LIBS) + + install: install-recursive httperf +- $(MKDIR) $(bindir) $(mandir)/man1 +- $(INSTALL_PROGRAM) httperf $(bindir)/httperf +- $(INSTALL_DATA) $(srcdir)/httperf.man $(mandir)/man1/httperf.1 ++ $(MKDIR) $(DESTDIR)$(bindir) $(mandir)/man1 ++ $(INSTALL_PROGRAM) httperf $(DESTDIR)$(bindir)/httperf ++ $(MKDIR) $(DESTDIR)$(mandir)/man1 ++ $(INSTALL_DATA) $(srcdir)/httperf.man $(DESTDIR)$(mandir)/man1/httperf.1 + + ttest: ttest.o timer.o + diff --git a/app-benchmarks/httperf/httperf-0.9.0-r2.ebuild b/app-benchmarks/httperf/httperf-0.9.0-r2.ebuild new file mode 100644 index 000000000000..b7114d031003 --- /dev/null +++ b/app-benchmarks/httperf/httperf-0.9.0-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit autotools-utils toolchain-funcs + +DESCRIPTION="A tool from HP for measuring web server performance" +HOMEPAGE="http://code.google.com/p/httperf/" +SRC_URI="http://httperf.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips x86 ~amd64-linux ~x64-macos" +IUSE="debug" + +DEPEND="dev-libs/openssl" +RDEPEND="dev-libs/openssl" + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) + +src_configure() { + econf --bindir="${EPREFIX}"/usr/bin \ + $(use_enable debug) +} + +src_compile() { + emake CC="$(tc-getCC)" -j1 +} diff --git a/app-benchmarks/httperf/metadata.xml b/app-benchmarks/httperf/metadata.xml new file mode 100644 index 000000000000..870f412e6dea --- /dev/null +++ b/app-benchmarks/httperf/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <longdescription lang="en">Httperf is a tool for measuring web server + performance. It provides a flexible facility for generating various HTTP + workloads and for measuring server performance. The focus of httperf is + not on implementing one particular benchmark but on providing a robust, + high-performance tool that facilitates the construction of both micro- + and macro-level benchmarks. The three distinguishing characteristics of + httperf are its robustness, which includes the ability to generate and + sustain server overload, support for the HTTP/1.1 and SSL protocols, and + its extensibility to new workload generators and performance + measurements.</longdescription> + <upstream> + <remote-id type="google-code">httperf</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/i7z/Manifest b/app-benchmarks/i7z/Manifest new file mode 100644 index 000000000000..55c39a270a67 --- /dev/null +++ b/app-benchmarks/i7z/Manifest @@ -0,0 +1 @@ +DIST i7z-0.27.2.tar.gz 51226 SHA256 a7f72d65732c17eef0df4f284927fe744fc650075f2364c51c9497534d8f47f1 SHA512 d693fda4d12bf7b0d8e694d9f97876fcd2cad4556c950b4eab09ae21d121e63e221e1e1b27bcf23a241fd868b09165639ecfafeaa126144ad809199fcaca1cbb WHIRLPOOL aaea6bc544a554703cd85f7e2e075588114a6c807e1311421300464f1468560423e987f1582b5e58a2fd48eb1753559958ea39ed9ab97e621718e7f46e8c476e diff --git a/app-benchmarks/i7z/files/i7z-0.27.2-ncurses.patch b/app-benchmarks/i7z/files/i7z-0.27.2-ncurses.patch new file mode 100644 index 000000000000..2d0a5a1e9b87 --- /dev/null +++ b/app-benchmarks/i7z/files/i7z-0.27.2-ncurses.patch @@ -0,0 +1,22 @@ +Index: Makefile +=================================================================== +--- Makefile (revision 109) ++++ Makefile (working copy) +@@ -19,7 +19,7 @@ + + CC ?= gcc + +-LIBS += -lncurses -lpthread -lrt -lm ++LIBS += `pkg-config --libs ncurses` -lpthread -lrt -lm + INCLUDEFLAGS = + + BIN = i7z +@@ -42,7 +42,7 @@ + + #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644728 for -ltinfo on debian + static-bin: message $(OBJ) +- $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc -DNCURSES_STATIC -static -lpthread -lncurses -lrt -lm -ltinfo ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc -DNCURSES_STATIC -static -lpthread `pkg-config --static --libs ncurses` -lrt -lm + + # perfmon-bin: message $(OBJ) + # $(CC) $(CFLAGS) $(LDFLAGS) -o $(PERFMON-BIN) perfmon-i7z.c helper_functions.c $(LIBS) diff --git a/app-benchmarks/i7z/i7z-0.27.2.ebuild b/app-benchmarks/i7z/i7z-0.27.2.ebuild new file mode 100644 index 000000000000..e79f9494ff6c --- /dev/null +++ b/app-benchmarks/i7z/i7z-0.27.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic qmake-utils toolchain-funcs + +DESCRIPTION="A better i7 (and now i3, i5) reporting tool for Linux" +HOMEPAGE="http://code.google.com/p/i7z/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="X" + +RDEPEND=" + sys-libs/ncurses + X? ( dev-qt/qtgui:4 )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ncurses.patch + tc-export CC +} + +src_compile() { + default + if use X; then + cd GUI + eqmake4 ${PN}_GUI.pro && emake clean && emake + fi +} + +src_install() { + emake DESTDIR="${ED}" docdir=/usr/share/doc/${PF} install + use X && dosbin GUI/i7z_GUI +} diff --git a/app-benchmarks/i7z/metadata.xml b/app-benchmarks/i7z/metadata.xml new file mode 100644 index 000000000000..00ecf9d76c06 --- /dev/null +++ b/app-benchmarks/i7z/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="google-code">i7z</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/ioping/Manifest b/app-benchmarks/ioping/Manifest new file mode 100644 index 000000000000..c9154a7686f3 --- /dev/null +++ b/app-benchmarks/ioping/Manifest @@ -0,0 +1,2 @@ +DIST ioping-0.8.tar.gz 10590 SHA256 e23fdbd7298e26b63986137d6007e5a72d495da7265b9edea4c12f1b0c55fe48 SHA512 f15716eb60d40db2509c51b7448dbe0d2443888ccf83f708618d72bc41c8ff8d5da2a342fd68131536c7bcb316d7f68461940797366b7c2f277cfb9b2c3b87a2 WHIRLPOOL 07e312a660a7fffbbe9c85b5b4109e130e6f41ec6486313c7ee8bd9ad730191589108db4de537529e3d8448be434be0694ea94ee1ea87a7796045b83329714f1 +DIST ioping-0.9.tar.gz 23695 SHA256 951e430875987c8cfe0ed85a0bcfe1081788121a34102eb6f7c91330c63a775d SHA512 609e19c31a16a5961be0e468255f2853311162ad988d07404a8198042bec1e20cab37e192ad148536a0772efe8034a94d594671ec6fde7d37badee859796de1c WHIRLPOOL e9dec9d139b1b85f379c65d99676bfbbda30b78bf8cfa9a2a238db0e9eb43f6a2cb119ba64e35f9a81dc530b29015062b6e9585661f97449a22c35dc930dbcdd diff --git a/app-benchmarks/ioping/files/ioping-0.6-makefile.patch b/app-benchmarks/ioping/files/ioping-0.6-makefile.patch new file mode 100644 index 000000000000..b5836696e9f4 --- /dev/null +++ b/app-benchmarks/ioping/files/ioping-0.6-makefile.patch @@ -0,0 +1,26 @@ + Makefile | 8 ++++---- + 1 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Makefile b/Makefile +index b3d741e..79022e9 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,6 @@ +-CFLAGS+=-std=c99 -g -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 +-LDFLAGS=-lm +-PREFIX=/usr/local ++CFLAGS+=-std=c99 -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 ++LIBS=-lm ++PREFIX?=/usr/local + BINDIR=$(PREFIX)/bin + MAN1DIR=$(PREFIX)/share/man/man1 + +@@ -30,7 +30,7 @@ install: $(BINS) $(MANS) + $(CC) $(CFLAGS) -DVERSION=\"${VERSION}\" -c -o $@ $^ + + ioping: $(OBJS) +- $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + + dist: $(DISTDIR).tar.gz + diff --git a/app-benchmarks/ioping/ioping-0.8.ebuild b/app-benchmarks/ioping/ioping-0.8.ebuild new file mode 100644 index 000000000000..ae96fcfe749d --- /dev/null +++ b/app-benchmarks/ioping/ioping-0.8.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Simple disk I/0 latency measuring tool" +HOMEPAGE="http://code.google.com/p/ioping/" +SRC_URI="http://ioping.googlecode.com/files/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="GPL-3" +IUSE="" + +src_prepare() { + sed \ + -e 's: -g : :g' \ + -e 's: $(LDFLAGS) : :g' \ + -e 's: -o : $(LDFLAGS) -o :g' \ + -e 's:-s -m:-m:g' \ + -i Makefile || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +} diff --git a/app-benchmarks/ioping/ioping-0.9.ebuild b/app-benchmarks/ioping/ioping-0.9.ebuild new file mode 100644 index 000000000000..b6079a33adee --- /dev/null +++ b/app-benchmarks/ioping/ioping-0.9.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Simple disk I/0 latency measuring tool" +HOMEPAGE="https://github.com/koct9i/ioping" +SRC_URI="https://github.com/koct9i/ioping/releases/download/v${PV}/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="GPL-3" +IUSE="" + +src_prepare() { + sed \ + -e 's: -g : :g' \ + -e 's: $(LDFLAGS) : :g' \ + -e 's: -o : $(LDFLAGS) -o :g' \ + -e 's:-s -m:-m:g' \ + -e 's:LICENSE::g' \ + -e 's:-O2.*::g' \ + -i Makefile || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +} diff --git a/app-benchmarks/ioping/metadata.xml b/app-benchmarks/ioping/metadata.xml new file mode 100644 index 000000000000..9d1e924aa17b --- /dev/null +++ b/app-benchmarks/ioping/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="google-code">ioping</remote-id> + <remote-id type="github">koct9i/ioping</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/iozone/Manifest b/app-benchmarks/iozone/Manifest new file mode 100644 index 000000000000..a3d21fadcc5a --- /dev/null +++ b/app-benchmarks/iozone/Manifest @@ -0,0 +1,2 @@ +DIST iozone3_397.tar 1679360 SHA256 213d8dcc6f70ca93a903b5fbb92cf758fd25617db4c65d188d29594f12b30d30 SHA512 e154b56735c922173e7cf23344fa0a478982d202b3b831fd605481f69a77295281be121aa57a0164dc12edf5975f231339f6516da5c40906586d48ebacec7c23 WHIRLPOOL 3c041e9c0b094b0e995341d11ef1da746faa0c0dcf615905d16cead7dd9ab84d5d6d301a70358d3a64ceac80a1331054ad31ca6771dd68e5135e7a92f7662d9c +DIST iozone3_408.tar 1822720 SHA256 2112f8a125df8c627760ee2d6d2bd68617ca18e5a312da74175747f225b3fdf5 SHA512 ebc808468c741fff8d7909abd7eb41303c2a68c21ed7754e12bb6f859a88a9f9d040e0cdde42cb320958fbd453ba6014ba46fb7cfb200155f55a6fa7803f5d44 WHIRLPOOL 670a725e68f64f4029a5168839007af35d874b027e770e2cb1b20487a34be2f283b1a4371784b6108beab75952b55684600d146157ec0421e5540def654d9935 diff --git a/app-benchmarks/iozone/iozone-3.397.ebuild b/app-benchmarks/iozone/iozone-3.397.ebuild new file mode 100644 index 000000000000..db96f743c994 --- /dev/null +++ b/app-benchmarks/iozone/iozone-3.397.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO +# -> linux-arm (32bit) <- +# -> linux-AMD64 (64bit) <- +# -> linux-ia64 (64bit) <- +# -> linux-powerpc (32bit) <- +# -> linux-powerpc64 (64bit) <- +# -> linux-S390 (32bit) <- +# -> linux-S390X (64bit) <- +# +# -> freebsd (32bit) <- +# -> macosx (32bit) <- +# -> netbsd (32bit) <- +# -> openbsd (32bit) <- +# -> openbsd-threads (32bit) <- +# +# ~ia64 ~s390 alpha(?) x86-fbsd + +inherit eutils toolchain-funcs + +DESCRIPTION="Filesystem benchmarking program" +HOMEPAGE="http://www.iozone.org/" +SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="amd64 arm ia64 ppc ppc64 sparc x86" +IUSE="" + +S=${WORKDIR}/${PN}${PV/./_} + +src_compile() { + cd src/current + + # Options FIX + sed -i -e "s:CC =.*:CC =$(tc-getCC):g" \ + -e "s:-O3:${CFLAGS}:g" makefile + + case ${ARCH} in + x86|alpha) PLATFORM="linux";; + arm) PLATFORM="linux-arm";; + ppc) PLATFORM="linux-powerpc";; + ppc64) PLATFORM="linux-powerpc64";; + amd64) PLATFORM="linux-AMD64";; + ia64) PLATFORM="linux-ia64";; + s390) PLATFORM="linux-S390";; + x86-fbsd) PLATFORM="freebsd";; + *) PLATFORM="linux-${ARCH}";; + esac + + emake ${PLATFORM} || die "Compile failed" +} + +src_install() { + dosbin src/current/iozone + dodoc docs/I* + dodoc docs/Run_rules.doc + dodoc src/current/Changes.txt + doman docs/iozone.1 + + insinto /usr/share/doc/${PF} + cd src/current + doins Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem +} + +src_test() { + cd "${T}" + "${S}"/src/current/iozone testfile || die "self test failed" +} diff --git a/app-benchmarks/iozone/iozone-3.408.ebuild b/app-benchmarks/iozone/iozone-3.408.ebuild new file mode 100644 index 000000000000..08d91fd927f9 --- /dev/null +++ b/app-benchmarks/iozone/iozone-3.408.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO +# -> linux-arm (32bit) <- +# -> linux-AMD64 (64bit) <- +# -> linux-ia64 (64bit) <- +# -> linux-powerpc (32bit) <- +# -> linux-powerpc64 (64bit) <- +# -> linux-S390 (32bit) <- +# -> linux-S390X (64bit) <- +# +# -> freebsd (32bit) <- +# -> macosx (32bit) <- +# -> netbsd (32bit) <- +# -> openbsd (32bit) <- +# -> openbsd-threads (32bit) <- +# +# ~ia64 ~s390 alpha(?) x86-fbsd + +inherit eutils toolchain-funcs + +DESCRIPTION="Filesystem benchmarking program" +HOMEPAGE="http://www.iozone.org/" +SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +S=${WORKDIR}/${PN}${PV/./_} + +src_compile() { + cd src/current + + # Options FIX + sed -i -e "s:CC =.*:CC =$(tc-getCC):g" \ + -e "s:-O3:${CFLAGS}:g" makefile + + case ${ARCH} in + x86|alpha) PLATFORM="linux";; + arm) PLATFORM="linux-arm";; + ppc) PLATFORM="linux-powerpc";; + ppc64) PLATFORM="linux-powerpc64";; + amd64) PLATFORM="linux-AMD64";; + ia64) PLATFORM="linux-ia64";; + s390) PLATFORM="linux-S390";; + x86-fbsd) PLATFORM="freebsd";; + *) PLATFORM="linux-${ARCH}";; + esac + + emake ${PLATFORM} || die "Compile failed" +} + +src_install() { + dosbin src/current/iozone + dodoc docs/I* + dodoc docs/Run_rules.doc + dodoc src/current/Changes.txt + doman docs/iozone.1 + + insinto /usr/share/doc/${PF} + cd src/current + doins Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem +} + +src_test() { + cd "${T}" + "${S}"/src/current/iozone testfile || die "self test failed" +} diff --git a/app-benchmarks/iozone/metadata.xml b/app-benchmarks/iozone/metadata.xml new file mode 100644 index 000000000000..35303c29155c --- /dev/null +++ b/app-benchmarks/iozone/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>benchmarks</herd> +<maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + <description>A Filesystem benchmark tool</description> +</maintainer> +<longdescription></longdescription> +</pkgmetadata> diff --git a/app-benchmarks/jmeter/Manifest b/app-benchmarks/jmeter/Manifest new file mode 100644 index 000000000000..474fbe032585 --- /dev/null +++ b/app-benchmarks/jmeter/Manifest @@ -0,0 +1 @@ +DIST jakarta-jmeter-2.0.1_src.tgz 5368483 SHA256 8dc7b0ff680af721adeeab198f7dc99f5e376df04c2504291564cfaccdcf5f36 SHA512 221a9d1ed19407ab0b863443827f8b6d7f179ef27227defc3c71ab4ccb5981bbb82f239206993590500a9adf2444cdcefb219dcb28afe6488659a2be19374b08 WHIRLPOOL 07a980e7f46da636d760a0c62ba42de653fda3417cc2442fc34d5e13b46291b3a3f0c49fd05a93bdebb7d8968c5a77e643a59094fdf619d0dc24e048a9e5f762 diff --git a/app-benchmarks/jmeter/jmeter-2.0.1-r4.ebuild b/app-benchmarks/jmeter/jmeter-2.0.1-r4.ebuild new file mode 100644 index 000000000000..578de22d6c90 --- /dev/null +++ b/app-benchmarks/jmeter/jmeter-2.0.1-r4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Load test and measure performance on HTTP/FTP services and databases" +HOMEPAGE="http://jmeter.apache.org/" +SRC_URI="mirror://apache/jakarta/jmeter/source/jakarta-${P}_src.tgz" +COMMON_DEP=" + beanshell? ( dev-java/bsh ) + >=dev-java/bsf-2.3 + =dev-java/junit-3.8* + java-virtuals/javamail" +DEPEND=">=virtual/jdk-1.4 + doc? ( >=dev-java/velocity-1.4 ) + dev-java/ant-nodeps + sys-apps/sed + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="beanshell doc" + +S=${WORKDIR}/jakarta-${P} + +src_unpack() { + unpack ${A} + + cd "${S}" + sed -i -e 's/%//g' bin/jmeter || die "Unable to sed." + cd "${S}/lib" + # FIXME replace all bundled jars bug #63309 + # then rm -f *.jar + use beanshell && java-pkg_jar-from bsh + java-pkg_jar-from bsf-2.3 + java-pkg_jar-from junit + java-pkg_jar-from --virtual javamail + java-pkg_filter-compiler jikes +} + +src_compile() { + local tasks="ant-nodeps" + use doc && tasks="${tasks} velocity" + ANT_TASKS="${tasks}" eant package $(use_doc docs-all) || die "compile problem" +} + +src_install() { + DIROPTIONS="--mode=0775" + dodir /opt/${PN} + local dest="${D}/opt/${PN}/" + cp -pPR bin/ lib/ printable_docs/ "${dest}" + if use doc; then + cp -pPR printable_docs "${dest}" || die "Failed to install docs" + fi + dodoc README || die + use doc && dohtml -r docs/* +} diff --git a/app-benchmarks/jmeter/jmeter-2.0.1-r5.ebuild b/app-benchmarks/jmeter/jmeter-2.0.1-r5.ebuild new file mode 100644 index 000000000000..c14eb6cae5b4 --- /dev/null +++ b/app-benchmarks/jmeter/jmeter-2.0.1-r5.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source examples" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Load test and measure performance on HTTP/FTP services and databases" +HOMEPAGE="http://jmeter.apache.org/" +SRC_URI="mirror://apache/jakarta/jmeter/source/jakarta-${P}_src.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="beanshell" + +COMMON_DEP=" + beanshell? ( dev-java/bsh ) + >=dev-java/bsf-2.3 + =dev-java/junit-3.8* + java-virtuals/javamail" +DEPEND=">=virtual/jdk-1.4 + doc? ( >=dev-java/velocity-1.4 ) + dev-java/ant-nodeps + sys-apps/sed + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +S=${WORKDIR}/jakarta-${P} + +java_prepare() { + sed -i -e 's/%//g' bin/jmeter || die "Unable to sed." + cd "${S}/lib" || die + # FIXME replace all bundled jars bug #63309 + # then rm -f *.jar + use beanshell && java-pkg_jar-from bsh + java-pkg_jar-from bsf-2.3 + java-pkg_jar-from junit + java-pkg_jar-from --virtual javamail + java-pkg_filter-compiler jikes + + find "${S}"/src -name "*.java" | xargs sed -i -e 's:\benum\b:enumx:g' || die # fix for bug #514662 +} + +src_compile() { + local tasks="ant-nodeps" + use doc && tasks="${tasks} velocity" + ANT_TASKS="${tasks}" eant package $(use_doc docs-all) || die "compile problem" +} + +src_install() { + DIROPTIONS="--mode=0775" + dodir /opt/${PN} + local dest="${D}/opt/${PN}/" + cp -pPR bin/ lib/ "${dest}" || die + if use doc; then + cp -pPR printable_docs "${dest}" || die "Failed to install docs" + fi + dodoc README + + echo "PATH=\"/opt/${PN}/bin\"" > "${T}/90${PN}" || die + doenvd "${T}/90${PN}" || die "failed to install env.d file" + + use doc && dohtml -r docs/* + use source && java-pkg_dosrc src/* + use examples && java-pkg_doexamples xdocs/demos/* +} diff --git a/app-benchmarks/jmeter/jmeter-2.0.1-r6.ebuild b/app-benchmarks/jmeter/jmeter-2.0.1-r6.ebuild new file mode 100644 index 000000000000..b5accec8e3d5 --- /dev/null +++ b/app-benchmarks/jmeter/jmeter-2.0.1-r6.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source examples" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Load test and measure performance on HTTP/FTP services and databases" +HOMEPAGE="http://jmeter.apache.org/" +SRC_URI="mirror://apache/jakarta/jmeter/source/jakarta-${P}_src.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="beanshell" + +CDEPEND=" + beanshell? ( + dev-java/bsh:0 + ) + dev-java/bsf:2.3 + dev-java/junit:0 + dev-java/oracle-javamail:0" +DEPEND="virtual/jdk:1.7 + doc? ( + dev-java/velocity:0 + ) + dev-java/ant-nodeps + sys-apps/sed + ${CDEPEND}" +RDEPEND="virtual/jre:1.7 + ${CDEPEND}" + +JAVA_ANT_ENCODING="ISO-8859-1" + +S=${WORKDIR}/jakarta-${P} + +java_prepare() { + sed -i -e 's/%//g' bin/jmeter || die "Unable to sed." + cd "${S}/lib" || die + # FIXME replace all bundled jars bug #63309 + # then rm -f *.jar + use beanshell && java-pkg_jar-from bsh + java-pkg_jar-from bsf-2.3 + java-pkg_jar-from junit + java-pkg_jar-from oracle-javamail + java-pkg_filter-compiler jikes + + find "${S}"/src -name "*.java" | xargs sed -i -e 's:\benum\b:enumx:g' || die # fix for bug #514662 +} + +src_compile() { + local tasks="ant-nodeps" + use doc && tasks="${tasks} velocity" + ANT_TASKS="${tasks}" eant package $(use_doc docs-all) || die "compile problem" +} + +src_install() { + DIROPTIONS="--mode=0775" + dodir /opt/${PN} + local dest="${D}/opt/${PN}/" + cp -pPR bin/ lib/ "${dest}" || die + if use doc; then + cp -pPR printable_docs "${dest}" || die "Failed to install docs" + fi + dodoc README + + echo "PATH=\"/opt/${PN}/bin\"" > "${T}/90${PN}" || die + doenvd "${T}/90${PN}" || die "failed to install env.d file" + + use doc && dohtml -r docs/* + use source && java-pkg_dosrc src/* + use examples && java-pkg_doexamples xdocs/demos/* +} diff --git a/app-benchmarks/jmeter/metadata.xml b/app-benchmarks/jmeter/metadata.xml new file mode 100644 index 000000000000..44fe31404a2b --- /dev/null +++ b/app-benchmarks/jmeter/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<use> + <flag name='beanshell'>Enable BeanShell scripting support</flag> +</use> +</pkgmetadata> diff --git a/app-benchmarks/libc-bench/Manifest b/app-benchmarks/libc-bench/Manifest new file mode 100644 index 000000000000..d702501f23db --- /dev/null +++ b/app-benchmarks/libc-bench/Manifest @@ -0,0 +1 @@ +DIST libc-bench-20110206.tar.gz 3135 SHA256 6825260aa5f15f4fbc7957ec578e9c859cbbe210e025ec74c4a0d05677523794 SHA512 72f68616ab189f39f766c98afbb83bf3470a4e14ccb1dfe139a9006227262197546897da8f360bf48ba2c8854730aa385ca16270ec2e6cf2b531205550726f38 WHIRLPOOL 4145b3e55ae3fa22b14055deb9d5948b6bd891cd62da99199136c82cda4285d0332a8ee48764c32ecf47703e9f20825af064bb34448e0f124bd48987b67e0050 diff --git a/app-benchmarks/libc-bench/files/respect-flags.patch b/app-benchmarks/libc-bench/files/respect-flags.patch new file mode 100644 index 000000000000..19958fd1c91b --- /dev/null +++ b/app-benchmarks/libc-bench/files/respect-flags.patch @@ -0,0 +1,23 @@ +diff -Naur libc-bench-20110206.orig//Makefile libc-bench-20110206/Makefile +--- libc-bench-20110206.orig//Makefile 2011-01-31 02:13:00.000000000 -0500 ++++ libc-bench-20110206/Makefile 2012-08-09 22:12:24.000000000 -0400 +@@ -2,8 +2,7 @@ + SRCS = $(sort $(wildcard *.c)) + OBJS = $(SRCS:.c=.o) + +-CFLAGS = -Os +-LDFLAGS = -static ++LDFLAGS += -static + LIBS = -lpthread -lrt -lpthread + + +@@ -12,9 +11,6 @@ + clean: + rm -f $(OBJS) libc-bench + +-test: all +- ./libc-bench +- + libc-bench: $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + diff --git a/app-benchmarks/libc-bench/libc-bench-20110206.ebuild b/app-benchmarks/libc-bench/libc-bench-20110206.ebuild new file mode 100644 index 000000000000..ba48983a776e --- /dev/null +++ b/app-benchmarks/libc-bench/libc-bench-20110206.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Time and memory-efficiency tests of various C/POSIX standard library functions" +HOMEPAGE="http://www.etalabs.net/libc-bench.html http://git.musl-libc.org/cgit/libc-bench/" +SRC_URI="http://www.etalabs.net/releases/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/respect-flags.patch +} + +src_configure() { + tc-export CC + CFLAGS+=" ${CPPFLAGS}" +} + +src_install() { + dobin libc-bench +} diff --git a/app-benchmarks/libc-bench/metadata.xml b/app-benchmarks/libc-bench/metadata.xml new file mode 100644 index 000000000000..1e7587374fdf --- /dev/null +++ b/app-benchmarks/libc-bench/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> +</pkgmetadata> diff --git a/app-benchmarks/ltp/Manifest b/app-benchmarks/ltp/Manifest new file mode 100644 index 000000000000..28154314c1d2 --- /dev/null +++ b/app-benchmarks/ltp/Manifest @@ -0,0 +1,4 @@ +DIST ltp-20130503.tar.bz2 3819156 SHA256 afdb1479e73d4da7f0d4d5d3fe1570bc5fc96e3317d4a5c10c59c046d3dfa4a0 SHA512 efe7c3e5ffba51b03f01ee66d940d400f4f007dcc42ca45f9597fc1a325950ee14f663762280d63004080c717f16f39bc0d53b5905290470952ef5af3725f089 WHIRLPOOL 924cdc730e85d66d8d7655461e0a59a563b7a9039133b4e991a115d20453f46dda158ac82f474fc8d9ea720a4d03fc67d4d55c231c11d35dc3bfdc5b10a7258b +DIST ltp-20140828.tar.bz2 3914567 SHA256 046069523f04d8be8689c9e3f7f475e11d21c3d97506189a4a5e23c80b77492a SHA512 4963184624c8d6686dd9bda171bb2917a16b782f575e73ac18641ee66070b72f34c1e222936c52e529038854bd8d67d05b286d5f1319fd73098823ddbfe29545 WHIRLPOOL 32ec59ccd3cea3e4cfe8f73c4eb2bf8f8a86fd2fd0f82df8afabe8b62fd8e92fc9d3dbde52875d2be241542a6e3608ea5507d5f6495b11c92bcda475f6a69302 +DIST ltp-20150119.tar.bz2 3920104 SHA256 e0433cb184c57bf4e5493bfbceef3e9ee51a1a9778990fe4e74e62b17b94232f SHA512 ab7a76d700279895442a35507c58d2d1d2e727f3f7dfec067109a8f04bd23d18d0466c20bb1a37af8691bab9260353431e642b493a218b4317357ba8f6aace3a WHIRLPOOL 69c3e79ca8ceb68197ac8905fa7251a31207465d3992c997b4feb4bbd175657b71f667960aed5658aa5e477edf8388ded34a75476d827fb0fa337f4210975f54 +DIST ltp-20150420.tar.bz2 3893685 SHA256 483a6896b526a2972bc76598c8f1c17f7bc875df2dcb239ad5433a6d5977b79d SHA512 ffdf86a0bd63bb08f59c09e41ccf9b5aa2ac1d407fe39fa37dc3874b9cd60fcea9bf8bbe9481bdf1be4f08973e36b35027463db7da686abaf6233c82865f8215 WHIRLPOOL dd78a04c9084894277f56461992fbe118f20fa8b93b0d5452962eb803d71c611c90f3de2187bdc4fbe80b1078b9602f3e8044e0e6312672020c35a998f492edf diff --git a/app-benchmarks/ltp/files/runltp-path.patch b/app-benchmarks/ltp/files/runltp-path.patch new file mode 100644 index 000000000000..5d8d55b886f4 --- /dev/null +++ b/app-benchmarks/ltp/files/runltp-path.patch @@ -0,0 +1,199 @@ +Index: ltp-full-20120903/runltp +=================================================================== +--- ltp-full-20120903.orig/runltp ++++ ltp-full-20120903/runltp +@@ -76,7 +76,7 @@ setup() + echo "FATAL: unable to change directory to $(dirname $0)" + exit 1 + } +- export LTPROOT=${PWD} ++ export LTPROOT=/usr/libexec/ltp + export TMPBASE="/tmp" + export PATH="${PATH}:${LTPROOT}/testcases/bin" + +@@ -230,7 +230,7 @@ main() + /*) + FAILCMDFILE="-C $OPTARG" ;; + *) +- FAILCMDFILE="-C $LTPROOT/output/$OPTARG" ++ FAILCMDFILE="-C $TMPBASE/output/$OPTARG" + ALT_DIR_OUT=1 ;; + esac ;; + +@@ -298,7 +298,7 @@ main() + /*) + HTMLFILE="$OPTARG";; + *) +- HTMLFILE="$LTPROOT/output/$OPTARG";; ++ HTMLFILE="$TMPBASE/output/$OPTARG";; + esac + ALT_DIR_OUT=1 + ALT_HTML_OUT=1;; +@@ -319,7 +319,7 @@ main() + /*) + DMESG_DIR="$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; + *) +- DMESG_DIR="$LTPROOT/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; ++ DMESG_DIR="$TMPBASE/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; + esac + mkdir -p $DMESG_DIR + ALT_DMESG_OUT=1;; +@@ -329,7 +329,7 @@ main() + /*) + LOGFILE="-l $OPTARG" ;; + *) +- LOGFILE="-l $LTPROOT/results/$OPTARG" ++ LOGFILE="-l $TMPBASE/results/$OPTARG" + ALT_DIR_RES=1 ;; + esac ;; + +@@ -384,7 +384,7 @@ main() + /*) + OUTPUTFILE="-o $OPTARG";; + *) +- OUTPUTFILE="-o $LTPROOT/output/$OPTARG" ++ OUTPUTFILE="-o $TMPBASE/output/$OPTARG" + ALT_DIR_OUT=1 ;; + esac ;; + +@@ -431,7 +431,7 @@ main() + ## It would be nice to create a default log file even if the user has not mentioned + if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name + LOGFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME +- LOGFILE="-l $LTPROOT/results/LTP_RUN_ON-$LOGFILE_NAME.log" ++ LOGFILE="-l $TMPBASE/results/LTP_RUN_ON-$LOGFILE_NAME.log" + ALT_DIR_RES=1 + PRETTY_PRT=" -p " + fi +@@ -443,14 +443,14 @@ main() + if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about Output File name either + if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name either + FAILED_FILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" + else ## User Fortunately wanted a log file, + FAILED_FILE_NAME=`basename $LOGFILE_NAME` ## Extract log file name and use it to construct Failed file name +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" + fi + else ## User Fortunately wanted a Output file + FAILED_FILE_NAME=`basename $OUTPUTFILE_NAME` ## Extract output file name and use it to construct Failed file name +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" + fi + fi + +@@ -459,11 +459,11 @@ main() + ## which the HTML parser will require + if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about the Outputfile name, then we need to definitely generate one + OUTPUTFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME +- OUTPUTFILE="-o $LTPROOT/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output" ++ OUTPUTFILE="-o $TMPBASE/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output" + ALT_DIR_OUT=1 + if [ ! "$HTMLFILE" ] ; then ## User has not mentioned HTML File name, We need to create one + HTMLFILE_NAME=`basename $OUTPUTFILE_NAME` +- HTMLFILE="$LTPROOT/output/$HTMLFILE_NAME.html" ++ HTMLFILE="$TMPBASE/output/$HTMLFILE_NAME.html" + fi + fi + fi +@@ -471,12 +471,12 @@ main() + # If we need, create the output directory + [ "$ALT_DIR_OUT" -eq 1 ] && \ + { +- [ ! -d $LTPROOT/output ] && \ ++ [ ! -d $TMPBASE/output ] && \ + { +- echo "INFO: creating $LTPROOT/output directory" +- mkdir -p $LTPROOT/output || \ ++ echo "INFO: creating $TMPBASE/output directory" ++ mkdir -p $TMPBASE/output || \ + { +- echo "ERROR: failed to create $LTPROOT/output" ++ echo "ERROR: failed to create $TMPBASE/output" + exit 1 + } + } +@@ -484,12 +484,12 @@ main() + # If we need, create the results directory + [ "$ALT_DIR_RES" -eq 1 ] && \ + { +- echo "INFO: creating $LTPROOT/results directory" +- [ ! -d $LTPROOT/results ] && \ ++ echo "INFO: creating $TMPBASE/results directory" ++ [ ! -d $TMPBASE/results ] && \ + { +- mkdir -p $LTPROOT/results || \ ++ mkdir -p $TMPBASE/results || \ + { +- echo "ERROR: failed to create $LTPROOT/results" ++ echo "ERROR: failed to create $TMPBASE/results" + exit 1 + } + } +@@ -867,8 +867,8 @@ main() + export TEST_START_TIME=$test_start_time + export TEST_END_TIME=$(date) + OUTPUT_DIRECTORY=`echo $OUTPUTFILE | cut -c4-` +- LOGS_DIRECTORY="$LTPROOT/results" +- export TEST_OUTPUT_DIRECTORY="$LTPROOT/output" ++ LOGS_DIRECTORY="$TMPBASE/results" ++ export TEST_OUTPUT_DIRECTORY="$TMPBASE/output" + export TEST_LOGS_DIRECTORY=$LOGS_DIRECTORY + echo "Generating HTML Output.....!!" + ( perl $LTPROOT/bin/genhtml.pl $LTPROOT/bin/html_report_header.txt test_start test_end test_output execution_status $OUTPUT_DIRECTORY > $HTMLFILE; ) +@@ -884,37 +884,37 @@ main() + else + TAR_FILE_NAME=LTP_RUN_$version_date$DEFAULT_FILE_NAME_GENERATION_TIME.tar + if [ "$HTMLFILE_NAME" ] ; then ## HTML file Exists +- if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $LTPROOT/output +- mkdir -p $LTPROOT/output ## We need to create this Directory +- cp $HTMLFILE_NAME $LTPROOT/output/ ++ if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $TMPBASE/output ++ mkdir -p $TMPBASE/output ## We need to create this Directory ++ cp $HTMLFILE_NAME $TMPBASE/output/ + fi + fi + if [ "$OUTPUTFILE_NAME" ] ; then ## Output file exists +- if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $LTPROOT/output +- mkdir -p $LTPROOT/output ## We need to create this Directory +- cp $OUTPUTFILE_NAME $LTPROOT/output/ ++ if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $TMPBASE/output ++ mkdir -p $TMPBASE/output ## We need to create this Directory ++ cp $OUTPUTFILE_NAME $TMPBASE/output/ + fi + fi + if [ "$LOGFILE_NAME" ] ; then ## Log file exists +- if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $LTPROOT/results +- mkdir -p $LTPROOT/results ## We need to create this Directory +- cp $LOGFILE_NAME $LTPROOT/results/ ++ if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $TMPBASE/results ++ mkdir -p $TMPBASE/results ## We need to create this Directory ++ cp $LOGFILE_NAME $TMPBASE/results/ + fi + fi +- if [ -d $LTPROOT/output ] ; then +- tar -cf ./$TAR_FILE_NAME $LTPROOT/output ++ if [ -d $TMPBASE/output ] ; then ++ tar -cf ./$TAR_FILE_NAME $TMPBASE/output + if [ $? -eq 0 ]; then +- echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/output" ++ echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/output" + else +- echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/output" ++ echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/output" + fi + fi +- if [ -d $LTPROOT/results ] ; then +- tar -uf ./$TAR_FILE_NAME $LTPROOT/results ++ if [ -d $TMPBASE/results ] ; then ++ tar -uf ./$TAR_FILE_NAME $TMPBASE/results + if [ $? -eq 0 ]; then +- echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/results" ++ echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/results" + else +- echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/results" ++ echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/results" + fi + fi + if [ -e $LTPROOT/nohup.out ] ; then ## If User would have Chosen nohup to do ltprun diff --git a/app-benchmarks/ltp/ltp-20130503.ebuild b/app-benchmarks/ltp/ltp-20130503.ebuild new file mode 100644 index 000000000000..82aa09b65a15 --- /dev/null +++ b/app-benchmarks/ltp/ltp-20130503.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit autotools eutils readme.gentoo + +MY_PN="${PN}-full" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A testsuite for the linux kernel" +HOMEPAGE="http://ltp.sourceforge.net/" +SRC_URI="mirror://sourceforge/ltp/LTP%20Source/${P}/${MY_P}.bz2 -> ${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="expect perl pm open-posix python rt" + +DEPEND="expect? ( dev-tcltk/expect ) + perl? ( dev-lang/perl ) + python? ( dev-lang/python )" + +RESTRICT="test" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + # Don't create groups + export CREATE=0 + + DOC_CONTENTS="LTP requires root access to run the tests. + The LTP root directory is located in /opt/${PN}. + For more information please read the ltp-howto located in + /usr/share/doc/${PF}" +} + +src_prepare() { + # regenerate + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + # FIXME: improve me + local myconf= + use open-posix && myconf+="--with-open-posix-testsuite " + use pm && mytconf+="--with-power-management-testsuite " + use rt && myconf+="--with-realtime-testsuite " + use perl && myconf+="--with-perl " + use python && myconf+="--with-python " + use expect && myconf+="--with-expect " + + # Better put it into /opt/${PN} as everything needs to + # be under the same directory.. + + econf --prefix=/opt/${PN} ${myconf} +} + +src_compile() { + # Posix testsuite does not seem to build with -j>1 + # Is this maintained anymore? + if use open-posix; then + export MAKEOPTS="-j1" + fi + emake +} + +src_install() { + default + dosym /usr/libexec/${PN}/runltp /usr/bin/runltp + # install docs + dodoc doc/MaintNotes + for txt in doc/*.txt; do + dodoc ${txt} + done + dodoc -r doc/examples doc/testcases + dohtml -r doc/automation-*.html + doman doc/man1/*.1 + doman doc/man3/*.3 + readme.gentoo_create_doc +} diff --git a/app-benchmarks/ltp/ltp-20140828.ebuild b/app-benchmarks/ltp/ltp-20140828.ebuild new file mode 100644 index 000000000000..921376d3fb58 --- /dev/null +++ b/app-benchmarks/ltp/ltp-20140828.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit autotools eutils readme.gentoo + +MY_PN="${PN}-full" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A testsuite for the linux kernel" +HOMEPAGE="http://ltp.sourceforge.net/" +SRC_URI="mirror://sourceforge/ltp/LTP%20Source/${P}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="expect perl pm open-posix python rt" + +DEPEND="expect? ( dev-tcltk/expect ) + perl? ( dev-lang/perl ) + python? ( dev-lang/python )" + +RESTRICT="test" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + # Don't create groups + export CREATE=0 + + DOC_CONTENTS="LTP requires root access to run the tests. + The LTP root directory is located in /opt/${PN}. + For more information please read the ltp-howto located in + /usr/share/doc/${PF}" +} + +src_prepare() { + # regenerate + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + # FIXME: improve me + local myconf= + use open-posix && myconf+="--with-open-posix-testsuite " + use pm && mytconf+="--with-power-management-testsuite " + use rt && myconf+="--with-realtime-testsuite " + use perl && myconf+="--with-perl " + use python && myconf+="--with-python " + use expect && myconf+="--with-expect " + # Prevent any kernel stuff for now as it leads to sandbox violations + myconf+="--without-modules --with-linux-dir=/dev/null" + + # Better put it into /opt/${PN} as everything needs to + # be under the same directory.. + + econf --prefix=/opt/${PN} ${myconf} +} + +src_compile() { + # Posix testsuite does not seem to build with -j>1 + # Is this maintained anymore? + if use open-posix; then + export MAKEOPTS="-j1" + fi + emake +} + +src_install() { + default + dosym /usr/libexec/${PN}/runltp /usr/bin/runltp + # install docs + dodoc doc/MaintNotes + for txt in doc/*.txt; do + dodoc ${txt} + done + dodoc -r doc/testcases + dohtml -r doc/automation-*.html + doman doc/man1/*.1 + doman doc/man3/*.3 + readme.gentoo_create_doc +} diff --git a/app-benchmarks/ltp/ltp-20150119.ebuild b/app-benchmarks/ltp/ltp-20150119.ebuild new file mode 100644 index 000000000000..5ef070c52998 --- /dev/null +++ b/app-benchmarks/ltp/ltp-20150119.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils readme.gentoo + +MY_PN="${PN}-full" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A testsuite for the linux kernel" +HOMEPAGE="http://ltp.sourceforge.net/" +SRC_URI="mirror://sourceforge/ltp/LTP%20Source/${P}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="expect perl pm open-posix python rt" + +DEPEND="expect? ( dev-tcltk/expect ) + perl? ( dev-lang/perl ) + python? ( dev-lang/python )" + +RESTRICT="test" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + # Don't create groups + export CREATE=0 + + DOC_CONTENTS="LTP requires root access to run the tests. + The LTP root directory is located in /opt/${PN}. + For more information please read the ltp-howto located in + /usr/share/doc/${PF}" +} + +src_prepare() { + # regenerate + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + # FIXME: improve me + local myconf= + use open-posix && myconf+="--with-open-posix-testsuite " + use pm && mytconf+="--with-power-management-testsuite " + use rt && myconf+="--with-realtime-testsuite " + use perl && myconf+="--with-perl " + use python && myconf+="--with-python " + use expect && myconf+="--with-expect " + # Prevent any kernel stuff for now as it leads to sandbox violations + myconf+="--without-modules --with-linux-dir=/dev/null" + + # Better put it into /opt/${PN} as everything needs to + # be under the same directory.. + + econf --prefix=/opt/${PN} ${myconf} +} + +src_compile() { + # Posix testsuite does not seem to build with -j>1 + # Is this maintained anymore? + if use open-posix; then + export MAKEOPTS="-j1" + fi + emake +} + +src_install() { + default + dosym /usr/libexec/${PN}/runltp /usr/bin/runltp + # install docs + dodoc doc/MaintNotes + for txt in doc/*.txt; do + dodoc ${txt} + done + dodoc -r doc/testcases + dohtml -r doc/automation-*.html + doman doc/man1/*.1 + doman doc/man3/*.3 + readme.gentoo_create_doc +} diff --git a/app-benchmarks/ltp/ltp-20150420.ebuild b/app-benchmarks/ltp/ltp-20150420.ebuild new file mode 100644 index 000000000000..5ef070c52998 --- /dev/null +++ b/app-benchmarks/ltp/ltp-20150420.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils readme.gentoo + +MY_PN="${PN}-full" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A testsuite for the linux kernel" +HOMEPAGE="http://ltp.sourceforge.net/" +SRC_URI="mirror://sourceforge/ltp/LTP%20Source/${P}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="expect perl pm open-posix python rt" + +DEPEND="expect? ( dev-tcltk/expect ) + perl? ( dev-lang/perl ) + python? ( dev-lang/python )" + +RESTRICT="test" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + # Don't create groups + export CREATE=0 + + DOC_CONTENTS="LTP requires root access to run the tests. + The LTP root directory is located in /opt/${PN}. + For more information please read the ltp-howto located in + /usr/share/doc/${PF}" +} + +src_prepare() { + # regenerate + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + # FIXME: improve me + local myconf= + use open-posix && myconf+="--with-open-posix-testsuite " + use pm && mytconf+="--with-power-management-testsuite " + use rt && myconf+="--with-realtime-testsuite " + use perl && myconf+="--with-perl " + use python && myconf+="--with-python " + use expect && myconf+="--with-expect " + # Prevent any kernel stuff for now as it leads to sandbox violations + myconf+="--without-modules --with-linux-dir=/dev/null" + + # Better put it into /opt/${PN} as everything needs to + # be under the same directory.. + + econf --prefix=/opt/${PN} ${myconf} +} + +src_compile() { + # Posix testsuite does not seem to build with -j>1 + # Is this maintained anymore? + if use open-posix; then + export MAKEOPTS="-j1" + fi + emake +} + +src_install() { + default + dosym /usr/libexec/${PN}/runltp /usr/bin/runltp + # install docs + dodoc doc/MaintNotes + for txt in doc/*.txt; do + dodoc ${txt} + done + dodoc -r doc/testcases + dohtml -r doc/automation-*.html + doman doc/man1/*.1 + doman doc/man3/*.3 + readme.gentoo_create_doc +} diff --git a/app-benchmarks/ltp/metadata.xml b/app-benchmarks/ltp/metadata.xml new file mode 100644 index 000000000000..803b59bff20c --- /dev/null +++ b/app-benchmarks/ltp/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <maintainer> + <email>hwoarang@gentoo.org</email> + <name>Markos Chandras</name> + </maintainer> + <use> + <flag name="open-posix">Build and install the POSIX testsuite</flag> + <flag name="pm">Build and install the power management testsuite</flag> + <flag name="expect">Build against the expect library for interactive testing</flag> + <flag name="rt">Build and install the realtime testsuite</flag> + </use> + <longdescription> + The Linux Test Project is a joint project started by SGI and maintained by + IBM, that has a goal to deliver test suites to the open source community + that validate the reliability, robustness, and stability of Linux. The LTP + testsuite contains a collection of tools for testing the Linux kernel and + related features. +</longdescription> + <upstream> + <remote-id type="sourceforge">ltp</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/metadata.xml b/app-benchmarks/metadata.xml new file mode 100644 index 000000000000..c7ff9093b3ee --- /dev/null +++ b/app-benchmarks/metadata.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The app-benchmarks category contains benchmarking software. + </longdescription> + <longdescription lang="es"> + La categoría app-benchmarks contiene programas para pruebas. + </longdescription> + <longdescription lang="de"> + Die Kategorie app-benchmarks enthält Benchmark-Software. + </longdescription> + <longdescription lang="ja"> + app-benchmarksカテゴリにはベンチマークソフトウェアが含まれます。 + </longdescription> + <longdescription lang="nl"> + De app-benchmarks categorie bevat benchmarking applicaties. + </longdescription> + <longdescription lang="vi"> + Nhóm app-benchmarks chứa các ứng dụng benchmark. + </longdescription> + <longdescription lang="it"> + La categoria app-benchmarks contiene programmi per l'analisi delle prestazioni. + </longdescription> + <longdescription lang="pt"> + A categoria app-benchmarks contém programas para benchmarking. + </longdescription> + <longdescription lang="pl"> + Kategoria app-benchmarks zawiera oprogramowanie służące do testowania + wydajności. + </longdescription> +</catmetadata> + diff --git a/app-benchmarks/nbench/Manifest b/app-benchmarks/nbench/Manifest new file mode 100644 index 000000000000..531ac3c65afe --- /dev/null +++ b/app-benchmarks/nbench/Manifest @@ -0,0 +1 @@ +DIST nbench-byte-2.2.3.tar.gz 111791 SHA256 723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac SHA512 68ae34c083e2e01f0114e6ff9ce04df41d70facbb05533b4cb9432fd9856048fde28e5c024d92f202e5f2de10fe223fdb46570873b1e2f69b2c847779645dec8 WHIRLPOOL a7433d75364920a44dd3d94966601ddb08422175b81d25412d0f74913caa44b20a2865e911d8dbd693d83fb29ad4ca68e02b1c156ba2650dec76418d46060cf9 diff --git a/app-benchmarks/nbench/files/nbench-2.2.3-Makefile.patch b/app-benchmarks/nbench/files/nbench-2.2.3-Makefile.patch new file mode 100644 index 000000000000..c41fd07557b7 --- /dev/null +++ b/app-benchmarks/nbench/files/nbench-2.2.3-Makefile.patch @@ -0,0 +1,24 @@ +--- Makefile.org 2004-12-30 03:23:30.000000000 +0100 ++++ Makefile 2009-12-14 13:31:18.000000000 +0100 +@@ -19,10 +19,10 @@ + # You should leave -static in the CFLAGS so that your sysinfo can be + # compiled into the executable. + +-CC = gcc ++#CC = gcc + + # generic options for gcc +-CFLAGS = -s -static -Wall -O3 ++#CFLAGS = -s -static -Wall -O3 + + # if your gcc lets you do it, then try this one + #CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops +@@ -126,7 +126,7 @@ + if [ "4" = `./pointer` ] ; then touch pointer.h ;\ + else echo "#define LONG64" >pointer.h ; fi + +-misc.o: misc.h misc.c Makefile ++misc.o: misc.h misc.c pointer.h Makefile + $(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\ + -c misc.c + diff --git a/app-benchmarks/nbench/metadata.xml b/app-benchmarks/nbench/metadata.xml new file mode 100644 index 000000000000..52363bff0cba --- /dev/null +++ b/app-benchmarks/nbench/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> + </maintainer> +</pkgmetadata> diff --git a/app-benchmarks/nbench/nbench-2.2.3-r1.ebuild b/app-benchmarks/nbench/nbench-2.2.3-r1.ebuild new file mode 100644 index 000000000000..a437b6ce8466 --- /dev/null +++ b/app-benchmarks/nbench/nbench-2.2.3-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs + +MY_P="${PN}-byte-${PV}" +DESCRIPTION="Linux/Unix of release 2 of BYTE Magazine's BYTEmark benchmark" +HOMEPAGE="http://www.tux.org/~mayer/linux/bmark.html" +SRC_URI="http://www.tux.org/~mayer/linux/${MY_P}.tar.gz" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sh sparc x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}/${P}-Makefile.patch" + sed \ + -e 's:$compiler -v\( 2>&1 | sed -e "/version/!d"\|\):$compiler -dumpversion:' \ + -i sysinfo.sh || die "patching sysinfo.sh failed" + sed -e 's:inpath="NNET.DAT":inpath="/usr/share/nbench/NNET.DAT":' \ + -i nbench1.h || die "patching nbench1.h failed" +} + +src_compile() { + emake LINKFLAGS="${LDFLAGS}" CC=$(tc-getCC) CFLAGS="${CFLAGS}" || die "make failed" +} + +src_install() { + dobin nbench + insinto /usr/share/nbench + doins NNET.DAT + dodoc Changes README* bdoc.txt +} diff --git a/app-benchmarks/os-autoinst/metadata.xml b/app-benchmarks/os-autoinst/metadata.xml new file mode 100644 index 000000000000..6fffb6812f9a --- /dev/null +++ b/app-benchmarks/os-autoinst/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>suse</herd> +</pkgmetadata> diff --git a/app-benchmarks/os-autoinst/os-autoinst-9999.ebuild b/app-benchmarks/os-autoinst/os-autoinst-9999.ebuild new file mode 100644 index 000000000000..8b6ed4187dd8 --- /dev/null +++ b/app-benchmarks/os-autoinst/os-autoinst-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +EGIT_REPO_URI="git://gitorious.org/os-autoinst/os-autoinst.git" + +inherit git-2 autotools eutils + +DESCRIPTION="automated testing of Operating Systems" +HOMEPAGE="http://os-autoinst.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND=" + >=media-libs/opencv-2.4 +" +RDEPEND="${DEPEND} + dev-lang/perl[ithreads] + dev-perl/JSON + app-emulation/qemu + app-text/gocr + media-gfx/imagemagick + media-video/ffmpeg2theora +" + +src_prepare() { + eautoreconf +} + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --disable-static +} + +src_install() { + default + prune_libtool_files --all +} diff --git a/app-benchmarks/phoronix-test-suite/Manifest b/app-benchmarks/phoronix-test-suite/Manifest new file mode 100644 index 000000000000..2126ac720118 --- /dev/null +++ b/app-benchmarks/phoronix-test-suite/Manifest @@ -0,0 +1,2 @@ +DIST phoronix-test-suite-4.8.4.tar.gz 523952 SHA256 113e6c725672c1f379885575e7cd51a3d0a387dc1c842606840e27fcd4695e43 SHA512 e7c201467a52fbbb9b0a87a47bd1eb772e24e43bedc2baf02845a9e9f355d6c22f46901be390d501a0e721ccfa05d28da4b8362817518ba5c801d6f4422c3b6f WHIRLPOOL 0760916473d8544652c0fc9c53f57a41015aacb99b42f53186d8b5008cbe5b2b396b024ce51ba3a3e31c35b319bac63db17db2b29295a8414c031c16d73813f6 +DIST phoronix-test-suite-4.8.5.tar.gz 524136 SHA256 ca7bcbb5c72bee24075200449ee33fc75490ba528f804505d62fc3826d15456e SHA512 e37acdb48ba9ca532a6f409aea1c05b11b4320b967aac4576491ba5d401262d149f376506fef50ccee5506b77686aeed7a404102527472250cb7b5c1a247246a WHIRLPOOL be340514f3fdebafda449d60f069efcd44fa97d567b90616dc7332810d2802ed13433c94438937cab37f36744ddd383a918ceac92874f2702f28715c56ba3f9c diff --git a/app-benchmarks/phoronix-test-suite/metadata.xml b/app-benchmarks/phoronix-test-suite/metadata.xml new file mode 100644 index 000000000000..f50ab76d5abd --- /dev/null +++ b/app-benchmarks/phoronix-test-suite/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> +</pkgmetadata> diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.8.4.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.8.4.ebuild new file mode 100644 index 000000000000..d27079ca5c73 --- /dev/null +++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.8.4.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit bash-completion-r1 eutils + +DESCRIPTION="The comprehensive, cross-platform testing and benchmark suite" +HOMEPAGE="http://www.phoronix-test-suite.com" +SRC_URI="http://www.phoronix-test-suite.com/download.php?file=${P} -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" + +# php 5.3 doesn't have pcre and reflection useflags anymore +RDEPEND="dev-lang/php[cli,curl,gd,json,posix,pcntl,truetype,zip]" + +S="${WORKDIR}/${PN}" + +src_prepare() { + sed \ + -e "s,export PTS_DIR=\`pwd\`,export PTS_DIR=\"/usr/share/${PN}\"," \ + -i phoronix-test-suite || die +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + doman documentation/man-pages/phoronix-test-suite.1 + dodoc AUTHORS CHANGE-LOG + dohtml -r documentation/ + doicon \ + pts-core/static/images/phoronix-test-suite.png \ + pts-core/static/images/openbenchmarking.png + domenu pts-core/static/phoronix-test-suite.desktop + rm -f pts-core/static/phoronix-test-suite.desktop || die + + insinto /usr/share/${PN} + doins -r pts-core + dobin phoronix-test-suite + + fperms a+x \ + /usr/share/${PN}/pts-core/static/scripts/root-access.sh \ + /usr/share/${PN}/pts-core/external-test-dependencies/scripts/install-gentoo-packages.sh + + dobashcompletion pts-core/static/bash_completion ${PN} + + # Need to fix the cli-php config for downloading to work. Very naughty! + local slots + local slot + if [[ "x${PHP_TARGETS}" == "x" ]] ; then + ewarn + ewarn "PHP_TARGETS seems empty, php.ini file can't be configure." + ewarn "Make sure that PHP_TARGETS in /etc/make.conf is set." + ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\"" + ewarn "for downloading to work properly." + ewarn + else + for slot in ${PHP_TARGETS}; do + slots+=" ${slot/-/.}" + done + fi + + for slot in ${slots}; do + local PHP_INI_FILE="/etc/php/cli-${slot}/php.ini" + if [[ -f ${PHP_INI_FILE} ]] ; then + dodir $(dirname ${PHP_INI_FILE}) + cp ${PHP_INI_FILE} "${D}${PHP_INI_FILE}" + sed -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' -i "${D}${PHP_INI_FILE}" + else + if [[ "x$(eselect php show cli)" == "x${slot}" ]] ; then + ewarn + ewarn "${slot} hasn't a php.ini file." + ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\"" + ewarn "for downloading to work properly." + ewarn "Check that your PHP_INI_VERSION is set during ${slot} merge" + ewarn + else + elog + elog "${slot} hasn't a php.ini file." + elog "phoronix-test-suite may need the 'allow_url_fopen' option set to \"On\"" + elog "for downloading to work properly if you switch to ${slot}" + elog "Check that your PHP_INI_VERSION is set during ${slot} merge" + elog + fi + fi + done + + ewarn + ewarn "If you upgrade from phoronix-test-suite-2*, you should reinstall all" + ewarn "your tests because" + ewarn " \$HOME/.phoronix-test-suite/installed-tests/\$TEST_NAME/" + ewarn "moves to" + ewarn " \$HOME/.phoronix-test-suite/installed-tests/pts/\$TEST_NAME-\$TEST_VERSION/" + ewarn "in phoronix-test-suite-3* version. The \$TEST_VERSION can be find in" + ewarn "pts-install.xml file." + ewarn +} diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.8.5.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.8.5.ebuild new file mode 100644 index 000000000000..1e280e3d3595 --- /dev/null +++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.8.5.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils bash-completion-r1 + +DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite" +HOMEPAGE="http://www.phoronix-test-suite.com" +SRC_URI="http://www.phoronix-test-suite.com/download.php?file=${P} -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" + +# php 5.3 doesn't have pcre and reflection useflags anymore +RDEPEND="dev-lang/php[cli,curl,gd,json,posix,pcntl,truetype,zip]" + +S="${WORKDIR}/${PN}" + +src_prepare() { + sed -i -e "s,export PTS_DIR=\`pwd\`,export PTS_DIR=\"/usr/share/${PN}\"," \ + phoronix-test-suite +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + dodir /usr/share/${PN} + insinto /usr/share/${PN} + + doman documentation/man-pages/phoronix-test-suite.1 + dodoc AUTHORS CHANGE-LOG + dohtml -r documentation/ + doicon pts-core/static/images/phoronix-test-suite.png + doicon pts-core/static/images/openbenchmarking.png + domenu pts-core/static/phoronix-test-suite.desktop + rm -f pts-core/static/phoronix-test-suite.desktop + + doins -r pts-core + exeinto /usr/bin + doexe phoronix-test-suite + + fperms a+x /usr/share/${PN}/pts-core/static/scripts/root-access.sh + fperms a+x /usr/share/${PN}/pts-core/external-test-dependencies/scripts/install-gentoo-packages.sh + + dobashcompletion pts-core/static/bash_completion ${PN} + + # Need to fix the cli-php config for downloading to work. Very naughty! + local slots + local slot + if [[ "x${PHP_TARGETS}" == "x" ]] ; then + ewarn + ewarn "PHP_TARGETS seems empty, php.ini file can't be configure." + ewarn "Make sure that PHP_TARGETS in /etc/make.conf is set." + ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\"" + ewarn "for downloading to work properly." + ewarn + else + for slot in ${PHP_TARGETS}; do + slots+=" ${slot/-/.}" + done + fi + + for slot in ${slots}; do + local PHP_INI_FILE="/etc/php/cli-${slot}/php.ini" + if [[ -f ${PHP_INI_FILE} ]] ; then + dodir $(dirname ${PHP_INI_FILE}) + cp ${PHP_INI_FILE} "${D}${PHP_INI_FILE}" + sed -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' -i "${D}${PHP_INI_FILE}" + else + if [[ "x$(eselect php show cli)" == "x${slot}" ]] ; then + ewarn + ewarn "${slot} hasn't a php.ini file." + ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\"" + ewarn "for downloading to work properly." + ewarn "Check that your PHP_INI_VERSION is set during ${slot} merge" + ewarn + else + elog + elog "${slot} hasn't a php.ini file." + elog "phoronix-test-suite may need the 'allow_url_fopen' option set to \"On\"" + elog "for downloading to work properly if you switch to ${slot}" + elog "Check that your PHP_INI_VERSION is set during ${slot} merge" + elog + fi + fi + done + + ewarn + ewarn "If you upgrade from phoronix-test-suite-2*, you should reinstall all" + ewarn "your tests because" + ewarn " \$HOME/.phoronix-test-suite/installed-tests/\$TEST_NAME/" + ewarn "moves to" + ewarn " \$HOME/.phoronix-test-suite/installed-tests/pts/\$TEST_NAME-\$TEST_VERSION/" + ewarn "in phoronix-test-suite-3* version. The \$TEST_VERSION can be find in" + ewarn "pts-install.xml file." + ewarn +} diff --git a/app-benchmarks/piozone/Manifest b/app-benchmarks/piozone/Manifest new file mode 100644 index 000000000000..68e3aa0aa138 --- /dev/null +++ b/app-benchmarks/piozone/Manifest @@ -0,0 +1 @@ +DIST piozone-1.0.tar.gz 2228 SHA256 0b7f880b72b10664a24b712c22c90b4caab4f0cb1a8c99cba0d1a106fd63d15d SHA512 f61d3ad54716f626bf91e948a8843991bda97f2f0238e74acfa3f6d558ab6277293c6c0cf721a3806db5a1a1c5fb24dc3aee1293f1028155a726e637c39f0536 WHIRLPOOL 29947649d5490648db3cbf8fc5470f0739935b1fecc1cebdf1c7046ae254debf55010a382d0a3c732acc01715bded9be8543ff807a85b679c817c463b152448f diff --git a/app-benchmarks/piozone/files/piozone-1.0-gentoo.diff b/app-benchmarks/piozone/files/piozone-1.0-gentoo.diff new file mode 100644 index 000000000000..aa9a91d5ea35 --- /dev/null +++ b/app-benchmarks/piozone/files/piozone-1.0-gentoo.diff @@ -0,0 +1,49 @@ +diff -Naur piozone-1.0.orig/Makefile piozone-1.0/Makefile +--- piozone-1.0.orig/Makefile 2003-07-10 18:54:51.000000000 -0300 ++++ piozone-1.0/Makefile 2003-07-10 19:02:41.000000000 -0300 +@@ -19,3 +19,6 @@ + + dist: version distclean + (PACKNAME=`basename \`pwd\`` ; cd .. ; $(TAR) cf - $$PACKNAME | $(GZIP) -9 >$$PACKNAME.tar.gz) ++ ++install: ++ install -D piozone /usr/bin/piozone +diff -Naur piozone-1.0.orig/piozone.c piozone-1.0/piozone.c +--- piozone-1.0.orig/piozone.c 2003-07-10 18:54:51.000000000 -0300 ++++ piozone-1.0/piozone.c 2003-07-10 14:48:44.000000000 -0300 +@@ -20,7 +20,7 @@ + #include <fcntl.h> + #include <time.h> + #include <signal.h> +- ++#define uint64_t u_int64_t + #define KiB ((uint64_t) 1024) + #define MiB ((uint64_t) 1024*KiB) + #define GiB ((uint64_t) 1024*MiB) +@@ -73,7 +73,7 @@ + int count = 0; + int nr = 0; + +- llseek(fd, off, SEEK_SET); ++ lseek64(fd, off, SEEK_SET); + signal(SIGALRM, sigalrm_handler); + stopf = 0; + printf("Testing... "); +@@ -121,7 +121,7 @@ + printf("Testing... "); + alarm(ts); + while (!stopf && +- llseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 && ++ lseek64(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 && + (nr = read(fd, iobuf, len)) == len) + { + print_dial(); +@@ -159,7 +159,7 @@ + off = 0; + del = 64*GiB; + +- while (del > 8*KiB && llseek(fd, off+del, SEEK_SET) != -1) ++ while (del > 8*KiB && lseek64(fd, off+del, SEEK_SET) != -1) + { + if (read(fd, buf, 8*KiB) < 0) + del >>= 1; diff --git a/app-benchmarks/piozone/files/piozone-1.0-r3-gentoo.diff b/app-benchmarks/piozone/files/piozone-1.0-r3-gentoo.diff new file mode 100644 index 000000000000..b902814fec79 --- /dev/null +++ b/app-benchmarks/piozone/files/piozone-1.0-r3-gentoo.diff @@ -0,0 +1,63 @@ +--- a/Makefile 2002-01-28 09:15:59.000000000 +0100 ++++ b/Makefile 2010-10-12 21:07:53.000000000 +0200 +@@ -4,12 +4,12 @@ + GZIP=gzip + + #CC=cc -xarch=v9 -O +-CC=cc -O ++#CC=cc -O + + all: piozone + + piozone: piozone.o version.o +- $(CC) -o piozone piozone.o version.o ++ $(CC) $(CFLAGS) $(LDFLAGS) -o piozone piozone.o version.o + + clean distclean: + -rm -f core *.o piozone *~ \#* +@@ -19,3 +19,6 @@ + + dist: version distclean + (PACKNAME=`basename \`pwd\`` ; cd .. ; $(TAR) cf - $$PACKNAME | $(GZIP) -9 >$$PACKNAME.tar.gz) ++ ++install: ++ install -D piozone /usr/bin/piozone +--- a/piozone.c 2002-01-28 09:14:54.000000000 +0100 ++++ b/piozone.c 2010-10-12 21:08:45.000000000 +0200 +@@ -20,7 +20,9 @@ + #include <fcntl.h> + #include <time.h> + #include <signal.h> ++#include <stdlib.h> /* exit(), rand(), atoi() */ + ++#define uint64_t u_int64_t + #define KiB ((uint64_t) 1024) + #define MiB ((uint64_t) 1024*KiB) + #define GiB ((uint64_t) 1024*MiB) +@@ -73,7 +75,7 @@ + int count = 0; + int nr = 0; + +- llseek(fd, off, SEEK_SET); ++ lseek64(fd, off, SEEK_SET); + signal(SIGALRM, sigalrm_handler); + stopf = 0; + printf("Testing... "); +@@ -121,7 +123,7 @@ + printf("Testing... "); + alarm(ts); + while (!stopf && +- llseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 && ++ lseek64(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 && + (nr = read(fd, iobuf, len)) == len) + { + print_dial(); +@@ -159,7 +161,7 @@ + off = 0; + del = 64*GiB; + +- while (del > 8*KiB && llseek(fd, off+del, SEEK_SET) != -1) ++ while (del > 8*KiB && lseek64(fd, off+del, SEEK_SET) != -1) + { + if (read(fd, buf, 8*KiB) < 0) + del >>= 1; diff --git a/app-benchmarks/piozone/metadata.xml b/app-benchmarks/piozone/metadata.xml new file mode 100644 index 000000000000..7e5a7f579109 --- /dev/null +++ b/app-benchmarks/piozone/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> +</pkgmetadata> diff --git a/app-benchmarks/piozone/piozone-1.0-r3.ebuild b/app-benchmarks/piozone/piozone-1.0-r3.ebuild new file mode 100644 index 000000000000..f1d4e32c6211 --- /dev/null +++ b/app-benchmarks/piozone/piozone-1.0-r3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A hard-disk benchmarking tool" +HOMEPAGE="http://www.lysator.liu.se/~pen/piozone/" +SRC_URI="ftp://ftp.lysator.liu.se/pub/unix/piozone/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${PF}-gentoo.diff +} + +src_compile() { + append-flags -D_LARGEFILE64_SOURCE + emake CC=$(tc-getCC) || die +} + +src_install() { + dosbin piozone +} diff --git a/app-benchmarks/pipebench/Manifest b/app-benchmarks/pipebench/Manifest new file mode 100644 index 000000000000..6c52bb0b34ab --- /dev/null +++ b/app-benchmarks/pipebench/Manifest @@ -0,0 +1 @@ +DIST pipebench-0.40.tar.gz 11542 SHA256 ca764003446222ad9dbd33bbc7d94cdb96fa72608705299b6cc8734cd3562211 SHA512 bace18d73425cf56bc3fd95eea4db47b3010cc82c16d9b433390d0ee4593046ab10101ce73df451596b34ace89fa92e93a92bb625286edb9cdfb809e630788cd WHIRLPOOL 4f580ac6fac6695d499332f68c09cacdc37d10e7ba2e5b86af35f18d6a0d2faaa002ed9d46390dfb54b7f7febf11df757fa57ba3d80fa111f658b3d00abc4a7a diff --git a/app-benchmarks/pipebench/metadata.xml b/app-benchmarks/pipebench/metadata.xml new file mode 100644 index 000000000000..7e5a7f579109 --- /dev/null +++ b/app-benchmarks/pipebench/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> +</pkgmetadata> diff --git a/app-benchmarks/pipebench/pipebench-0.40-r1.ebuild b/app-benchmarks/pipebench/pipebench-0.40-r1.ebuild new file mode 100644 index 000000000000..b355b853980c --- /dev/null +++ b/app-benchmarks/pipebench/pipebench-0.40-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit toolchain-funcs + +DESCRIPTION="Measures the speed of stdin/stdout communication" +HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=pipebench" +SRC_URI="ftp://ftp.habets.pp.se/pub/synscan/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~arm-linux ~x86-linux" +IUSE="" + +src_prepare() { + sed -i Makefile \ + -e 's:CFLAGS=-Wall:CFLAGS+= -Wall:' \ + -e 's:$(CFLAGS) -o:$(LDFLAGS) &:g' \ + -e "s:/usr/local/bin/:${ED}/usr/bin:" \ + -e "s:/usr/local/man/man1/:${ED}/usr/share/man/man1:" \ + || die "sed Makefile" +} + +src_compile() { + emake CC=$(tc-getCC) || die +} + +src_install() { + dodir /usr/{bin,share/man/man1} + emake install || die + dodoc README +} diff --git a/app-benchmarks/pipebench/pipebench-0.40.ebuild b/app-benchmarks/pipebench/pipebench-0.40.ebuild new file mode 100644 index 000000000000..7b7b9689688b --- /dev/null +++ b/app-benchmarks/pipebench/pipebench-0.40.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Measures the speed of stdin/stdout communication" +HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=pipebench" +SRC_URI="ftp://ftp.habets.pp.se/pub/synscan/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="" + +src_unpack() { + unpack ${P}.tar.gz + cd "${S}" || die "Manual configure failed" + cp Makefile Makefile.orig + sed \ + -e "s:CFLAGS=-Wall:CFLAGS=${CFLAGS} -Wall:" \ + -e "s:/usr/local/bin/:${D}/usr/bin:" \ + -e "s:/usr/local/man/man1/:${D}/usr/share/man/man1:" \ + Makefile.orig > Makefile +} + +src_compile() { + make || die +} + +src_install() { + dodir /usr/{bin,share/man/man1} + make install || die + dodoc README +} diff --git a/app-benchmarks/ramspeed/Manifest b/app-benchmarks/ramspeed/Manifest new file mode 100644 index 000000000000..462a29c27db0 --- /dev/null +++ b/app-benchmarks/ramspeed/Manifest @@ -0,0 +1 @@ +DIST ramsmp-3.5.0.tar.gz 79481 SHA256 39fb15493fb3c293575746d56f6ab9faaa1d876d8b1f0d8e5a4042d2ace95839 SHA512 175cd2e568e4efdb1225e3c5319950376c4834633dd618324cf4268c762213733ed67ea94b4e5835b0259483e88afd2e9d9a3fde63515b8b25e5ec0b51f16b0e WHIRLPOOL 2e35adb0aa58a2d5ec81d64ab50bcfc3a7c831798aa13c62d80d2bfb907dcb048087047fd68fe9e7ccbd838848235bca5ee44ba6b203ac07c9945a7ea88a7447 diff --git a/app-benchmarks/ramspeed/metadata.xml b/app-benchmarks/ramspeed/metadata.xml new file mode 100644 index 000000000000..2283e9816ae7 --- /dev/null +++ b/app-benchmarks/ramspeed/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jlec@gentoo.org</email> + <name>Justin Lecher</name> + </maintainer> + <use> + <flag name="pic">Force shared libraries to be built as PIC (this is slower)</flag> + </use> +</pkgmetadata> diff --git a/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild b/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild new file mode 100644 index 000000000000..b654cce84525 --- /dev/null +++ b/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs + +MY_PN="ramsmp" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Benchmarking for memory and cache" +HOMEPAGE="http://www.alasir.com/software/ramspeed/" +SRC_URI="http://www.alasir.com/software/${PN}/${MY_P}.tar.gz" + +LICENSE="Alasir" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="cpu_flags_x86_sse pic" + +S="${WORKDIR}/${MY_P}" + +src_configure(){ + local obj + local arch_prefix=./ + + use x86 && arch_prefix=i386/ + use amd64 && arch_prefix=amd64/ + + tc-export CC AS + + #fix the stack + append-ldflags -Wl,-z,noexecstack + obj=( ramsmp.o ${arch_prefix}{fltmark,fltmem,intmark,intmem}.o ) + + use pic && append-ldflags -nopie + + if use amd64; then + sed -i \ + -e 's/call.*free/call\tfree@PLT/' \ + -e 's/call.*gettimeofday/call\tgettimeofday@PLT/' \ + -e 's/call.*malloc/call\tmalloc@PLT/' \ + ${arch_prefix}/*.s || die + fi + + use x86 && obj+=( ${arch_prefix}{cpuinfo/cpuinfo_main,cpuinfo/cpuinfo_ext}.o ) + + if use cpu_flags_x86_sse; then + use x86 && append-flags "-DLINUX -DI386_ASM" + use amd64 && append-flags "-DLINUX -DAMD64_ASM" + obj+=( ${arch_prefix}{mmxmark,mmxmem,ssemark,ssemem}.o ) + fi + + echo "ramsmp: ${obj[@]}" > Makefile +} + +src_install(){ + dobin ramsmp + dosym ramsmp /usr/bin/ramspeed + dodoc HISTORY README +} diff --git a/app-benchmarks/siege/Manifest b/app-benchmarks/siege/Manifest new file mode 100644 index 000000000000..4a85980ae65e --- /dev/null +++ b/app-benchmarks/siege/Manifest @@ -0,0 +1,2 @@ +DIST siege-3.0.6.tar.gz 496002 SHA256 78b79964e3d6772e532c6008a084700f830a02a00ca80b44f3e71380b4908c5b SHA512 621f3f60f2aac70fb051f48819f5673d60f31fc4fc69e4c65d4ae0a285d02112686f1e9b40241d48afc378446a2b296a7dc4bbc6d8ae38e390d380506f4d448b WHIRLPOOL 0c94eb828681b2ab67cab13bbaf802f25804e976f4f1eac6cb3cb45160ee6dd2f73d726c39f9ab6be6e4243ac4c6c79d76f406eba72d3fe4a929fb24838b1de0 +DIST siege-3.1.0.tar.gz 502444 SHA256 f6a104cb2a3ac6c0efb2699649e8c4f8da2b548147bbbb7af2483089e4940e7f SHA512 b5c0ed75795096dd6c78856747acd1cb778f54ece4ee7b735e676edc898677dd0d23fa544ae249fa6ed9e7780a118936372c271ff24b73f2a54402a94cc0a67a WHIRLPOOL 9a79b0a58fc54c7005406319494acc14fa80c2b98c7c519a39fea92dcded3d330351fa2da7830ff8d52de91744a8646d62b89f8330cf184e7539c86f60065aa0 diff --git a/app-benchmarks/siege/files/siege.bash-completion b/app-benchmarks/siege/files/siege.bash-completion new file mode 100644 index 000000000000..612f22d8f3c4 --- /dev/null +++ b/app-benchmarks/siege/files/siege.bash-completion @@ -0,0 +1,25 @@ +# $Id$ +# siege completion + +_siege() { + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + opts="-V --version -h --help -C --config -v --verbose -g --get \ + -c --concurrent -i --internet -d --delay -b --benchmark -r --reps \ + -t --time -l --log -m --mark -H --header -R --rc -f --file -u --url" + + if [[ "${cur}" == -* ]] || [ ${COMP_CWORD} -eq 1 ]; then + COMPREPLY=($(compgen -W "${opts}" -- ${cur})) + fi + + case "${prev}" in + -R|--rc|-f|--file) + COMPREPLY=($(compgen -o filenames -A file -- ${cur})) + ;; + esac +} +complete -F _siege siege + +# vim: set ft=sh tw=80 ts=4 sw=4 : diff --git a/app-benchmarks/siege/metadata.xml b/app-benchmarks/siege/metadata.xml new file mode 100644 index 000000000000..7e5a7f579109 --- /dev/null +++ b/app-benchmarks/siege/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> +</pkgmetadata> diff --git a/app-benchmarks/siege/siege-3.0.6.ebuild b/app-benchmarks/siege/siege-3.0.6.ebuild new file mode 100644 index 000000000000..ac9d2c2f9586 --- /dev/null +++ b/app-benchmarks/siege/siege-3.0.6.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +#WANT_AUTOMAKE=1.9 + +inherit eutils bash-completion-r1 libtool autotools + +DESCRIPTION="A HTTP regression testing and benchmarking utility" +HOMEPAGE="http://www.joedog.org/JoeDog/Siege" +SRC_URI="http://www.joedog.org/pub/siege/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="amd64 hppa ~mips ppc x86 ~x64-macos" +SLOT="0" +IUSE="ssl" + +RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6d )" +DEPEND="${RDEPEND} + sys-devel/libtool" + +src_prepare() { + # bundled macros break recent libtool + sed -i -e 's/AC_PROG_SHELL//' configure.ac || die + rm *.m4 || die "failed to remove bundled macros" + eautoreconf +} + +src_configure() { + local myconf + use ssl && myconf="--with-ssl=${EPREFIX}/usr" || myconf="--without-ssl" + econf ${myconf} +} + +src_install() { + make DESTDIR="${D}" install + + dodoc AUTHORS ChangeLog INSTALL MACHINES README* KNOWNBUGS \ + doc/siegerc doc/urls.txt + + newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN} +} + +pkg_postinst() { + echo + elog "An example ~/.siegerc file has been installed in" + elog "${EPREFIX}/usr/share/doc/${PF}/" +} diff --git a/app-benchmarks/siege/siege-3.1.0.ebuild b/app-benchmarks/siege/siege-3.1.0.ebuild new file mode 100644 index 000000000000..f3cdef513ace --- /dev/null +++ b/app-benchmarks/siege/siege-3.1.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +#WANT_AUTOMAKE=1.9 + +inherit eutils bash-completion-r1 libtool autotools + +DESCRIPTION="A HTTP regression testing and benchmarking utility" +HOMEPAGE="https://www.joedog.org/siege-home/" +SRC_URI="http://download.joedog.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~hppa ~mips ~ppc ~x86 ~x64-macos" +SLOT="0" +IUSE="ssl" + +RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6d:= )" +DEPEND="${RDEPEND} + sys-devel/libtool" + +src_prepare() { + # bundled macros break recent libtool + sed -i -e 's/AC_PROG_SHELL//' configure.ac || die + rm *.m4 || die "failed to remove bundled macros" + eautoreconf +} + +src_configure() { + local myconf + use ssl && myconf="--with-ssl=${EPREFIX}/usr" || myconf="--without-ssl" + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS ChangeLog INSTALL MACHINES README* KNOWNBUGS \ + doc/siegerc doc/urls.txt + + newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN} +} + +pkg_postinst() { + echo + elog "An example ~/.siegerc file has been installed in" + elog "${EPREFIX}/usr/share/doc/${PF}/" +} diff --git a/app-benchmarks/spew/Manifest b/app-benchmarks/spew/Manifest new file mode 100644 index 000000000000..f259675ba8aa --- /dev/null +++ b/app-benchmarks/spew/Manifest @@ -0,0 +1 @@ +DIST spew-1.0.8.tgz 162091 SHA256 200da1b4390a5e4bf91cb7278b3ad813194f0e395abc0da6296ac415e11a76cb SHA512 ec76a1e681bbaabef6cdc63ced5114a856a312e91c5ff3e0d1536221583a1c939f9308139863670695121c8c720123a6d0697491867ccafc091607888cc81b56 WHIRLPOOL 9aac2fec8b514271fcaf3e72eb6affa505fcaae274e1966e67371c7671aa8e46cf9c0ab7345b83de4ce60a6a51b72cb9e17c692839a4eb810762bc8b851bc20a 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..5234f3362711 --- /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> + <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..c03d87205019 --- /dev/null +++ b/app-benchmarks/spew/spew-1.0.8-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..7886a6fe7752 --- /dev/null +++ b/app-benchmarks/spew/spew-1.0.8.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} diff --git a/app-benchmarks/stress/Manifest b/app-benchmarks/stress/Manifest new file mode 100644 index 000000000000..cdb618f9dc5d --- /dev/null +++ b/app-benchmarks/stress/Manifest @@ -0,0 +1,6 @@ +DIST stress-0.18.6.tar.gz 162798 SHA256 e69f78cfb0f956b087275c535f960c281430812243374bf13a784055a453d938 SHA512 870a86a2b67005d58cd14c68e97a66650dc314d7f0f4a0c6061d7fd571916650ec0f4a81d9117762ec489d8caac042d8271e15a303eff5ef45a17a3faea05a7e WHIRLPOOL 1474a41692bc905648a39ab0c3a844254f75e64deff154a8351feb8dce495774d6e65f9aafef262743ebd6a5c43f4fb13df5e1bd567e9ba3e65a5eadd02a8cb5 +DIST stress-1.0.0.tar.gz 178155 SHA256 778126fdcc3ecb54d4a8dad6164001603bcc3b79ba64b3c2c5285275bc0cbedf SHA512 e71f004f8351b6c29e161084eb5c5b5de78c8c2f7c90b0a3e3669ed35bce08443cb407db781b4291d6e929374cfd2fb8e1c114296f90500d9f22dd994290d8ac WHIRLPOOL 67c6dc89245ec4040e36a74c2cfc04c9bfd62bd202f8726b4b3e22b402dfe9a0eb020d6c12ad4b762c51316fdbd45c41cefc2cf57e426b71cce3bdd4b26c9668 +DIST stress-1.0.1.tar.gz 203343 SHA256 813a9c78d0a7c27e257ab4523f1b0013e32b0eceabc19154d7d26118e9b73bed SHA512 d7de86cab38a688d2fc55f26a9b3562d58a40ef30bbfa974b6777b6a7d7e1b1f609ef78258af2d1b8aee0bcda432d5abe4f59b9529ea2730e26a054d1683d666 WHIRLPOOL 89349408fbeb654fae162f0e5435264e426b63f7ab05f3199505ded530ab5bb6c426a61440c5ecce34ea07641615a7b38c5d0c35abdb43153b6d9f71c0049c96 +DIST stress-1.0.3.tar.gz 201376 SHA256 078e63ce88ebb78d0953954b6aaf2d55c6fdc0e6c778f7ad11af3863af941d03 SHA512 21072ef4eff0f689a363fc5350775c162ed34c8c94ae7457a16550e2fcb428cbc9246be617f67c584f384cddfa27587a9f949bf1de34b11c3b97b8a3d589254c WHIRLPOOL 9cd4a73663e7c3374006ae43b2803c8b7f536da36d25709b97a404c46326fd8dbdd20c169ac0d45dde952087f78c727ac58479c2f934440cc468398fa19ffb76 +DIST stress-1.0.4-r1.tar.gz 191800 SHA256 057e4fc2a7706411e1014bf172e4f94b63a12f18412378fca8684ca92408825b SHA512 623a7d9585828bed4b7673e19fb0cfdda904552cd56353d74106047b64249299d5f8da892ec135f1781ec3984c7d5835dcc6c0d8e659e06c8a1e4fb2af9fd9c4 WHIRLPOOL f61eb216ec44242c74ae86b3c5390c361c16f4466cfad231d4fbfa93f61578c36dde779db3cf0ba8a0e0751b74fb33a1085372d825d9fd0ebb8120962e9f1cdf +DIST stress-1.0.4.tar.gz 201495 SHA256 369c997f65e8426ae8b318d4fdc8e6f07a311cfa77cc4b25dace465c582163c0 SHA512 54b3f9edbdaff228f2cfd40a7ce324eea95fc9ab54194d3bac04dc67f72b690e4748c8ff5161bca563d7dd573609092c3631cd4cceb14d813f16f7226ad1ce98 WHIRLPOOL a1ca33b3c3c4ac3e5073a9ea5fa43fe4295bfa2c26627b36366e875dc9c2b1776493d6895ca40008037e2bf2246117067b23cfab568143f1e0e3ec759aa458ea diff --git a/app-benchmarks/stress/metadata.xml b/app-benchmarks/stress/metadata.xml new file mode 100644 index 000000000000..7e5a7f579109 --- /dev/null +++ b/app-benchmarks/stress/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> +</pkgmetadata> diff --git a/app-benchmarks/stress/stress-0.18.6.ebuild b/app-benchmarks/stress/stress-0.18.6.ebuild new file mode 100644 index 000000000000..42dd6b178dfe --- /dev/null +++ b/app-benchmarks/stress/stress-0.18.6.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit flag-o-matic + +MY_P="${PN}-${PV/_/}" +S="${WORKDIR}/${MY_P}" +DESCRIPTION="Imposes stressful loads on different aspects of the system" +HOMEPAGE="http://people.seas.harvard.edu/~apw/stress" +SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc ppc64 ~sparc x86" +IUSE="static" + +src_compile() { + use static && append-ldflags -static + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc ChangeLog AUTHORS README +} diff --git a/app-benchmarks/stress/stress-1.0.0.ebuild b/app-benchmarks/stress/stress-1.0.0.ebuild new file mode 100644 index 000000000000..14dc3908bc62 --- /dev/null +++ b/app-benchmarks/stress/stress-1.0.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit autotools flag-o-matic + +MY_P="${PN}-${PV/_/}" +S="${WORKDIR}/${MY_P}" +DESCRIPTION="Imposes stressful loads on different aspects of the system" +HOMEPAGE="http://people.seas.harvard.edu/~apw/stress" +SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~mips ppc ppc64 sparc x86" +IUSE="static" + +DEPEND="sys-apps/help2man" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Force rebuild of the manpage. + rm -f doc/stress.1 + + # Honour Gentoo CFLAGS. + sed -i -e "/CFLAGS/s/-Werror//" \ + -e "s/CFLAGS/AM_CFLAGS/" \ + src/Makefile.am || die "sed cflags failed" + + eautoreconf +} + +src_compile() { + use static && append-ldflags -static + econf + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc ChangeLog AUTHORS README +} diff --git a/app-benchmarks/stress/stress-1.0.1.ebuild b/app-benchmarks/stress/stress-1.0.1.ebuild new file mode 100644 index 000000000000..c227d97be728 --- /dev/null +++ b/app-benchmarks/stress/stress-1.0.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit autotools flag-o-matic + +MY_P="${PN}-${PV/_/}" +S="${WORKDIR}/${MY_P}" +DESCRIPTION="Imposes stressful loads on different aspects of the system" +HOMEPAGE="http://people.seas.harvard.edu/~apw/stress" +SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~mips ppc ppc64 sparc x86" +IUSE="static" + +DEPEND="sys-apps/help2man" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Force rebuild of the manpage. + rm -f doc/stress.1 + + # Honour Gentoo CFLAGS. + sed -i -e "/CFLAGS/s/-Werror//" \ + -e "s/CFLAGS/AM_CFLAGS/" \ + src/Makefile.am || die "sed cflags failed" + + eautoreconf +} + +src_compile() { + use static && append-ldflags -static + econf + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc ChangeLog AUTHORS README +} diff --git a/app-benchmarks/stress/stress-1.0.3.ebuild b/app-benchmarks/stress/stress-1.0.3.ebuild new file mode 100644 index 000000000000..7cdf6984d232 --- /dev/null +++ b/app-benchmarks/stress/stress-1.0.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit autotools flag-o-matic + +MY_P="${PN}-${PV/_/}" +S="${WORKDIR}/${MY_P}" +DESCRIPTION="Imposes stressful loads on different aspects of the system" +HOMEPAGE="http://people.seas.harvard.edu/~apw/stress" +SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="static" + +DEPEND="sys-apps/help2man" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Force rebuild of the manpage. + rm -f doc/stress.1 + + # Honour Gentoo CFLAGS. + sed -i -e "/CFLAGS/s/-Werror//" \ + -e "s/CFLAGS/AM_CFLAGS/" \ + src/Makefile.am || die "sed cflags failed" + + eautoreconf +} + +src_compile() { + use static && append-ldflags -static + econf + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc ChangeLog AUTHORS README +} diff --git a/app-benchmarks/stress/stress-1.0.4-r1.ebuild b/app-benchmarks/stress/stress-1.0.4-r1.ebuild new file mode 100644 index 000000000000..0df5cbf7eedd --- /dev/null +++ b/app-benchmarks/stress/stress-1.0.4-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic + +MY_P=${PN}-${PV/_/} +DESCRIPTION="Imposes stressful loads on different aspects of the system" +HOMEPAGE="http://people.seas.harvard.edu/~apw/stress" +SRC_URI="http://people.seas.harvard.edu/~apw/stress/${MY_P}.tar.gz -> ${MY_P}-r1.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="static" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + use static && append-ldflags -static +} diff --git a/app-benchmarks/stress/stress-1.0.4.ebuild b/app-benchmarks/stress/stress-1.0.4.ebuild new file mode 100644 index 000000000000..a4706b108a03 --- /dev/null +++ b/app-benchmarks/stress/stress-1.0.4.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit flag-o-matic + +MY_P=${PN}-${PV/_/} +DESCRIPTION="Imposes stressful loads on different aspects of the system" +HOMEPAGE="http://people.seas.harvard.edu/~apw/stress" +SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~mips ~ppc ~ppc64 ~sparc x86" +IUSE="static" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + use static && append-ldflags -static +} diff --git a/app-benchmarks/sysbench/Manifest b/app-benchmarks/sysbench/Manifest new file mode 100644 index 000000000000..22aabc7ca82f --- /dev/null +++ b/app-benchmarks/sysbench/Manifest @@ -0,0 +1 @@ +DIST sysbench-0.4.12.tar.gz 421932 SHA256 83fa7464193e012c91254e595a89894d8e35b4a38324b52a5974777e3823ea9e SHA512 e5903a38c89ac850e7e8af6bba6a5311f8c14ab579eff794f9a7688f41804e8b53a8ababd4d1ea1c69625d53d9fe47842d123a6bc2c5fd74ffcac5bac488abbe WHIRLPOOL a880eba1464125817e8497e3492cd0ca20d751a73fd79d70777a41fbab85660152e09e27a8226fdd4424d615d748ca678dee991733b363c183c6618a8359bc3a diff --git a/app-benchmarks/sysbench/metadata.xml b/app-benchmarks/sysbench/metadata.xml new file mode 100644 index 000000000000..50b818706223 --- /dev/null +++ b/app-benchmarks/sysbench/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>benchmarks</herd> + <use> + <flag name="aio">Enable libaio support</flag> + </use> + <upstream> + <remote-id type="sourceforge">sysbench</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/sysbench/sysbench-0.4.12-r1.ebuild b/app-benchmarks/sysbench/sysbench-0.4.12-r1.ebuild new file mode 100644 index 000000000000..56b54de7d712 --- /dev/null +++ b/app-benchmarks/sysbench/sysbench-0.4.12-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit autotools + +DESCRIPTION="System performance benchmark" +HOMEPAGE="http://sysbench.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="aio mysql" + +DEPEND="mysql? ( virtual/mysql ) + aio? ( dev-libs/libaio )" +RDEPEND="${DEPEND}" + +src_prepare() { + # fix for bug #297590 + sed -e 's/SUBDIRS \= doc sysbench/SUBDIRS \= sysbench/' -i Makefile.am || die "sed of makefile failed" + eautoreconf +} + +src_configure() { + if ! use aio; then my_econf="--disable-aio"; fi + econf $(use_with mysql mysql /usr) $my_econf || die "econf failed" +} +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc ChangeLog README +} diff --git a/app-benchmarks/tiobench/Manifest b/app-benchmarks/tiobench/Manifest new file mode 100644 index 000000000000..841c62577ffb --- /dev/null +++ b/app-benchmarks/tiobench/Manifest @@ -0,0 +1 @@ +DIST tiobench-0.3.3.tar.gz 28282 SHA256 8ad011059a35ac70cdb5e3d3999ceee44a8e8e9078926844b0685b7ea9db2bcc SHA512 e2752e32e9deaea611217629e99dc8fd738e63b4a21f49a0286f894bece3a258a3d223e0eb403ad5350dbb408738b9c5ba7300a85c8eea464266152965730328 WHIRLPOOL f6bb9b353cbbf007f6095caa5e893b3bac9af2f4cdb681be9b3f1abf6e07a5b4cd8dd0ceebfa96fd4a888fa28528a78ce00ff239c93cb96a11795168e4b2e81e diff --git a/app-benchmarks/tiobench/files/0.3.3-LDFLAGS.patch b/app-benchmarks/tiobench/files/0.3.3-LDFLAGS.patch new file mode 100644 index 000000000000..9145ae47044a --- /dev/null +++ b/app-benchmarks/tiobench/files/0.3.3-LDFLAGS.patch @@ -0,0 +1,12 @@ +diff -Nur tiobench-0.3.3.orig/Makefile tiobench-0.3.3/Makefile +--- tiobench-0.3.3.orig/Makefile 2002-03-13 20:22:55.000000000 +0000 ++++ tiobench-0.3.3/Makefile 2006-09-16 17:07:21.181644608 +0000 +@@ -34,7 +34,7 @@ + $(CC) -c $(CFLAGS) $(DEFINES) tiotest.c -o tiotest.o + + $(EXE): tiotest.o crc32.o +- $(LINK) -o $(EXE) tiotest.o crc32.o -lpthread ++ $(LINK) -o $(EXE) $(LDFLAGS) tiotest.o crc32.o -lpthread + @echo + @echo "./tiobench.pl --help for usage options" + @echo diff --git a/app-benchmarks/tiobench/files/0.3.3-column-description-fix.patch b/app-benchmarks/tiobench/files/0.3.3-column-description-fix.patch new file mode 100644 index 000000000000..b3ebb90b33e1 --- /dev/null +++ b/app-benchmarks/tiobench/files/0.3.3-column-description-fix.patch @@ -0,0 +1,21 @@ +--- tiobench.pl 2005-02-23 00:21:33.000000000 +0100 ++++ tiobench.pl 2005-03-15 18:11:19.000000000 +0100 +@@ -168,6 +168,8 @@ + $stat_data{$identifier}{$thread}{$size}{$block}{$field}{'stime'} ) / + $stat_data{$identifier}{$thread}{$size}{$block}{$field}{'time'}; + $stat_data{$identifier}{$thread}{$size}{$block}{$field}{'cpueff'} = ++ ($stat_data{$identifier}{$thread}{$size}{$block}{$field}{'cpu'} == 0) ? ++ '0' : + ($stat_data{$identifier}{$thread}{$size}{$block}{$field}{'rate'} / + ($stat_data{$identifier}{$thread}{$size}{$block}{$field}{'cpu'}/100)); + } +@@ -196,6 +198,9 @@ + $report{'SEQ_WRITES'} = "Sequential Writes"; + $report{'RAND_WRITES'} = "Random Writes"; + ++# The top is the same for all 4 reports ++$^ = 'SEQ_READS_TOP'; ++ + foreach my $title ('SEQ_READS', 'RAND_READS', 'SEQ_WRITES', 'RAND_WRITES') { + $-=0; $~="$title"; $^L=''; # reporting variables + print "\n$report{$title}\n"; diff --git a/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch b/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch new file mode 100644 index 000000000000..fed845a51d62 --- /dev/null +++ b/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch @@ -0,0 +1,21 @@ +diff -Nur tiobench-0.3.3.orig/tiotest.c tiobench-0.3.3/tiotest.c +--- tiobench-0.3.3.orig/tiotest.c 2001-03-05 02:34:00.000000000 +0000 ++++ tiobench-0.3.3/tiotest.c 2012-11-04 22:44:41.695677071 +0000 +@@ -31,7 +31,7 @@ + */ + ArgumentOptions args; + +-static void * aligned_alloc(ssize_t size) ++static void * tio_aligned_alloc(ssize_t size) + { + caddr_t a; + a = mmap((caddr_t )0, size, +@@ -281,7 +281,7 @@ + pthread_attr_setscope(&(d->threads[i].thread_attr), + PTHREAD_SCOPE_SYSTEM); + +- d->threads[i].buffer = aligned_alloc( d->threads[i].blockSize ); ++ d->threads[i].buffer = tio_aligned_alloc( d->threads[i].blockSize ); + if( d->threads[i].buffer == NULL ) + { + perror("Error allocating memory"); diff --git a/app-benchmarks/tiobench/metadata.xml b/app-benchmarks/tiobench/metadata.xml new file mode 100644 index 000000000000..b94bb1c4d00e --- /dev/null +++ b/app-benchmarks/tiobench/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>alicef@gentoo.org</email> + <name>Alice Ferrazzi</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">tiobench</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/tiobench/tiobench-0.3.3-r2.ebuild b/app-benchmarks/tiobench/tiobench-0.3.3-r2.ebuild new file mode 100644 index 000000000000..621200d5fdba --- /dev/null +++ b/app-benchmarks/tiobench/tiobench-0.3.3-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +DESCRIPTION="Portable, robust, fully-threaded I/O benchmark program" +HOMEPAGE="http://tiobench.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 amd64 ppc ppc64" +IUSE="" + +RDEPEND="dev-lang/perl" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PV}-column-description-fix.patch + epatch "${FILESDIR}"/${PV}-LDFLAGS.patch + epatch "${FILESDIR}"/${PV}-glibc-2.16.patch + + sed -i \ + -e 's:/usr/local/bin:/usr/sbin:' tiobench.pl \ + || die "sed tiobench.pl failed" +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + LINK="$(tc-getCC)" \ + DEFINES="-DLARGEFILES" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + || die "emake failed" +} + +src_install() { + dosbin tiotest tiobench.pl tiosum.pl || die "dosbin failed" + dodoc BUGS ChangeLog README TODO || die "dodoc failed" +} diff --git a/app-benchmarks/volanomark/Manifest b/app-benchmarks/volanomark/Manifest new file mode 100644 index 000000000000..0af9eeaa307a --- /dev/null +++ b/app-benchmarks/volanomark/Manifest @@ -0,0 +1 @@ +DIST vmark2_5_0_9.class 1591590 SHA256 55ae31452e771caded4af1bb45a2e01b710a3c3b02eea372db0d6d535591a7b4 SHA512 002953f780bfb2fa0f9663f6ee2228abbf277e98ebdc69dce3c0e9f03147e0bdb80ae381daf29838790c13aefc83406b61428871a890dcae2396a5c59fcee8bf WHIRLPOOL 00e8ffe4bae635bc72eeaac02e57ca3bfc39db416bf08251d1039dafa7e39d2f8858bd0f64f90a2623b739f84f9996efd7131a6f475df837c28dc236501b3810 diff --git a/app-benchmarks/volanomark/metadata.xml b/app-benchmarks/volanomark/metadata.xml new file mode 100644 index 000000000000..c9b7d13fbb4f --- /dev/null +++ b/app-benchmarks/volanomark/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +<longdescription>Java Benchmark test</longdescription> +</pkgmetadata> + diff --git a/app-benchmarks/volanomark/volanomark-2.5.0.9.ebuild b/app-benchmarks/volanomark/volanomark-2.5.0.9.ebuild new file mode 100644 index 000000000000..59aab313cd09 --- /dev/null +++ b/app-benchmarks/volanomark/volanomark-2.5.0.9.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Java server benchmark utility" +HOMEPAGE="http://www.volano.com/benchmarks.html" +SRC_URI="http://www.volano.com/pub/vmark2_5_0_9.class" +LICENSE="Volano" + +# Below because of licensing. +RESTRICT="mirror" + +SLOT="0" + +KEYWORDS="x86 amd64" +IUSE="" +DEPEND="virtual/jre + >=sys-apps/sed-4 + sys-apps/net-tools" + +RDEPEND="virtual/jre" + +src_unpack() { + einfo "No unpack required" +} + +src_install() { + dodir /opt/${PN} + java -classpath "${DISTDIR}" vmark2_5_0_9 -o "${D}"/opt/${PN} + chmod 755 "${D}"/opt/${PN}/*.sh + sed -i -e "s#^host=.*#cd /opt/${PN}\nhost=`hostname`#" \ + -e 's:"$java":java:g' \ + -e 's:! -f: -z :' \ + -e 's:-Sn:-n:' \ + "${D}"/opt/${PN}/startup.sh + + sed -i -e "s#^./startup.sh#/opt/${PN}/startup.sh#g" "${D}"/opt/${PN}/*.sh + + # Set stack-size correctly for different arches + if [ "${ARCH}" == "amd64" ] ; then + sed -i -e 's:Xss96:Xss512:' "${D}"/opt/${PN}/startup.sh + else + sed -i -e 's:Xss96:Xss128:' "${D}"/opt/${PN}/startup.sh + fi + + keepdir /opt/${PN}/logs +} + +pkg_postinst() { + + ewarn "The vendor provided installation script is somewhat broken!" + elog + elog "startup.sh was patched to allow the use of the current JVM as" + elog "selected by java-config. This means that regardless of the" + elog "Java vendor you specify to ${PN}, it will STILL use the default" + elog "JVM configured via java-config" + elog + elog "Just make sure that when you run ${PN}, the Java vendor you specify" + elog "matches up with what java-config is configured for. Otherwise specific" + elog "vendor specific options runtime may not work." + elog + elog "Remember to check the host property in startup.sh to the host that is" + elog "running the server" + +} diff --git a/app-benchmarks/wrk/Manifest b/app-benchmarks/wrk/Manifest new file mode 100644 index 000000000000..a458a6693321 --- /dev/null +++ b/app-benchmarks/wrk/Manifest @@ -0,0 +1,2 @@ +DIST wrk-3.1.1.tar.gz 901059 SHA256 3a44bd7c9da2edb80d41105c99c113250330b54bb9c3f80008eb6b088e5842ba SHA512 ed7bfa0549ce10046e5f054b75befc458f50dd8fa59d5c23194ce63ce18a3c0dd2e966a1397bbd2c1dea7b9ad2f4a8a6b3a5a9676c5202d53fa9406da75b7e19 WHIRLPOOL 3bcea7bfd5f80bd382d5fc83898b7afa3a2da4b6ed4349ad183dd80368c6d0c5127516ccc5cd569344b61de7357d12df8d7272709ba3ee976107989ffe41ff6f +DIST wrk-3.1.2.tar.gz 902868 SHA256 da88a25f0eeb9e1fd6a9dcf4a96859e9e758f9446f0787cf7c95e4ccde14eefc SHA512 399f33c2c008c21ac8fae1b561fe16ebcca324b5171340ffa706e84c256bf13a9983b5c18d258be6f87cb9fe8e38a434f9bfa7059395a01cb783f77faf952b15 WHIRLPOOL 3460aadf5f3e54cf64d0779b45efba291200f0344a55b3a8c35a603d9fbb917c006ff2035fb91bfdce7652b7e4231fc43c558115cab4ff73b91087163655fe85 diff --git a/app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch b/app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch new file mode 100644 index 000000000000..595c69ac1572 --- /dev/null +++ b/app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch @@ -0,0 +1,54 @@ +diff --git i/Makefile w/Makefile +index d956c6b..48be677 100644 +--- i/Makefile ++++ w/Makefile +@@ -1,4 +1,4 @@ +-CFLAGS := -std=c99 -Wall -O2 -D_REENTRANT ++CFLAGS += -std=c99 -Wall -D_REENTRANT + LIBS := -lpthread -lm -lcrypto -lssl + + TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown) +@@ -23,38 +23,31 @@ BIN := wrk + ODIR := obj + OBJ := $(patsubst %.c,$(ODIR)/%.o,$(SRC)) $(ODIR)/bytecode.o + +-LDIR = deps/luajit/src +-LIBS := -lluajit $(LIBS) +-CFLAGS += -I$(LDIR) +-LDFLAGS += -L$(LDIR) ++LIBS := $(shell pkg-config --libs luajit) $(LIBS) ++CFLAGS += $(shell pkg-config --cflags luajit) + + all: $(BIN) + + clean: + $(RM) $(BIN) obj/* +- @$(MAKE) -C deps/luajit clean + + $(BIN): $(OBJ) + @echo LINK $(BIN) +- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) ++ @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + +-$(OBJ): config.h Makefile $(LDIR)/libluajit.a | $(ODIR) ++$(OBJ): config.h Makefile | $(ODIR) + + $(ODIR): + @mkdir -p $@ + + $(ODIR)/bytecode.o: src/wrk.lua + @echo LUAJIT $< +- @$(SHELL) -c 'cd $(LDIR) && ./luajit -b $(CURDIR)/$< $(CURDIR)/$@' ++ @$(SHELL) -c 'luajit -b $(CURDIR)/$< $(CURDIR)/$@' + + $(ODIR)/%.o : %.c + @echo CC $< + @$(CC) $(CFLAGS) -c -o $@ $< + +-$(LDIR)/libluajit.a: +- @echo Building LuaJIT... +- @$(MAKE) -C $(LDIR) BUILDMODE=static +- + .PHONY: all clean + .SUFFIXES: + .SUFFIXES: .c .o .lua diff --git a/app-benchmarks/wrk/metadata.xml b/app-benchmarks/wrk/metadata.xml new file mode 100644 index 000000000000..f218e1558d16 --- /dev/null +++ b/app-benchmarks/wrk/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>vikraman@gentoo.org</email> + <name>Vikraman Choudhury (vikraman)</name> + </maintainer> + <longdescription lang="en"> + wrk is a modern HTTP benchmarking tool capable of generating + significant load when run on a single multi-core CPU. It combines a + multithreaded design with scalable event notification systems such as + epoll and kqueue. An optional LuaJIT script can perform HTTP request + generation, response processing, and custom reporting. + </longdescription> + <upstream> + <remote-id type="github">wg/wrk</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/wrk/wrk-3.1.1.ebuild b/app-benchmarks/wrk/wrk-3.1.1.ebuild new file mode 100644 index 000000000000..60f01be903dc --- /dev/null +++ b/app-benchmarks/wrk/wrk-3.1.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="A modern HTTP benchmarking tool" +HOMEPAGE="https://github.com/wg/wrk" +SRC_URI="https://github.com/wg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="dev-libs/openssl:0 >=dev-lang/luajit-2.0.2" +RDEPEND="${DEPEND}" + +src_prepare() { + rm -rf deps/luajit || die "failed to remove bundled luajit" + epatch "${FILESDIR}/${P}-makefile.patch" +} + +src_compile() { + tc-export CC + emake +} + +src_install() { + dobin wrk + dodoc README NOTICE + insinto /usr/share/${PN} + doins -r scripts +} diff --git a/app-benchmarks/wrk/wrk-3.1.2.ebuild b/app-benchmarks/wrk/wrk-3.1.2.ebuild new file mode 100644 index 000000000000..3c01bc5284d1 --- /dev/null +++ b/app-benchmarks/wrk/wrk-3.1.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="A modern HTTP benchmarking tool" +HOMEPAGE="https://github.com/wg/wrk" +SRC_URI="https://github.com/wg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="dev-libs/openssl:0 + >=dev-lang/luajit-2.0.2" +RDEPEND="${DEPEND}" + +src_prepare() { + rm -rf deps/luajit || die "failed to remove bundled luajit" + epatch "${FILESDIR}/${PN}-3.1.1-makefile.patch" +} + +src_compile() { + tc-export CC + emake +} + +src_install() { + dobin wrk + dodoc README NOTICE + insinto /usr/share/${PN} + doins -r scripts +} |