1 |
commit: 5c79004d714afbcc32715669e63d9722be884f6a |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 28 18:43:57 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 28 18:46:25 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c79004d |
7 |
|
8 |
app-laptop/hdapsd: remove old 20090401 version and its files. |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-laptop/hdapsd/Manifest | 1 - |
13 |
app-laptop/hdapsd/files/hdapsd.conf.3 | 12 ----- |
14 |
app-laptop/hdapsd/files/hdapsd.init.3 | 69 ----------------------------- |
15 |
app-laptop/hdapsd/hdapsd-20090401-r2.ebuild | 51 --------------------- |
16 |
4 files changed, 133 deletions(-) |
17 |
|
18 |
diff --git a/app-laptop/hdapsd/Manifest b/app-laptop/hdapsd/Manifest |
19 |
index 0e9092b..a460ec3 100644 |
20 |
--- a/app-laptop/hdapsd/Manifest |
21 |
+++ b/app-laptop/hdapsd/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST hdapsd-20090401.tar.gz 95058 SHA256 32979d58de4c54a7cc5671e7e7b4f0b653b659104faa9610433f8bb5dd4cef7a SHA512 4984a6c636d3447051ca5629fec89f08eee3773750f9623b80d7c0d4af65dcf9868392f2e93f5d13ac329d311ec2ebcdddf3e438007d1f851a920137c6903c96 WHIRLPOOL 9c3822acb39ff1f10e47604725bf6e42546b95ba9db26ebd751b69c4162e3df4f33d177a2a0b7a764c5e0f2478f470595cda304221a0ec165b07ef183b6ea9be |
24 |
DIST hdapsd-20141203.tar.gz 128818 SHA256 6650db6b2251b9774bdfba34dd58f712de4c761e6c78eb61ea3b82b694cbef5e SHA512 19c1a8b362f15864b71f4fb221c0993b43b3b2d965d5826af06fb9f6b0e345e5da99181493e13e230c7fe77060ae5b373027e8ec90a511566a6ccaef43998178 WHIRLPOOL befbcbbdcfc5ae9a844f0a96703a7c9a7d43bf4c5d6d9735412efc136d9e20aff6a4dc3e5755cfa9837122b4f7890b00be53a21237838b078271ba7c9650589c |
25 |
|
26 |
diff --git a/app-laptop/hdapsd/files/hdapsd.conf.3 b/app-laptop/hdapsd/files/hdapsd.conf.3 |
27 |
deleted file mode 100644 |
28 |
index 509d3af..0000000 |
29 |
--- a/app-laptop/hdapsd/files/hdapsd.conf.3 |
30 |
+++ /dev/null |
31 |
@@ -1,12 +0,0 @@ |
32 |
-# The list of the disk devices that hdapsd should monitor. |
33 |
-# Usually this is 'hda', 'sda' or 'hda sda'. |
34 |
-# hdaps will auto-devices if empty |
35 |
-#DISKLIST="sda" |
36 |
- |
37 |
-# hdapsd sensitivity |
38 |
-# The lower the threshold is the earlier |
39 |
-# the heads are parked when the laptop is shaked |
40 |
-THRESHOLD="10" |
41 |
- |
42 |
-# Set any extra options here, like -a for Adaptive mode |
43 |
-OPTIONS="-a" |
44 |
|
45 |
diff --git a/app-laptop/hdapsd/files/hdapsd.init.3 b/app-laptop/hdapsd/files/hdapsd.init.3 |
46 |
deleted file mode 100644 |
47 |
index d7894fb..0000000 |
48 |
--- a/app-laptop/hdapsd/files/hdapsd.init.3 |
49 |
+++ /dev/null |
50 |
@@ -1,69 +0,0 @@ |
51 |
-#!/sbin/runscript |
52 |
-# Copyright 1999-2013 Gentoo Foundation |
53 |
-# Distributed under the terms of the GNU General Public License, v2 |
54 |
- |
55 |
-depend() { |
56 |
- need localmount |
57 |
-} |
58 |
- |
59 |
-checkconfig() { |
60 |
- if [ -n "${DISK}" ]; then |
61 |
- ewarn "Please migrate DISK to DISKLIST in /etc/conf.d/hdapsd." |
62 |
- DISKLIST=${DISK} |
63 |
- fi |
64 |
- |
65 |
- if [ -z "${THRESHOLD}" ] ; then |
66 |
- eerror "You should setup THRESHOLD in /etc/conf.d/hdapsd." |
67 |
- return 1 |
68 |
- fi |
69 |
- |
70 |
- #empty DISKLIST is allowed as well |
71 |
- for DISK in ${DISKLIST}; do |
72 |
- if [ ! -b /dev/${DISK} ]; then |
73 |
- eerror "Could not find disk /dev/${DISK}!" |
74 |
- eerror "Adjust the DISK setting in /etc/conf.d/hdapsd" |
75 |
- return 1 |
76 |
- fi |
77 |
- |
78 |
- if [ ! -e /sys/block/${DISK}/queue/protect ] && [ ! -e /sys/block/${DISK}/device/unload_heads ] ; then |
79 |
- eerror "No protect entry for ${DISK}!" |
80 |
- eerror "Make sure your kernel is patched with the blk_freeze patch" |
81 |
- return 1 |
82 |
- fi |
83 |
- done |
84 |
- |
85 |
- # Load the tp_smapi module first |
86 |
- # This is not a requirement, but it helps hdapsd adaptive mode |
87 |
- if [ ! -e /sys/devices/platform/smapi ] ; then |
88 |
- modprobe tp_smapi 2>/dev/null |
89 |
- fi |
90 |
- |
91 |
- if [ ! -d /sys/devices/platform/hdaps ] ; then |
92 |
- ebegin "Loading hdaps module" |
93 |
- modprobe hdaps |
94 |
- eend $? || return 1 |
95 |
- fi |
96 |
-} |
97 |
- |
98 |
-start() { |
99 |
- checkconfig || return 1 |
100 |
- |
101 |
- local DISKOPTS DISK |
102 |
- for DISK in ${DISKLIST}; do |
103 |
- DISKOPTS="${DISKOPTS} -d ${DISK}" |
104 |
- done |
105 |
- |
106 |
- ebegin "Starting Hard Drive Active Protection System daemon" |
107 |
- start-stop-daemon --start --exec /usr/sbin/hdapsd \ |
108 |
- --pidfile /var/run/hdapsd.pid \ |
109 |
- -- --syslog --background --pidfile \ |
110 |
- ${DISKOPTS} --sensitivity "${THRESHOLD}" ${OPTIONS} |
111 |
- eend $? |
112 |
-} |
113 |
- |
114 |
-stop() { |
115 |
- ebegin "Stopping Hard Drive Active Protection System daemon" |
116 |
- start-stop-daemon --stop --exec /usr/sbin/hdapsd \ |
117 |
- --pidfile /var/run/hdapsd.pid |
118 |
- eend $? |
119 |
-} |
120 |
|
121 |
diff --git a/app-laptop/hdapsd/hdapsd-20090401-r2.ebuild b/app-laptop/hdapsd/hdapsd-20090401-r2.ebuild |
122 |
deleted file mode 100644 |
123 |
index 42abdee..0000000 |
124 |
--- a/app-laptop/hdapsd/hdapsd-20090401-r2.ebuild |
125 |
+++ /dev/null |
126 |
@@ -1,51 +0,0 @@ |
127 |
-# Copyright 1999-2013 Gentoo Foundation |
128 |
-# Distributed under the terms of the GNU General Public License v2 |
129 |
-# $Id$ |
130 |
- |
131 |
-EAPI=4 |
132 |
-inherit linux-info readme.gentoo |
133 |
- |
134 |
-DESCRIPTION="IBM ThinkPad Harddrive Active Protection disk head parking daemon" |
135 |
-HOMEPAGE="http://hdaps.sourceforge.net/" |
136 |
-SRC_URI="mirror://sourceforge/hdaps/${P}.tar.gz" |
137 |
- |
138 |
-LICENSE="GPL-2" |
139 |
-SLOT="0" |
140 |
-KEYWORDS="amd64 x86" |
141 |
-IUSE="" |
142 |
- |
143 |
-pkg_setup() { |
144 |
- # We require the hdaps module which can either come from kernel sources |
145 |
- # or from the tp_smapi package. |
146 |
- if ! has_version app-laptop/tp_smapi[hdaps]; then |
147 |
- CONFIG_CHECK="~SENSORS_HDAPS" |
148 |
- ERROR_SENSORS_HDAPS="${P} requires app-laptop/tp_smapi (with hdaps USE enabled) or support for CONFIG_SENSORS_HDAPS enabled" |
149 |
- linux-info_pkg_setup |
150 |
- fi |
151 |
- |
152 |
- DOC_CONTENTS="You can change the default frequency by modifing /sys/devices/platform/hdaps/sampling_rate. |
153 |
- You might need to enable shock protection manually by running:\n |
154 |
- # echo -1 > /sys/block/DEVICE/device/unload_heads" |
155 |
-} |
156 |
- |
157 |
-src_install() { |
158 |
- emake DESTDIR="${ED}" install |
159 |
- rm -rf "${ED}"/usr/share/doc/hdapsd |
160 |
- dodoc ChangeLog README AUTHORS |
161 |
- newconfd "${FILESDIR}"/hdapsd.conf.3 hdapsd |
162 |
- newinitd "${FILESDIR}"/hdapsd.init.3 hdapsd |
163 |
- readme.gentoo_create_doc |
164 |
-} |
165 |
- |
166 |
-pkg_postinst(){ |
167 |
- [[ -z $(ls ${EROOT}/sys/block/*/queue/protect 2>/dev/null) ]] && \ |
168 |
- [[ -z $(ls ${EROOT}/sys/block/*/device/unload_heads 2>/dev/null) ]] && \ |
169 |
- ewarn "Your kernel does NOT support shock protection. Kernel 2.6.28 and above is recommended!" |
170 |
- |
171 |
- if ! has_version app-laptop/tp_smapi[hdaps]; then |
172 |
- ewarn "Using the hdaps module provided by app-laptop/tp_smapi instead" |
173 |
- ewarn "of the in-kernel driver is strongly recommended!" |
174 |
- fi |
175 |
- |
176 |
- readme.gentoo_print_elog |
177 |
-} |