Mercurial > hg > portage
annotate sys-block/noflushd/noflushd-2.8.ebuild @ 386:9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 18 Mar 2015 08:19:31 +0100 |
parents | 84669d0adbe8 |
children |
rev | line source |
---|---|
256
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2009 Gentoo Foundation |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # $Header: /var/cvsroot/gentoo-x86/sys-block/noflushd/noflushd-2.7.5.ebuild,v 1.2 2009/04/11 15:18:15 vapier Exp $ |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 DESCRIPTION="A daemon to spin down your disks and force accesses to be cached" |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 HOMEPAGE="http://noflushd.sourceforge.net/" |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 SRC_URI="mirror://sourceforge/noflushd/${PN}-${PV}.tar.gz" |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 LICENSE="GPL-2" |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 SLOT="0" |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 KEYWORDS="~amd64 ~ppc ~x86" |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 IUSE="" |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 src_compile() { |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 econf \ |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 --with-docdir=/usr/share/doc/${PF} \ |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 --with-initdir=/etc/init.d |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 emake || die |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 } |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 src_install() { |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 emake install DESTDIR="${D}" || die |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 dodoc NEWS |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 prepalldocs |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 newinitd "${FILESDIR}"/noflushd.rc6 noflushd |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 newconfd "${FILESDIR}"/noflushd.confd noflushd |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 } |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 pkg_postinst() { |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 ewarn "noflushd works with IDE devices only." |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 ewarn "It has possible problems with reiserfs, too." |
84669d0adbe8
noflush 2.8 ebuild from holgi
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 } |