summaryrefslogtreecommitdiff
blob: 33ec93b33a355e986eaa7ecc63113ef0ef3e527b (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright 1999-2004 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_pre4.ebuild,v 1.18 2004/06/24 21:24:59 agriffis Exp $

MY_P="${P/_/}"
S="${WORKDIR}/${MY_P}"

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/${MY_P}.tar.gz"

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

RDEPEND="dev-util/dialog
	app-shells/bash
	sys-apps/diffutils
	sys-fs/e2fsprogs
	sys-apps/fileutils
	sys-apps/grep
	virtual/modutils
	sys-apps/psmisc
	sys-apps/sed
	sys-apps/sh-utils
	sys-apps/textutils
	sys-apps/util-linux
	sys-devel/make
	dev-lang/perl
	sys-libs/ncurses"

# Optional: app-admin/smartsuite  (depricated?)
# Optional: sys-apps/lm_sensors

src_compile() {
	emake || die
}

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

	dodir /usr/ctcs/runin/bin/

#	cp -R ${S}/runin ${D}/usr/ctcs/runin
	cp -Rap ${S}/lib ${D}/usr/ctcs/lib
	cp -Rap ${S}/selftest ${D}/usr/ctcs/selftest
	cp -Rap ${S}/sample ${D}/usr/ctcs/sample

	# The 'binaries'
	cp -ap ${S}/burnreset ${S}/check-requirements ${S}/check-syntax ${S}/color \
		${S}/newburn ${S}/newburn-generator ${S}/report ${S}/run ${D}/usr/ctcs/

	cp -ap ${S}/runin/src/random ${S}/runin/src/prandom ${D}/usr/ctcs/runin/bin/
	cp -ap ${S}/runin/src/flushb ${D}/usr/ctcs/runin/bin/flushb.real
	cp -ap ${S}/runin/src/chartst ${S}/runin/src/memtst.src/memtst \
		${D}/usr/ctcs/runin/

	for f in burnBX burnMMX burnP5 burnP6 burnK6 burnK7; do
		cp ${S}/runin/src/cpuburn/${f} ${D}/usr/ctcs/runin/bin/
	done
}

pkg_postinst() {
	cd /usr/ctcs/runin
	dosym messages-info allmessages-info
	dosym blockrdtst sblockrdtst
	dosym blockrdtst-info sblockrdtst-info
	dosym data sdata
	dosym data-info sdata-info
	dosym destructiveblocktst sdestructiveblocktst
	dosym destructiveblocktst-info sdestructiveblocktst-info
	dosym traverseread-info straverseread-info
	dosym traverseread straverseread

	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."
}