1 |
commit: dfea1064475d1d149628e811be2cf4173f04bf53 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 20 16:35:13 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 20 16:35:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfea1064 |
7 |
|
8 |
app-admin/hddtemp: Bump to follow latest Debian patchset... |
9 |
|
10 |
also multiple updates to the DB |
11 |
|
12 |
Thanks-to: Frank Krömmelbein |
13 |
Thanks-to: Thomas Albers |
14 |
Thanks-to: Paolo Pedroni |
15 |
Thanks-to: Evert |
16 |
Thanks-to: Chicago |
17 |
Closes: https://bugs.gentoo.org/627272 |
18 |
Closes: https://bugs.gentoo.org/661256 |
19 |
Closes: https://bugs.gentoo.org/664150 |
20 |
Closes: https://bugs.gentoo.org/668176 |
21 |
Closes: https://bugs.gentoo.org/497380 |
22 |
Closes: https://bugs.gentoo.org/656138 |
23 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
24 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
25 |
|
26 |
app-admin/hddtemp/Manifest | 1 + |
27 |
app-admin/hddtemp/files/hddgentoo.db | 6 +- |
28 |
app-admin/hddtemp/hddtemp-0.3_beta15-r27.ebuild | 114 ++++++++++++++++++++++++ |
29 |
3 files changed, 119 insertions(+), 2 deletions(-) |
30 |
|
31 |
diff --git a/app-admin/hddtemp/Manifest b/app-admin/hddtemp/Manifest |
32 |
index 1d009ff90fc..2691235f76b 100644 |
33 |
--- a/app-admin/hddtemp/Manifest |
34 |
+++ b/app-admin/hddtemp/Manifest |
35 |
@@ -1,2 +1,3 @@ |
36 |
DIST hddtemp-0.3-beta15.tar.bz2 256372 BLAKE2B 1c928234c36172c387a002190045cd05007f4b4b8d74eb378ba810ea9aad96951b7a9b3b0f872130677fca1f294d86f855327dcfa5a263c9f3c7d58fbbba502e SHA512 7db5a3dff60c59ce147b996ea4f8b6de1abcd34301bb863507b4d4b44e72fdc031078867a7f37161e67e74f6b426a1d856d3081179c678d2a442815bb0faa94d |
37 |
DIST hddtemp-20080531.db.bz2 5627 BLAKE2B b973a981ee55033c8ba190efd9dc8586589292ef1f2b00542be7db2be64df812847665abefc7517f7c71dc70df153766570f62b69fc4891e758e82200ff8d589 SHA512 cd03cc300aece4f7427fde1b58840643c8e41e6c0ce30b418a62bf44b268f249ef3dc4f5f4bcbc9cc0cfe0346c18d4f1da22451c87efc3d46faebcb81a1fe059 |
38 |
+DIST hddtemp_0.3-beta15-53.diff.gz 52845 BLAKE2B ae4ef1f98ff39a39bdb49b2752f6f442c6ebe8ea6b0e8e743cc3ab9ef39d07abe8970648b841b3974cd814fdef72bc59cfe93c4b4d1cf2a85de1a0d94c4409b9 SHA512 1006ffa92f9973eb1da6444f8e8eed681e641efd17a52954b0e6c5041ecae13108af4ed89534ec4f2799685f96191769d3b168dbbb96085dc801150c7c547511 |
39 |
|
40 |
diff --git a/app-admin/hddtemp/files/hddgentoo.db b/app-admin/hddtemp/files/hddgentoo.db |
41 |
index 539a88a4917..c4f67905257 100644 |
42 |
--- a/app-admin/hddtemp/files/hddgentoo.db |
43 |
+++ b/app-admin/hddtemp/files/hddgentoo.db |
44 |
@@ -215,6 +215,7 @@ |
45 |
"Hitachi HDS721680PLA380" 194 C "Hitachi Deskstar 7K160 80GB SATA2 7200RPM 8MB" |
46 |
"Hitachi HDS721010CLA332" 194 C "Hitachi Deskstar 7K1000.C 1TB SATA2 7200RPM" |
47 |
"HGST HDS724040ALE640" 194 C "HGST Deskstar 7K4000 4TB SATA3 7200RPM" |
48 |
+"HGST HUS726060ALE610" 194 C "HGST Ultrastar 7K6000 model HUS726060ALE610" |
49 |
"ST9120822AS" 194 C "Seagate Momentus 5400.3 120GB SATA 5400RPM 8MB" |
50 |
"ST32000542AS" 194 C "Seagate Barracuda LP 2000GB SATA2 5900RPM 32MB" |
51 |
"ST2000DL003-9VT166" 194 C "Seagate Barracuda LP 2000GB SATA3 5900RPM 64MB" |
52 |
@@ -227,12 +228,13 @@ |
53 |
"TOSHIBA HDWD130" 194 C "Toshiba P300 3TB SATA3 7200RPM 64MB" |
54 |
"Samsung SSD 850 EVO" 190 C "Samsung SSD 850 EVO Series" |
55 |
"Samsung SSD 840 Series" 190 C "Samsung SSD 840 Series" |
56 |
-"Samsung SSD 840 PRO Serise" 190 C "Samsung SSD 840 Pro Series" |
57 |
+"Samsung SSD 840 PRO Series" 190 C "Samsung SSD 840 Pro Series" |
58 |
"Samsung SSD 840 EVO" 190 C "Samsung SSD 840 EVO Series" |
59 |
"SAMSUNG HD203WI" 194 C "Samsung SpinPoint F3 EcoGreen 2TB SATA2 5400RPM 32MB" |
60 |
"SAMSUNG SSD 830 Series" 190 C "Samsung SSD 830 Series" |
61 |
"SanDisk SDSSDH2128G" 194 C "Sandisk SSD Ultra Plus 128GB" |
62 |
"SanDisk SDSSDH2256G" 194 C "Sandisk SSD Ultra Plus 256GB" |
63 |
+"SuperMicro SSD" 194 C "SuperMicro SSD" |
64 |
"OCZ-VERTEX3" 194 C "OCZ Vertex 3 120GB SATA3" |
65 |
"Crucial_CT240M500SSD3" 194 C "Crucial M500 240GB SATA3 256MB" |
66 |
"WDC WD5003ABYX-01WERA2" 194 C "Western Digital RE4 500GB" |
67 |
@@ -258,6 +260,6 @@ |
68 |
"ST2000DM006-2DM164" 194 C "Seagate Barracuda 2TB SATA3 7200RPM 64MB" |
69 |
"Samsung SSD 850 PRO 128G" 190 C "Samsung SSD 850 PRO 128G" |
70 |
"WDC WD1600BEVS-08RST2" 194 C "Western Digital Scorpio Blue SATA 160GB 5400RPM 8MB" |
71 |
-"WDC WD30EZRZ-00Z5HB0" 194 C "Western Digital Blue 3TB SATA3 5400RPM 64MB" |
72 |
+"WDC WD(1|2|3|4|5|6)0EZRZ-00Z5HB0" 194 C "Western Digital Blue SATA3 5400RPM 64MB" |
73 |
"ST31000528AS" 194 C "Seagate Barracuda 7200.12 1TB SATA2 7200RPM 32MB" |
74 |
"HITACHI HTS727550A9E364" 194 C "Hitachi Travelstar 7K500 500GB SATA2 7200RPM 16MB" |
75 |
|
76 |
diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r27.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r27.ebuild |
77 |
new file mode 100644 |
78 |
index 00000000000..53a9a779e93 |
79 |
--- /dev/null |
80 |
+++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r27.ebuild |
81 |
@@ -0,0 +1,114 @@ |
82 |
+# Copyright 1999-2018 Gentoo Authors |
83 |
+# Distributed under the terms of the GNU General Public License v2 |
84 |
+ |
85 |
+EAPI=7 |
86 |
+inherit autotools readme.gentoo-r1 systemd |
87 |
+ |
88 |
+MY_P=${P/_beta/-beta} |
89 |
+DBV="20080531" |
90 |
+DEB_PATCH="53" |
91 |
+ |
92 |
+DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives" |
93 |
+HOMEPAGE="https://savannah.nongnu.org/projects/hddtemp/" |
94 |
+SRC_URI=" |
95 |
+ http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 |
96 |
+ mirror://gentoo/hddtemp-${DBV}.db.bz2 |
97 |
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_/-}-${DEB_PATCH}.diff.gz |
98 |
+" |
99 |
+ |
100 |
+LICENSE="GPL-2" |
101 |
+SLOT="0" |
102 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
103 |
+IUSE="network-cron nls selinux" |
104 |
+ |
105 |
+DEPEND="" |
106 |
+RDEPEND="selinux? ( sec-policy/selinux-hddtemp )" |
107 |
+ |
108 |
+S="${WORKDIR}/${MY_P}" |
109 |
+ |
110 |
+DISABLE_AUTOFORMATTING="yes" |
111 |
+DOC_CONTENTS="In order to update your hddtemp database, run: |
112 |
+emerge --config =${CATEGORY}/${PF} or update-hddtemp.db (if USE |
113 |
+network-cron is enabled) |
114 |
+ |
115 |
+If your hard drive is not recognized by hddtemp, please consider |
116 |
+submitting your HDD info for inclusion into the Gentoo hddtemp |
117 |
+database by filing a bug at https://bugs.gentoo.org/ |
118 |
+ |
119 |
+If hddtemp complains but finds your HDD temperature sensor, use the |
120 |
+--quiet option to suppress the warning. |
121 |
+" |
122 |
+ |
123 |
+PATCHES=( |
124 |
+ "${WORKDIR}"/${PN}_${PV/_/-}-${DEB_PATCH}.diff |
125 |
+ "${FILESDIR}"/${P}-nls.patch |
126 |
+ "${FILESDIR}"/${P}-iconv.patch |
127 |
+ "${FILESDIR}"/${P}-dontwake.patch |
128 |
+) |
129 |
+ |
130 |
+src_prepare() { |
131 |
+ default |
132 |
+ mv "${S}"/configure.{in,ac} || die |
133 |
+ AT_M4DIR="m4" eautoreconf |
134 |
+} |
135 |
+ |
136 |
+src_configure() { |
137 |
+ local myconf |
138 |
+ |
139 |
+ myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db" |
140 |
+ # disabling nls breaks compiling |
141 |
+ use nls || myconf="--disable-nls ${myconf}" |
142 |
+ econf ${myconf} |
143 |
+} |
144 |
+ |
145 |
+src_install() { |
146 |
+ default |
147 |
+ |
148 |
+ insinto /usr/share/hddtemp |
149 |
+ newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db |
150 |
+ doins "${FILESDIR}"/hddgentoo.db |
151 |
+ |
152 |
+ update_db "${ED}/usr/share/hddtemp/hddgentoo.db" "${ED}/usr/share/hddtemp/hddtemp.db" |
153 |
+ newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp |
154 |
+ newinitd "${FILESDIR}"/hddtemp-init hddtemp |
155 |
+ systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service" |
156 |
+ systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf |
157 |
+ |
158 |
+ readme.gentoo_create_doc |
159 |
+ |
160 |
+ if use network-cron; then |
161 |
+ dosbin "${FILESDIR}"/update-hddtemp.db |
162 |
+ exeinto /etc/cron.monthly |
163 |
+ echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron |
164 |
+ newexe "${T}"/hddtemp.cron update-hddtemp.db |
165 |
+ fi |
166 |
+} |
167 |
+ |
168 |
+pkg_postinst() { |
169 |
+ readme.gentoo_print_elog |
170 |
+} |
171 |
+ |
172 |
+update_db() { |
173 |
+ local src=$1 |
174 |
+ local dst=$2 |
175 |
+ |
176 |
+ while read line ; do |
177 |
+ if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then |
178 |
+ echo "${line}" >> "${dst}" |
179 |
+ fi |
180 |
+ |
181 |
+ id=$(echo "${line}" | grep -o '"[^"]*"') |
182 |
+ |
183 |
+ grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}" |
184 |
+ done < "${src}" |
185 |
+} |
186 |
+ |
187 |
+pkg_config() { |
188 |
+ cd "${ROOT}"/usr/share/hddtemp || die |
189 |
+ |
190 |
+ einfo "Trying to download the latest hddtemp.db file" |
191 |
+ wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db -O hddtemp.db \ |
192 |
+ || die "failed to download hddtemp.db" |
193 |
+ |
194 |
+ update_db "hddgentoo.db" "hddtemp.db" |
195 |
+} |