summaryrefslogtreecommitdiff
blob: 0fe7435d963e2fd7f553c88615ca115a7f15c979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/ctcs/ctcs-1.3.0.ebuild,v 1.1 2006/04/06 16:40:51 vapier Exp $

inherit eutils

DESCRIPTION="CTCS (Cerberus Test Control System) used to stress systems for the real world"
HOMEPAGE="http://sourceforge.net/projects/va-ctcs/"
SRC_URI="mirror://sourceforge/va-ctcs/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc x86"
IUSE=""

RDEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-build.patch
}

src_install() {
	dodoc CHANGELOG FAQ README.FIRST README README.TCF runin/README.runtest runin/README.tests

	exeinto /usr/ctcs/runin/bin
	doexe runin/src/cpuburn/{burnBX,burnMMX,burnP5,burnP6,burnK6,burnK7} || die "doexe cpuburn failed"

	cp -pPR lib selftest sample "${D}"/usr/ctcs/ || die "cp dirs"
	exeinto /usr/ctcs
	doexe burnreset check-requirements check-syntax color \
		newburn newburn-generator report run || die "doexe binaries"

	cp -pPR runin/src/{random,chartst,prandom} "${D}"/usr/ctcs/runin/bin/ || die "copy bins"
	cp -pPR runin/src/flushb "${D}"/usr/ctcs/runin/bin/flushb.real || die "copy flushb"
	cp -pPR runin/src/chartst runin/src/memtst.src/memtst \
		"${D}"/usr/ctcs/runin/ || die "copy chartst"

	cd runin
	exeinto /usr/ctcs/runin
	doexe messages-info blockrdtst blockrdtst-info data data-info destructiveblocktst \
		destructiveblocktst-info traverseread-info traverseread || die "doexe runin failed"
	dosym messages-info /usr/ctcs/runin/allmessages-info
	dosym blockrdtst /usr/ctcs/runin/sblockrdtst
	dosym blockrdtst-info /usr/ctcs/runin/sblockrdtst-info
	dosym data /usr/ctcs/runin/sdata
	dosym data-info /usr/ctcs/runin/sdata-info
	dosym destructiveblocktst /usr/ctcs/runin/sdestructiveblocktst
	dosym destructiveblocktst-info /usr/ctcs/runin/sdestructiveblocktst-info
	dosym traverseread-info /usr/ctcs/runin/straverseread-info
	dosym traverseread /usr/ctcs/runin/straverseread

	find "${D}" -name CVS -type d -print0 | xargs -0 rm -rf
}

pkg_postinst() {
	ewarn "CTCS (Cerberus Test Control System) used to make sure that"
	ewarn "new systems are ready to go out and face the perils of the"
	ewarn "cold, hard world.  It's made up of a suite of programs that"
	ewarn "literally pound the system.  The tests are meant for hardware"
	ewarn "with nothing on it yet... you will lose data.  Not might."
	ewarn "Will.  Please read at least README.FIRST before attempting"
	ewarn "to use the Cerberus Test Control System as certain"
	ewarn "configurations of CTCS may damage your system."
}