1 |
ssuominen 11/05/01 13:42:40 |
2 |
|
3 |
Modified: hdapsd-20090401.ebuild |
4 |
Log: |
5 |
Convert from built_with_use to has_version and clean up |
6 |
|
7 |
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 app-laptop/hdapsd/hdapsd-20090401.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401.ebuild?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401.ebuild?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401.ebuild?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: hdapsd-20090401.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401.ebuild,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- hdapsd-20090401.ebuild 15 Oct 2009 02:30:08 -0000 1.2 |
23 |
+++ hdapsd-20090401.ebuild 1 May 2011 13:42:40 -0000 1.3 |
24 |
@@ -1,9 +1,8 @@ |
25 |
-# Copyright 1999-2009 Gentoo Foundation |
26 |
+# Copyright 1999-2011 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401.ebuild,v 1.2 2009/10/15 02:30:08 mr_bones_ Exp $ |
29 |
- |
30 |
-EAPI="2" |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401.ebuild,v 1.3 2011/05/01 13:42:40 ssuominen Exp $ |
32 |
|
33 |
+EAPI=2 |
34 |
inherit eutils linux-info toolchain-funcs |
35 |
|
36 |
DESCRIPTION="IBM ThinkPad Harddrive Active Protection disk head parking daemon" |
37 |
@@ -12,15 +11,13 @@ |
38 |
|
39 |
LICENSE="GPL-2" |
40 |
SLOT="0" |
41 |
-KEYWORDS="~x86 ~amd64" |
42 |
- |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
IUSE="" |
45 |
-RDEPEND="" |
46 |
|
47 |
pkg_setup() { |
48 |
# We require the hdaps module which can either come from kernel sources or |
49 |
# from the tp_smapi package. |
50 |
- if ! has_version app-laptop/tp_smapi || ! built_with_use app-laptop/tp_smapi hdaps; then |
51 |
+ if ! has_version app-laptop/tp_smapi[hdaps]; then |
52 |
CONFIG_CHECK="~SENSORS_HDAPS" |
53 |
ERROR_SENSORS_HDAPS="${P} requires app-laptop/tp_smapi (with hdaps USE enabled) or support for CONFIG_SENSORS_HDAPS enabled" |
54 |
linux-info_pkg_setup |
55 |
@@ -28,7 +25,7 @@ |
56 |
} |
57 |
|
58 |
src_install() { |
59 |
- emake DESTDIR="${D}" install || die "Install failed" |
60 |
+ emake DESTDIR="${D}" install || die |
61 |
rm -rf "${D}"/usr/share/doc/hdapsd |
62 |
dodoc ChangeLog README AUTHORS |
63 |
newconfd "${FILESDIR}"/hdapsd.conf hdapsd |
64 |
@@ -36,11 +33,11 @@ |
65 |
} |
66 |
|
67 |
pkg_postinst(){ |
68 |
- [[ -z $(ls "${ROOT}"/sys/block/*/queue/protect 2>/dev/null) ]] && \ |
69 |
- [[ -z $(ls "${ROOT}"/sys/block/*/device/unload_heads 2>/dev/null) ]] && \ |
70 |
+ [[ -z $(ls ${ROOT}/sys/block/*/queue/protect 2>/dev/null) ]] && \ |
71 |
+ [[ -z $(ls ${ROOT}/sys/block/*/device/unload_heads 2>/dev/null) ]] && \ |
72 |
ewarn "Your kernel does NOT support shock protection. Kernel 2.6.28 and above is recommended!" |
73 |
|
74 |
- if ! has_version app-laptop/tp_smapi; then |
75 |
+ if ! has_version app-laptop/tp_smapi[hdaps]; then |
76 |
ewarn "Using the hdaps module provided by app-laptop/tp_smapi instead" |
77 |
ewarn "of the in-kernel driver is strongly recommended!" |
78 |
fi |