annotate sys-block/noflushd/noflushd-2.7.4.ebuild @ 21:d371aa5e3d6c

new e1000e PCI-Express driver
author holger@hoho.dyndns.org
date Sun, 25 May 2008 20:22:11 +0200
parents 7985ba427c7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
1 # Copyright 1999-2004 Gentoo Foundation
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/noflushd-2.7.3.ebuild,v 1.5 2004/09/03 21:03:24 pvdabeel Exp $
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
4
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
5 inherit flag-o-matic eutils
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
6
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
7 DESCRIPTION="A daemon to spin down your disks and force accesses to be cached"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
8 HOMEPAGE="http://noflushd.sourceforge.net"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
9 SRC_URI="mirror://sourceforge/noflushd/${P}.tar.gz"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
10 RESTRICT="nomirror"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
11 LICENSE="GPL-2"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
12 KEYWORDS="~x86 ~amd64 ppc"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
13 IUSE="SCSI"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
14 SLOT="0"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
15
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
16 DEPEND="virtual/libc"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
17
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
18 src_compile() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
19
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
20 if use SCSI; then
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
21 ewarn "Enabling SCSI support - you do this on your own risk!"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
22 epatch ${FILESDIR}/${P}-SCSI.patch
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
23 fi
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
24
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
25 # Replace -O[2-9] flags to keep the executable small
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
26 replace-flags -O[2-9] -Os
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
27
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
28 ./configure --prefix=/usr \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
29 --host=${CHOST} \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
30 --mandir=/usr/share/man \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
31 --infodir=/usr/share/info \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
32 --with-docdir=/usr/share/doc/${PF} || die "configure problem"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
33 emake || die "compile problem"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
34 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
35
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
36 src_install () {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
37 dosbin src/noflushd
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
38 doman man/noflushd.8
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
39 dodoc README NEWS
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
40
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
41 exeinto /etc/init.d ; newexe ${FILESDIR}/noflushd.rc6 noflushd
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
42 insinto /etc/conf.d ; newins ${FILESDIR}/noflushd.confd noflushd
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
43 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
44
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
45 pkg_postinst() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
46 einfo 'Run "rc-update add noflushd default" to add it to the'
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
47 einfo "default runlevel."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
48
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
49 ewarn "noflushd works reliably with IDE devices only."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
50 ewarn "It has possible problems with reiserfs, too."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
51 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
52