summaryrefslogtreecommitdiff
blob: 3471e547c6d127b6bf0121b984e2c1bf677c3ff8 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Copyright 1999-2002 Gentoo Technologies, Inc.
# 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.3 2002/10/17 01:23:49 vapier Exp $

# ${A}        - the tarball itself             eg:  ${PORTDIR}/distfiles/t.tgz
# ${P}        - program name-program version   eg:  foo-1.0
# ${PN}       - program name                   eg:  foo
# ${PV}       - program version                eg:  1.0
# ${D}        - /var/tmp/portage/foo-1.0/image -- install files go here
# ${S}        - /var/tmp/portage/foo-1.0/work/${P}
# ${WORKDIR}  - /var/tmp/portage/foo-1.0/work
# ${FILESDIR} - Location of patches

MY_P="ctcs-1.3.0pre4"
S="${WORKDIR}/${MY_P}"

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

# Developer reference
HOMEPAGE="http://sourceforge.net/projects/va-ctcs"

# ftp:// and http ://are known to work
# file:// is known to not work
#
# If the file is local on the HD, just leave it blank
SRC_URI="http://unc.dl.sourceforge.net/sourceforge/va-ctcs/${MY_P}.tar.gz"

# See ${PORTDIR}/licenses ... pick one of the file names
LICENSE="GPL-2"

# Multiple versions use version number
# SLOT='2.4.19'
#
# Default
# SLOT='0'
SLOT="0"

# KEYWORDS='x86 ppc sparc sparc64'
KEYWORDS="x86"

# Runtime dependancies
RDEPEND="virtual/glibc
	 dev-util/dialog
	 sys-apps/bash
	 sys-apps/diffutils
	 sys-apps/e2fsprogs
	 sys-apps/fileutils
	 sys-apps/grep
	 sys-apps/modutils
	 sys-apps/psmisc
	 sys-apps/sed
	 sys-apps/sh-utils
	 sys-apps/textutils
	 sys-apps/util-linux
	 sys-devel/make
	 sys-devel/perl
	 sys-libs/ncurses"

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

# Needed for compiling
DEPEND="${RDEPEND}"

src_compile() {
#	econf || die
	emake || die
}

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

	mkdir -p ${D}/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
}

src_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
}