summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2004-11-06 23:34:10 +0000
committerDaniel Black <dragonheart@gentoo.org>2004-11-06 23:34:10 +0000
commit66fb2ca62ec0457b5c12d05de61b168ee29101f7 (patch)
tree11a926b65e3d3388f959684bc9fd39939c811def /app-benchmarks/ltp
parentFix for the 2.4 kNFSd security vulnerability and the 2.6 /dev/ptmx DoS, bug #... (diff)
downloadhistorical-66fb2ca62ec0457b5c12d05de61b168ee29101f7.tar.gz
historical-66fb2ca62ec0457b5c12d05de61b168ee29101f7.tar.bz2
historical-66fb2ca62ec0457b5c12d05de61b168ee29101f7.zip
Initial import as per bug #13662. Ebuild and patches by Marien Zwart
Diffstat (limited to 'app-benchmarks/ltp')
-rw-r--r--app-benchmarks/ltp/ChangeLog12
-rw-r--r--app-benchmarks/ltp/Manifest16
-rw-r--r--app-benchmarks/ltp/files/IDcheck-noninteractive.patch23
-rw-r--r--app-benchmarks/ltp/files/digest-ltp-200411041
-rw-r--r--app-benchmarks/ltp/files/runltp-path.patch11
-rw-r--r--app-benchmarks/ltp/ltp-20041104.ebuild41
-rw-r--r--app-benchmarks/ltp/metadata.xml11
7 files changed, 115 insertions, 0 deletions
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 <dragonheart@gentoo.org> +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
+ <m_zwart@123mail.org>
+
diff --git a/app-benchmarks/ltp/Manifest b/app-benchmarks/ltp/Manifest
new file mode 100644
index 000000000000..dd7e661fb25e
--- /dev/null
+++ b/app-benchmarks/ltp/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 035a54e7d8b3fbfa188d34c0f50fd852 ltp-20041104.ebuild 1119
+MD5 f592f012ff1df95e9b2dcd743df2405b metadata.xml 402
+MD5 68ccdadc573c7c5b65c824ea70affb1b ChangeLog 496
+MD5 e2a7ff766a942e7a6a8e299cb74edacb files/runltp-path.patch 387
+MD5 e4bb569a7ad39bd83b66430469168d6b files/IDcheck-noninteractive.patch 729
+MD5 d1ba3a9b21ea0697d2b92b74e9147231 files/digest-ltp-20041104 67
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBjV95mdTrptrqvGERAtVMAJwOFNfTPvK0rpbMjR7T6sFONFHkFgCeP29l
+6ATZ35Dbc7jgYZDOzBq6tJw=
+=TrWr
+-----END PGP SIGNATURE-----
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>dragonheart@gentoo.org</email>
+ <name>Daniel Black</name>
+ <description>A user ebuild that I felt obliged to include. Please take over if you want it</description>
+</maintainer>
+<longdescription></longdescription>
+</pkgmetadata>