1 |
mjo 14/10/29 02:12:52 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: hdapsd-20141024.ebuild |
5 |
Log: |
6 |
Add myself as co-maintainer and version bump. |
7 |
|
8 |
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x6F48D3DA05C2DADB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 app-laptop/hdapsd/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 18 Nov 2012 20:39:55 -0000 1.5 |
24 |
+++ metadata.xml 29 Oct 2014 02:12:52 -0000 1.6 |
25 |
@@ -1,12 +1,20 @@ |
26 |
<?xml version='1.0' encoding='UTF-8'?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
- <maintainer> |
30 |
- <email>ottxor@g.o</email> |
31 |
- <name>Christoph Junghans</name> |
32 |
- </maintainer> |
33 |
- <longdescription>IBM ThinkPad Harddrive Active Protection disk head parking daemon</longdescription> |
34 |
- <upstream> |
35 |
- <remote-id type="sourceforge">hdapsd</remote-id> |
36 |
- </upstream> |
37 |
+ <maintainer> |
38 |
+ <email>ottxor@g.o</email> |
39 |
+ <name>Christoph Junghans</name> |
40 |
+ </maintainer> |
41 |
+ |
42 |
+ <maintainer> |
43 |
+ <email>mjo@g.o</email> |
44 |
+ <name>Michael Orlitzky</name> |
45 |
+ </maintainer> |
46 |
+ |
47 |
+ <use> |
48 |
+ <flag name='libconfig'> |
49 |
+ Require <pkg>dev-libs/libconfig</pkg> to allow the daemon to |
50 |
+ read a configuration file at startup |
51 |
+ </flag> |
52 |
+ </use> |
53 |
</pkgmetadata> |
54 |
|
55 |
|
56 |
|
57 |
1.29 app-laptop/hdapsd/ChangeLog |
58 |
|
59 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/ChangeLog?rev=1.29&view=markup |
60 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/ChangeLog?rev=1.29&content-type=text/plain |
61 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/ChangeLog?r1=1.28&r2=1.29 |
62 |
|
63 |
Index: ChangeLog |
64 |
=================================================================== |
65 |
RCS file: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v |
66 |
retrieving revision 1.28 |
67 |
retrieving revision 1.29 |
68 |
diff -u -r1.28 -r1.29 |
69 |
--- ChangeLog 26 Jun 2013 14:09:22 -0000 1.28 |
70 |
+++ ChangeLog 29 Oct 2014 02:12:52 -0000 1.29 |
71 |
@@ -1,6 +1,12 @@ |
72 |
# ChangeLog for app-laptop/hdapsd |
73 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
74 |
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.28 2013/06/26 14:09:22 ottxor Exp $ |
75 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
76 |
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.29 2014/10/29 02:12:52 mjo Exp $ |
77 |
+ |
78 |
+*hdapsd-20141024 (29 Oct 2014) |
79 |
+ |
80 |
+ 29 Oct 2014; Michael Orlitzky <mjo@g.o> +files/hdapsd.conf-20141024, |
81 |
+ +files/hdapsd.init-20141024, +hdapsd-20141024.ebuild, metadata.xml: |
82 |
+ Add myself as co-maintainer and version bump. |
83 |
|
84 |
26 Jun 2013; Christoph Junghans <ottxor@g.o> -files/hdapsd.conf, |
85 |
-files/hdapsd.init, -hdapsd-20090401.ebuild, files/hdapsd.init.3: |
86 |
|
87 |
|
88 |
|
89 |
1.1 app-laptop/hdapsd/hdapsd-20141024.ebuild |
90 |
|
91 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/hdapsd-20141024.ebuild?rev=1.1&view=markup |
92 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/hdapsd/hdapsd-20141024.ebuild?rev=1.1&content-type=text/plain |
93 |
|
94 |
Index: hdapsd-20141024.ebuild |
95 |
=================================================================== |
96 |
# Copyright 1999-2014 Gentoo Foundation |
97 |
# Distributed under the terms of the GNU General Public License v2 |
98 |
# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20141024.ebuild,v 1.1 2014/10/29 02:12:52 mjo Exp $ |
99 |
|
100 |
EAPI=5 |
101 |
inherit linux-info readme.gentoo systemd |
102 |
|
103 |
DESCRIPTION="IBM ThinkPad Hard Drive Active Protection System (HDAPS) daemon" |
104 |
HOMEPAGE="https://github.com/evgeni/${PN}/" |
105 |
SRC_URI="https://github.com/evgeni/${PN}/releases/download/${PV}/${P}.tar.gz" |
106 |
|
107 |
LICENSE="GPL-2" |
108 |
SLOT="0" |
109 |
KEYWORDS="~amd64 ~x86" |
110 |
IUSE="libconfig" |
111 |
|
112 |
DEPEND="libconfig? ( dev-libs/libconfig )" |
113 |
RDEPEND="${DEPEND}" |
114 |
|
115 |
pkg_setup() { |
116 |
# We require the hdaps module which can either come from either the |
117 |
# kernel itself (CONFIG_SENSORS_HDAPS) or from the tp_smapi package. |
118 |
if ! has_version app-laptop/tp_smapi[hdaps]; then |
119 |
CONFIG_CHECK="~SENSORS_HDAPS" |
120 |
ERROR_SENSORS_HDAPS="${P} requires app-laptop/tp_smapi[hdaps] or " |
121 |
ERROR_SENSORS_HDAPS+="kernel support for CONFIG_SENSORS_HDAPS enabled" |
122 |
linux-info_pkg_setup |
123 |
fi |
124 |
} |
125 |
|
126 |
src_configure(){ |
127 |
econf \ |
128 |
$(use_enable libconfig) \ |
129 |
--with-systemdsystemunitdir=$(systemd_get_unitdir) \ |
130 |
--docdir="${EROOT}usr/share/doc/${PF}" |
131 |
} |
132 |
|
133 |
src_install() { |
134 |
default |
135 |
newconfd "${FILESDIR}/hdapsd.conf-${PV}" hdapsd |
136 |
newinitd "${FILESDIR}/hdapsd.init-${PV}" hdapsd |
137 |
readme.gentoo_create_doc |
138 |
} |
139 |
|
140 |
pkg_postinst(){ |
141 |
[[ -z $(ls "${EROOT}"sys/block/*/queue/protect 2>/dev/null) ]] && \ |
142 |
[[ -z $(ls "${EROOT}"sys/block/*/device/unload_heads 2>/dev/null) ]] && \ |
143 |
ewarn "Your kernel does NOT support shock protection." |
144 |
|
145 |
readme.gentoo_print_elog |
146 |
} |
147 |
|
148 |
DISABLE_AUTOFORMATTING=1 |
149 |
DOC_CONTENTS=" |
150 |
${PN} requires a kernel module to function properly. The recommended |
151 |
approach is to install app-laptop/tp_smapi[hdaps], but the in-tree |
152 |
module provided by CONFIG_SENSORS_HDAPS may work as well. |
153 |
|
154 |
Common daemon parameters can be set in ${EROOT}etc/conf.d/${PN}. If the |
155 |
package was installed with USE=libconfig, then the parameters can also |
156 |
be set in ${EROOT}etc/${PN}.conf, although the former will take |
157 |
precedence over the latter if both are used. |
158 |
|
159 |
You can change the default sampling rate by modifing |
160 |
|
161 |
/sys/devices/platform/hdaps/sampling_rate |
162 |
|
163 |
and you may need to enable shock protection manually by running |
164 |
|
165 |
# echo -1 > /sys/block/<disk>/device/unload_heads |
166 |
|
167 |
as root. |
168 |
" |