summaryrefslogtreecommitdiff
blob: a3c5c498b338bbf54206df36cdeca861559f4d46 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/raidtools/raidtools-0.90-r2.ebuild,v 1.15 2003/02/13 16:12:46 vapier Exp $

S=${WORKDIR}/raidtools-0.90
DESCRIPTION="Linux RAID 0/1/4/5 utilities"
SRC_URI="http://people.redhat.com/mingo/raid-patches/raidtools-dangerous-0.90-20000116.tar.gz"
DEPEND="virtual/glibc"
HOMEPAGE="http://people.redhat.com/mingo/raidtools/"
KEYWORDS="x86 ppc sparc "
SLOT="0"
LICENSE="GPL-2"

src_compile() {
	./configure || die
	cp Makefile Makefile.orig
	sed -e "s/-O2//" -e "s/ -g/ /" Makefile.orig > Makefile
	#emake appears to kill this every now and then (drobbins, 15 Sep 2002)
	make || die
}

src_install() {
	into /
	dosbin mkraid raidstart mkpv
	for x in raidstop raidhotadd raidhotremove raidsetfaulty
	do
		dosym raidstart /sbin/${x}
	done
	dosym mkraid /sbin/raid0run

	if [ -z "`use build`" ]
	then
		doman *.8 *.5
		dodoc COPYING README
		docinto txt
		dodoc Software-RAID.HOWTO/Software-RAID.HOWTO.txt
		dohtml Software-RAID.HOWTO/Software-RAID.HOWTO.html
		dohtml Software-RAID.HOWTO/Software-RAID.HOWTO.sgml
		docinto config
		dodoc *.sample
	fi
}