From 2300651c96aee1fa08bb8e347889cd5cf62fd992 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sat, 6 Nov 2004 23:34:10 +0000 Subject: Initial import as per bug #13662. Ebuild and patches by Marien Zwart --- app-benchmarks/ltp/ChangeLog | 12 +++++++ app-benchmarks/ltp/Manifest | 4 +++ .../ltp/files/IDcheck-noninteractive.patch | 23 ++++++++++++ app-benchmarks/ltp/files/digest-ltp-20041104 | 1 + app-benchmarks/ltp/files/runltp-path.patch | 11 ++++++ app-benchmarks/ltp/ltp-20041104.ebuild | 41 ++++++++++++++++++++++ app-benchmarks/ltp/metadata.xml | 11 ++++++ 7 files changed, 103 insertions(+) create mode 100644 app-benchmarks/ltp/ChangeLog create mode 100644 app-benchmarks/ltp/Manifest create mode 100644 app-benchmarks/ltp/files/IDcheck-noninteractive.patch create mode 100644 app-benchmarks/ltp/files/digest-ltp-20041104 create mode 100644 app-benchmarks/ltp/files/runltp-path.patch create mode 100644 app-benchmarks/ltp/ltp-20041104.ebuild create mode 100644 app-benchmarks/ltp/metadata.xml (limited to 'app-benchmarks/ltp') diff --git a/app-benchmarks/ltp/ChangeLog b/app-benchmarks/ltp/ChangeLog new file mode 100644 index 000000000000..75116dc82982 --- /dev/null +++ b/app-benchmarks/ltp/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-benchmarks/ltp +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.1 2004/11/06 23:34:10 dragonheart Exp $ + +*ltp-20041104 (07 Nov 2004) + + 07 Nov 2004; Daniel Black +metadata.xml, + +files/IDcheck-noninteractive.patch, +files/runltp-path.patch, + +ltp-20041104.ebuild: + Initial import as per bug #13662. Ebuild and patches by Marien Zwart + + diff --git a/app-benchmarks/ltp/Manifest b/app-benchmarks/ltp/Manifest new file mode 100644 index 000000000000..91dbbad58867 --- /dev/null +++ b/app-benchmarks/ltp/Manifest @@ -0,0 +1,4 @@ +MD5 cfb875812745227387e6cf110aa67f21 ltp-20041104.ebuild 986 +MD5 e2a7ff766a942e7a6a8e299cb74edacb files/runltp-path.patch 387 +MD5 e4bb569a7ad39bd83b66430469168d6b files/IDcheck-noninteractive.patch 729 +MD5 d1ba3a9b21ea0697d2b92b74e9147231 files/digest-ltp-20041104 67 diff --git a/app-benchmarks/ltp/files/IDcheck-noninteractive.patch b/app-benchmarks/ltp/files/IDcheck-noninteractive.patch new file mode 100644 index 000000000000..612875fa6744 --- /dev/null +++ b/app-benchmarks/ltp/files/IDcheck-noninteractive.patch @@ -0,0 +1,23 @@ +--- IDcheck.sh.orig 2004-11-06 10:34:45.167017728 +0100 ++++ IDcheck.sh 2004-11-06 10:35:15.092372928 +0100 +@@ -89,19 +89,7 @@ + I_AM_ROOT=1 + fi + +-if [ $NOBODY_ID != "0" ] || [ $BIN_ID != "0" ] || [ $DAEMON_ID != "0" ] || [ $NOBODY_GRP != "0" ] || [ $BIN_GRP != "0" ] || [ $DAEMON_GRP != "0" ] || [ $USERS_GRP != "0" ] || [ $SYS_GRP != "0" ] && [ $I_AM_ROOT != "0" ]; +-then +- echo -n "If any required user ids and/or groups are missing, would you like these created? Y/N " +- read ans +- case $ans in +- Y*|y*) +- CREATE=1 +- ;; +- *) +- CREATE=0 +- ;; +- esac +-fi ++CREATE=0 + + if [ $NOBODY_ID != "1" ] && [ $NOBODY_GRP != "1" ]; then + echo "Nobody user id and group exist." diff --git a/app-benchmarks/ltp/files/digest-ltp-20041104 b/app-benchmarks/ltp/files/digest-ltp-20041104 new file mode 100644 index 000000000000..3ee49b3f0039 --- /dev/null +++ b/app-benchmarks/ltp/files/digest-ltp-20041104 @@ -0,0 +1 @@ +MD5 98d4f0bc2185857adb64c1306977b0b4 ltp-full-20041104.tgz 5988292 diff --git a/app-benchmarks/ltp/files/runltp-path.patch b/app-benchmarks/ltp/files/runltp-path.patch new file mode 100644 index 000000000000..a96e4431012d --- /dev/null +++ b/app-benchmarks/ltp/files/runltp-path.patch @@ -0,0 +1,11 @@ +--- runltp.orig 2004-11-06 11:40:02.729295792 +0100 ++++ runltp 2004-11-06 11:40:25.758808272 +0100 +@@ -43,7 +43,7 @@ + echo "FATAL: unable to change directory to $(dirname $0)" + exit 1 + } +- export LTPROOT=${PWD} ++ export LTPROOT=/usr/libexec/ltp/ + export TMPBASE="/tmp" + export TMP="${TMPBASE}/ltp-$$" + export PATH="${PATH}:${LTPROOT}/testcases/bin" diff --git a/app-benchmarks/ltp/ltp-20041104.ebuild b/app-benchmarks/ltp/ltp-20041104.ebuild new file mode 100644 index 000000000000..5f2cdfbbe245 --- /dev/null +++ b/app-benchmarks/ltp/ltp-20041104.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20041104.ebuild,v 1.1 2004/11/06 23:34:10 dragonheart Exp $ + +inherit eutils + +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="x86" + +IUSE="" + +# add "dialog" here if ltpmenu is enabled +DEPEND="virtual/libc" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/IDcheck-noninteractive.patch + epatch ${FILESDIR}/runltp-path.patch +} +src_compile() { + emake || die "emake failed" +} + +src_install() { + make install || die "install failed" + + mkdir -p ${D}/usr/libexec/ltp/testcases ${D}/usr/bin/ || die "mkdir failed" + cp --parents -r testcases/bin pan/pan runtest ver_linux IDcheck.sh ${D}/usr/libexec/ltp || die "cp failed" + cp runltp runalltests.sh ${D}/usr/bin || die "cp failed" + + # TODO: fix this so it works from "outside" the source tree + # cp ltpmenu ${D}/usr/bin +} diff --git a/app-benchmarks/ltp/metadata.xml b/app-benchmarks/ltp/metadata.xml new file mode 100644 index 000000000000..10df4d335598 --- /dev/null +++ b/app-benchmarks/ltp/metadata.xml @@ -0,0 +1,11 @@ + + + +no-herd + + dragonheart@gentoo.org + Daniel Black + A user ebuild that I felt obliged to include. Please take over if you want it + + + -- cgit v1.2.3-65-gdbad