summaryrefslogtreecommitdiff
blob: 95133b243c85bd0d01246b5e2fecccf170b07b50 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/smartsuite/smartsuite-2.1-r1.ebuild,v 1.4 2002/10/20 18:14:57 vapier Exp $

DESCRIPTION="Suite to control and monitor storage devices using SMART technology."
HOMEPAGE="http://www.linux-ide.org/smart.html"
LICENSE="GPL-2"
DEPEND="virtual/glibc"

SLOT="0"
KEYWORDS="x86 ppc sparc sparc64"
SRC_URI="mirror://sourceforge/smartsuite/${P}.tar.gz
	http://www.linux-ide.org/smart/${P}.tar.gz"
S=${WORKDIR}/${P}

src_unpack() {

	unpack "${A}"
	cd "${S}"
	sed -e "/^CFLAGS/ s/-O2/$CFLAGS/" < Makefile > Makefile.hacked
	mv Makefile.hacked Makefile

}

src_compile() {

	emake || die

}

src_install() {

	into /
	dosbin smartctl smartd

	into /usr
	doman smartctl.8 smartd.8
	dodoc CHANGELOG TODO COPYING README

	insinto /etc/init.d
	insopts -m755
	newins ${FILESDIR}/smartd.rc smartd

}