1 |
aidecoe 12/07/31 10:40:09 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hddtemp-0.3_beta15-r20.ebuild |
5 |
hddtemp-0.3_beta15-r21.ebuild |
6 |
Removed: hddtemp-0.3_beta15-r4.ebuild |
7 |
Log: |
8 |
Moved rev. with network-cron to r20 and applied fix for bug #424417 in r21. |
9 |
Thanks to Martin Jürgens <martin.accounts@×××.de> for finding the report and |
10 |
the patch. The patch has been written by Eduard Bloch <blade@××××××.org>, see |
11 |
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479840>. |
12 |
|
13 |
(Portage version: 2.1.11.9/cvs/Linux x86_64) |
14 |
|
15 |
Revision Changes Path |
16 |
1.115 app-admin/hddtemp/ChangeLog |
17 |
|
18 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/ChangeLog?rev=1.115&view=markup |
19 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/ChangeLog?rev=1.115&content-type=text/plain |
20 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/ChangeLog?r1=1.114&r2=1.115 |
21 |
|
22 |
Index: ChangeLog |
23 |
=================================================================== |
24 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/hddtemp/ChangeLog,v |
25 |
retrieving revision 1.114 |
26 |
retrieving revision 1.115 |
27 |
diff -u -r1.114 -r1.115 |
28 |
--- ChangeLog 31 Jul 2012 09:30:14 -0000 1.114 |
29 |
+++ ChangeLog 31 Jul 2012 10:40:08 -0000 1.115 |
30 |
@@ -1,6 +1,17 @@ |
31 |
# ChangeLog for app-admin/hddtemp |
32 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
33 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/ChangeLog,v 1.114 2012/07/31 09:30:14 aidecoe Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/ChangeLog,v 1.115 2012/07/31 10:40:08 aidecoe Exp $ |
35 |
+ |
36 |
+*hddtemp-0.3_beta15-r21 (31 Jul 2012) |
37 |
+*hddtemp-0.3_beta15-r20 (31 Jul 2012) |
38 |
+ |
39 |
+ 31 Jul 2012; Amadeusz Żołnowski <aidecoe@g.o> |
40 |
+ -hddtemp-0.3_beta15-r4.ebuild, +hddtemp-0.3_beta15-r20.ebuild, |
41 |
+ +hddtemp-0.3_beta15-r21.ebuild, +files/hddtemp-0.3_beta15-dontwake.patch: |
42 |
+ Moved rev. with network-cron to r20 and applied fix for bug #424417 in r21. |
43 |
+ Thanks to Martin Jürgens <martin.accounts@×××.de> for finding the report and |
44 |
+ the patch. The patch has been written by Eduard Bloch <blade@××××××.org>, see |
45 |
+ <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479840>. |
46 |
|
47 |
31 Jul 2012; Amadeusz Żołnowski <aidecoe@g.o> files/hddgentoo.db: |
48 |
Added Hitachi Travelstar E7K100 to hddgentoo.db. Fixes bug #419463. |
49 |
|
50 |
|
51 |
|
52 |
1.1 app-admin/hddtemp/hddtemp-0.3_beta15-r20.ebuild |
53 |
|
54 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r20.ebuild?rev=1.1&view=markup |
55 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r20.ebuild?rev=1.1&content-type=text/plain |
56 |
|
57 |
Index: hddtemp-0.3_beta15-r20.ebuild |
58 |
=================================================================== |
59 |
# Copyright 1999-2012 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r20.ebuild,v 1.1 2012/07/31 10:40:08 aidecoe Exp $ |
62 |
|
63 |
EAPI=4 |
64 |
|
65 |
inherit eutils autotools |
66 |
|
67 |
MY_P=${P/_beta/-beta} |
68 |
DBV=20080531 |
69 |
|
70 |
DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives" |
71 |
HOMEPAGE="http://savannah.nongnu.org/projects/hddtemp/" |
72 |
SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2" |
73 |
|
74 |
LICENSE="GPL-2" |
75 |
SLOT="0" |
76 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86" |
77 |
IUSE="network-cron nls" |
78 |
|
79 |
DEPEND="" |
80 |
RDEPEND="${DEPEND}" |
81 |
|
82 |
S="${WORKDIR}/${MY_P}" |
83 |
|
84 |
DOCS=(README TODO ChangeLog) |
85 |
|
86 |
src_prepare() { |
87 |
epatch "${FILESDIR}"/${P}-satacmds.patch |
88 |
epatch "${FILESDIR}"/${P}-byteswap.patch |
89 |
epatch "${FILESDIR}"/${P}-execinfo.patch |
90 |
epatch "${FILESDIR}"/${P}-nls.patch |
91 |
epatch "${FILESDIR}"/${P}-iconv.patch |
92 |
AT_M4DIR="m4" eautoreconf |
93 |
} |
94 |
|
95 |
src_configure() { |
96 |
local myconf |
97 |
|
98 |
myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db" |
99 |
# disabling nls breaks compiling |
100 |
use nls || myconf="--disable-nls ${myconf}" |
101 |
econf ${myconf} |
102 |
} |
103 |
|
104 |
src_install() { |
105 |
default |
106 |
|
107 |
insinto /usr/share/hddtemp |
108 |
newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db |
109 |
doins "${FILESDIR}"/hddgentoo.db |
110 |
|
111 |
update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db" |
112 |
newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp |
113 |
newinitd "${FILESDIR}"/hddtemp-init hddtemp |
114 |
|
115 |
dosbin "${FILESDIR}"/update-hddtemp.db |
116 |
|
117 |
if use network-cron ; then |
118 |
exeinto /etc/cron.monthly |
119 |
echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron |
120 |
newexe "${T}"/hddtemp.cron update-hddtemp.db |
121 |
fi |
122 |
} |
123 |
|
124 |
pkg_postinst() { |
125 |
elog "In order to update your hddtemp database, run:" |
126 |
elog " update-hddtemp.db" |
127 |
elog "" |
128 |
elog "If your hard drive is not recognized by hddtemp, please consider" |
129 |
elog "submitting your HDD info for inclusion into the Gentoo hddtemp" |
130 |
elog "database by filing a bug at https://bugs.gentoo.org/" |
131 |
elog "" |
132 |
elog "The hddtemp deamon requires a network interface to be up. If you" |
133 |
elog "don't have an Ethernet interface, make sure at least the loopback" |
134 |
elog "interface is up by setting 'rc_depend_strict=\"NO\"' in /etc/rc.conf." |
135 |
echo |
136 |
ewarn "If hddtemp complains but finds your HDD temperature sensor, use the" |
137 |
ewarn "--quiet option to suppress the warning." |
138 |
} |
139 |
|
140 |
update_db() { |
141 |
local src=$1 |
142 |
local dst=$2 |
143 |
|
144 |
while read line ; do |
145 |
if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then |
146 |
echo "${line}" >> "${dst}" |
147 |
fi |
148 |
|
149 |
id=$(echo "${line}" | grep -o '"[^"]*"') |
150 |
|
151 |
grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}" |
152 |
done < "${src}" |
153 |
} |
154 |
|
155 |
|
156 |
|
157 |
1.1 app-admin/hddtemp/hddtemp-0.3_beta15-r21.ebuild |
158 |
|
159 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r21.ebuild?rev=1.1&view=markup |
160 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r21.ebuild?rev=1.1&content-type=text/plain |
161 |
|
162 |
Index: hddtemp-0.3_beta15-r21.ebuild |
163 |
=================================================================== |
164 |
# Copyright 1999-2012 Gentoo Foundation |
165 |
# Distributed under the terms of the GNU General Public License v2 |
166 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r21.ebuild,v 1.1 2012/07/31 10:40:08 aidecoe Exp $ |
167 |
|
168 |
EAPI=4 |
169 |
|
170 |
inherit eutils autotools |
171 |
|
172 |
MY_P=${P/_beta/-beta} |
173 |
DBV=20080531 |
174 |
|
175 |
DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives" |
176 |
HOMEPAGE="http://savannah.nongnu.org/projects/hddtemp/" |
177 |
SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2" |
178 |
|
179 |
LICENSE="GPL-2" |
180 |
SLOT="0" |
181 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86" |
182 |
IUSE="network-cron nls" |
183 |
|
184 |
DEPEND="" |
185 |
RDEPEND="${DEPEND}" |
186 |
|
187 |
S="${WORKDIR}/${MY_P}" |
188 |
|
189 |
DOCS=(README TODO ChangeLog) |
190 |
|
191 |
src_prepare() { |
192 |
epatch "${FILESDIR}"/${P}-satacmds.patch |
193 |
epatch "${FILESDIR}"/${P}-byteswap.patch |
194 |
epatch "${FILESDIR}"/${P}-execinfo.patch |
195 |
epatch "${FILESDIR}"/${P}-nls.patch |
196 |
epatch "${FILESDIR}"/${P}-iconv.patch |
197 |
epatch "${FILESDIR}"/${P}-dontwake.patch |
198 |
AT_M4DIR="m4" eautoreconf |
199 |
} |
200 |
|
201 |
src_configure() { |
202 |
local myconf |
203 |
|
204 |
myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db" |
205 |
# disabling nls breaks compiling |
206 |
use nls || myconf="--disable-nls ${myconf}" |
207 |
econf ${myconf} |
208 |
} |
209 |
|
210 |
src_install() { |
211 |
default |
212 |
|
213 |
insinto /usr/share/hddtemp |
214 |
newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db |
215 |
doins "${FILESDIR}"/hddgentoo.db |
216 |
|
217 |
update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db" |
218 |
newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp |
219 |
newinitd "${FILESDIR}"/hddtemp-init hddtemp |
220 |
|
221 |
dosbin "${FILESDIR}"/update-hddtemp.db |
222 |
|
223 |
if use network-cron ; then |
224 |
exeinto /etc/cron.monthly |
225 |
echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron |
226 |
newexe "${T}"/hddtemp.cron update-hddtemp.db |
227 |
fi |
228 |
} |
229 |
|
230 |
pkg_postinst() { |
231 |
elog "In order to update your hddtemp database, run:" |
232 |
elog " update-hddtemp.db" |
233 |
elog "" |
234 |
elog "If your hard drive is not recognized by hddtemp, please consider" |
235 |
elog "submitting your HDD info for inclusion into the Gentoo hddtemp" |
236 |
elog "database by filing a bug at https://bugs.gentoo.org/" |
237 |
elog "" |
238 |
elog "The hddtemp deamon requires a network interface to be up. If you" |
239 |
elog "don't have an Ethernet interface, make sure at least the loopback" |
240 |
elog "interface is up by setting 'rc_depend_strict=\"NO\"' in /etc/rc.conf." |
241 |
echo |
242 |
ewarn "If hddtemp complains but finds your HDD temperature sensor, use the" |
243 |
ewarn "--quiet option to suppress the warning." |
244 |
} |
245 |
|
246 |
update_db() { |
247 |
local src=$1 |
248 |
local dst=$2 |
249 |
|
250 |
while read line ; do |
251 |
if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then |
252 |
echo "${line}" >> "${dst}" |
253 |
fi |
254 |
|
255 |
id=$(echo "${line}" | grep -o '"[^"]*"') |
256 |
|
257 |
grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}" |
258 |
done < "${src}" |
259 |
} |