1 |
ottxor 11/12/21 04:51:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hdapsd-20090401-r1.ebuild |
5 |
Log: |
6 |
fixed bug #334435 and bug #392475 |
7 |
|
8 |
(Portage version: 2.2.0_alpha81/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.18 app-laptop/hdapsd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/ChangeLog?rev=1.18&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/ChangeLog?rev=1.18&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/ChangeLog?r1=1.17&r2=1.18 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v |
20 |
retrieving revision 1.17 |
21 |
retrieving revision 1.18 |
22 |
diff -u -r1.17 -r1.18 |
23 |
--- ChangeLog 4 May 2011 15:44:37 -0000 1.17 |
24 |
+++ ChangeLog 21 Dec 2011 04:51:22 -0000 1.18 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-laptop/hdapsd |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.17 2011/05/04 15:44:37 tomka Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.18 2011/12/21 04:51:22 ottxor Exp $ |
30 |
+ |
31 |
+*hdapsd-20090401-r1 (21 Dec 2011) |
32 |
+ |
33 |
+ 21 Dec 2011; Christoph Junghans <ottxor@g.o> |
34 |
+ +hdapsd-20090401-r1.ebuild, +files/hdapsd.conf.2, +files/hdapsd.init.2: |
35 |
+ fixed bug #334435 and bug #392475 |
36 |
|
37 |
04 May 2011; Thomas Kahle <tomka@g.o> hdapsd-20090401.ebuild: |
38 |
x86 stable per bug 334737 |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-laptop/hdapsd/hdapsd-20090401-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: hdapsd-20090401-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20090401-r1.ebuild,v 1.1 2011/12/21 04:51:22 ottxor Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
inherit linux-info |
55 |
|
56 |
DESCRIPTION="IBM ThinkPad Harddrive Active Protection disk head parking daemon" |
57 |
HOMEPAGE="http://hdaps.sourceforge.net/" |
58 |
SRC_URI="mirror://sourceforge/hdaps/${P}.tar.gz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~x86" |
63 |
IUSE="" |
64 |
|
65 |
pkg_setup() { |
66 |
# We require the hdaps module which can either come from kernel sources or |
67 |
# from the tp_smapi package. |
68 |
if ! has_version app-laptop/tp_smapi[hdaps]; then |
69 |
CONFIG_CHECK="~SENSORS_HDAPS" |
70 |
ERROR_SENSORS_HDAPS="${P} requires app-laptop/tp_smapi (with hdaps USE enabled) or support for CONFIG_SENSORS_HDAPS enabled" |
71 |
linux-info_pkg_setup |
72 |
fi |
73 |
} |
74 |
|
75 |
src_install() { |
76 |
emake DESTDIR="${ED}" install |
77 |
rm -rf "${ED}"/usr/share/doc/hdapsd |
78 |
dodoc ChangeLog README AUTHORS |
79 |
newconfd "${FILESDIR}"/hdapsd.conf.2 hdapsd |
80 |
newinitd "${FILESDIR}"/hdapsd.init.2 hdapsd |
81 |
} |
82 |
|
83 |
pkg_postinst(){ |
84 |
[[ -z $(ls ${EROOT}/sys/block/*/queue/protect 2>/dev/null) ]] && \ |
85 |
[[ -z $(ls ${EROOT}/sys/block/*/device/unload_heads 2>/dev/null) ]] && \ |
86 |
ewarn "Your kernel does NOT support shock protection. Kernel 2.6.28 and above is recommended!" |
87 |
|
88 |
if ! has_version app-laptop/tp_smapi[hdaps]; then |
89 |
ewarn "Using the hdaps module provided by app-laptop/tp_smapi instead" |
90 |
ewarn "of the in-kernel driver is strongly recommended!" |
91 |
fi |
92 |
|
93 |
elog "You can change the default frequency by modifing /sys/devices/platform/hdaps/sampling_rate" |
94 |
elog "You might need to enable shock protection manually by running " |
95 |
elog " echo -1 > /sys/block/DEVICE/device/unload_heads" |
96 |
} |