summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2012-11-03 18:58:32 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2012-11-03 18:58:32 +0000
commit7095cfe1f426e760b66d6c75444b5c9b85a63893 (patch)
treea0d1111112ea95a98a1d8b849bbae36e5a6ad59b /app-benchmarks
parentUpdate mask for app-benchmarks/ltp (diff)
downloadgentoo-2-7095cfe1f426e760b66d6c75444b5c9b85a63893.tar.gz
gentoo-2-7095cfe1f426e760b66d6c75444b5c9b85a63893.tar.bz2
gentoo-2-7095cfe1f426e760b66d6c75444b5c9b85a63893.zip
Version bump. Clean up ebuild. Remove old. Take maintainership
(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/ltp/ChangeLog12
-rw-r--r--app-benchmarks/ltp/files/runltp-path.patch198
-rw-r--r--app-benchmarks/ltp/ltp-20090131.ebuild91
-rw-r--r--app-benchmarks/ltp/ltp-20100131.ebuild91
-rw-r--r--app-benchmarks/ltp/ltp-20120903.ebuild90
-rw-r--r--app-benchmarks/ltp/metadata.xml10
6 files changed, 300 insertions, 192 deletions
diff --git a/app-benchmarks/ltp/ChangeLog b/app-benchmarks/ltp/ChangeLog
index b9aa828ae025..6e9b9177f632 100644
--- a/app-benchmarks/ltp/ChangeLog
+++ b/app-benchmarks/ltp/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-benchmarks/ltp
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.19 2010/11/10 19:12:57 patrick Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.20 2012/11/03 18:58:32 hwoarang Exp $
+
+*ltp-20120903 (03 Nov 2012)
+
+ 03 Nov 2012; Markos Chandras <hwoarang@gentoo.org> +ltp-20120903.ebuild,
+ -ltp-20090131.ebuild, -ltp-20100131.ebuild, files/runltp-path.patch,
+ metadata.xml:
+ Version bump. Clean up ebuild. Remove old. Take maintainership
10 Nov 2010; Patrick Lauer <patrick@gentoo.org> ltp-20100131.ebuild:
Make repoman happy
@@ -72,4 +79,3 @@
+ltp-20041104.ebuild:
Initial import as per bug #13662. Ebuild and patches by Marien Zwart
<m_zwart@123mail.org>
-
diff --git a/app-benchmarks/ltp/files/runltp-path.patch b/app-benchmarks/ltp/files/runltp-path.patch
index a96e4431012d..5d8d55b886f4 100644
--- a/app-benchmarks/ltp/files/runltp-path.patch
+++ b/app-benchmarks/ltp/files/runltp-path.patch
@@ -1,11 +1,199 @@
---- runltp.orig 2004-11-06 11:40:02.729295792 +0100
-+++ runltp 2004-11-06 11:40:25.758808272 +0100
-@@ -43,7 +43,7 @@
+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 LTPROOT=/usr/libexec/ltp
export TMPBASE="/tmp"
- export TMP="${TMPBASE}/ltp-$$"
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-20090131.ebuild b/app-benchmarks/ltp/ltp-20090131.ebuild
deleted file mode 100644
index 0d71c4029daa..000000000000
--- a/app-benchmarks/ltp/ltp-20090131.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20090131.ebuild,v 1.2 2009/09/13 22:21:06 patrick Exp $
-
-inherit eutils portability flag-o-matic
-
-MY_P="${PN}-full-${PV}"
-S="${WORKDIR}/${MY_P}"
-DESCRIPTION="Linux Test Project: testsuite for the linux kernel"
-HOMEPAGE="http://ltp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/ltp/${MY_P}.tgz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-
-# add "dialog" to depends if ltpmenu is enabled
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # IDcheck patch not needed anymore, superseded by CREATE=0
- epatch "${FILESDIR}/runltp-path.patch"
-
- # All that remains of bad perl paths
- sed -i -e '1s,#!/usr/bin/perl5,#!/usr/bin/perl,' \
- "${S}/testcases/ballista/ballista/create_code_standAlone.pl"
-}
-
-src_compile() {
- # avoid creating groups
- export CREATE=0
- # Lazy binds are bad
- # TODO: Fix in upstream package
- append-ldflags -Wl,-z,now
- # actually build
- LDFLAGS="${LDFLAGS}" PREFIX=${D}/opt/blah emake DESTDIR="${D}" || die "emake failed"
-}
-
-src_install() {
- # avoid creating groups
- export CREATE=0
- DESTDIR="${D}" make install || die "install failed"
- dodir /usr/libexec/ltp/testcases
-
- treecopy testcases pan/pan runtest ver_linux IDcheck.sh \
- "${D}/usr/libexec/ltp" || die "treecopy failed"
- # TODO: clean up testcases directory to only include the data files
-
- dobin runltp runalltests.sh || die "dobin failed"
-
- # TODO: fix this so it works from "outside" the source tree
- # cp ltpmenu ${D}/usr/bin
-
- # fix world-writable files
- chmod -R o-w "${D}/usr/libexec/ltp/testcases"
- # Full list, TODO: fix in upstream
-## a=/usr/libexec/ltp/testcases
-## for i in ${a}/network/tcp_cmds/ftp/datafiles/ascii.sm \
-## ${a}/network/tcp_cmds/ftp/datafiles/ascii.med \
-## ${a}/network/tcp_cmds/ftp/datafiles/ascii.lg \
-## ${a}/network/tcp_cmds/ftp/datafiles/ascii.jmb \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.sm \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.med \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.lg \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.jmb \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.sm \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.med \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.lg \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.jmb \
-## ${a}/network/tcp_cmds/rcp/datafiles/ascii.sm \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.sm \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.med \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.lg \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.jmb \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.sm \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.med \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.lg \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.jmb \
-## ${a}/network/nfs/nfs02/dat/smallsize.fil \
-## ${a}/network/nfs/nfs02/dat/medsize.fil \
-## ${a}/network/nfs/nfs02/dat/largesize.fil \
-## ${a}/network/nfs/nfs02/dat/maxsize.fil \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.sm \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.med \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.lg \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.jmb \
-## ${a}/kernel/sched/sched_stress/sched_datafile \
-## ${a}/bin/sched_datafile ;
-## do chmod 644 ${D}${i} ; done ;
-}
diff --git a/app-benchmarks/ltp/ltp-20100131.ebuild b/app-benchmarks/ltp/ltp-20100131.ebuild
deleted file mode 100644
index 93621f38687a..000000000000
--- a/app-benchmarks/ltp/ltp-20100131.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20100131.ebuild,v 1.2 2010/11/10 19:12:57 patrick Exp $
-
-EAPI="2"
-
-inherit eutils portability flag-o-matic
-
-MY_P="${PN}-full-${PV}"
-S="${WORKDIR}/${MY_P}"
-DESCRIPTION="Linux Test Project: testsuite for the linux kernel"
-HOMEPAGE="http://ltp.sourceforge.net/"
-SRC_URI="mirror://sourceforge/ltp/${MY_P}.tgz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-
-# add "dialog" to depends if ltpmenu is enabled
-
-src_prepare() {
- # IDcheck patch not needed anymore, superseded by CREATE=0
- epatch "${FILESDIR}/runltp-path.patch"
-
- # All that remains of bad perl paths
- sed -i -e '1s,#!/usr/bin/perl5,#!/usr/bin/perl,' \
- "${S}/testcases/ballista/ballista/create_code_standAlone.pl"
-}
-
-src_compile() {
- # avoid creating groups
- export CREATE=0
- # Lazy binds are bad
- # TODO: Fix in upstream package
- append-ldflags -Wl,-z,now
- # actually build
- LDFLAGS="${LDFLAGS}" PREFIX=${D}/opt/blah emake DESTDIR="${D}" || die "emake failed"
-}
-
-src_install() {
- # avoid creating groups
- export CREATE=0
- DESTDIR="${D}" make install || die "install failed"
- dodir /usr/libexec/ltp/testcases
-
- treecopy testcases pan/pan runtest ver_linux IDcheck.sh \
- "${D}/usr/libexec/ltp" || die "treecopy failed"
- # TODO: clean up testcases directory to only include the data files
-
- dobin runltp runalltests.sh || die "dobin failed"
-
- # TODO: fix this so it works from "outside" the source tree
- # cp ltpmenu ${D}/usr/bin
-
- # fix world-writable files
- chmod -R o-w "${D}/usr/libexec/ltp/testcases"
- # Full list, TODO: fix in upstream
-## a=/usr/libexec/ltp/testcases
-## for i in ${a}/network/tcp_cmds/ftp/datafiles/ascii.sm \
-## ${a}/network/tcp_cmds/ftp/datafiles/ascii.med \
-## ${a}/network/tcp_cmds/ftp/datafiles/ascii.lg \
-## ${a}/network/tcp_cmds/ftp/datafiles/ascii.jmb \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.sm \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.med \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.lg \
-## ${a}/network/tcp_cmds/ftp/datafiles/bin.jmb \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.sm \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.med \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.lg \
-## ${a}/network/tcp_cmds/rcp/datafiles/bin.jmb \
-## ${a}/network/tcp_cmds/rcp/datafiles/ascii.sm \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.sm \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.med \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.lg \
-## ${a}/network/tcp_cmds/rdist/datafiles/bin.jmb \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.sm \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.med \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.lg \
-## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.jmb \
-## ${a}/network/nfs/nfs02/dat/smallsize.fil \
-## ${a}/network/nfs/nfs02/dat/medsize.fil \
-## ${a}/network/nfs/nfs02/dat/largesize.fil \
-## ${a}/network/nfs/nfs02/dat/maxsize.fil \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.sm \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.med \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.lg \
-## ${a}/network/ipv6/sendfile6/datafiles/ascii.jmb \
-## ${a}/kernel/sched/sched_stress/sched_datafile \
-## ${a}/bin/sched_datafile ;
-## do chmod 644 ${D}${i} ; done ;
-}
diff --git a/app-benchmarks/ltp/ltp-20120903.ebuild b/app-benchmarks/ltp/ltp-20120903.ebuild
new file mode 100644
index 000000000000..fedfdb00b103
--- /dev/null
+++ b/app-benchmarks/ltp/ltp-20120903.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20120903.ebuild,v 1.1 2012/11/03 18:58:32 hwoarang Exp $
+
+EAPI="4"
+
+inherit autotools eutils
+
+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 ~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
+}
+
+src_prepare() {
+ # regenerate
+ AT_M4DIR="m4" eautoreconf
+ # Create output/ and results/ directories
+ # in /tmp. We don't want to pollute the libexec
+ # directory
+ epatch "${FILESDIR}"/runltp-path.patch
+}
+
+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 /usr/libexec as everything needs to
+ # be under the same directory..
+
+ econf --prefix=/usr/libexec/${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
+}
+
+pkg_postinst() {
+ elog
+ elog "LTP requires root access to run the tests."
+ elog "The LTP root directory is located in /usr/libexec/${PN}"
+ elog "but the results and output folders will be created in /tmp."
+ elog "For more information please read the ltp-howto"
+ elog "located in /usr/share/doc/${PF}"
+ elog
+}
diff --git a/app-benchmarks/ltp/metadata.xml b/app-benchmarks/ltp/metadata.xml
index f182cf306fe4..30e3d2c35855 100644
--- a/app-benchmarks/ltp/metadata.xml
+++ b/app-benchmarks/ltp/metadata.xml
@@ -3,10 +3,16 @@
<pkgmetadata>
<herd>benchmarks</herd>
<maintainer>
- <email>patrick@gentoo.org</email>
- <name>Patrick Lauer</name>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
<description>Maintainer</description>
</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