mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
app-admin/hddtemp: Bump to follow latest Debian patchset...
also multiple updates to the DB Thanks-to: Frank Krömmelbein Thanks-to: Thomas Albers Thanks-to: Paolo Pedroni Thanks-to: Evert Thanks-to: Chicago Closes: https://bugs.gentoo.org/627272 Closes: https://bugs.gentoo.org/661256 Closes: https://bugs.gentoo.org/664150 Closes: https://bugs.gentoo.org/668176 Closes: https://bugs.gentoo.org/497380 Closes: https://bugs.gentoo.org/656138 Signed-off-by: Pacho Ramos <pacho@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST hddtemp-0.3-beta15.tar.bz2 256372 BLAKE2B 1c928234c36172c387a002190045cd05007f4b4b8d74eb378ba810ea9aad96951b7a9b3b0f872130677fca1f294d86f855327dcfa5a263c9f3c7d58fbbba502e SHA512 7db5a3dff60c59ce147b996ea4f8b6de1abcd34301bb863507b4d4b44e72fdc031078867a7f37161e67e74f6b426a1d856d3081179c678d2a442815bb0faa94d
|
||||
DIST hddtemp-20080531.db.bz2 5627 BLAKE2B b973a981ee55033c8ba190efd9dc8586589292ef1f2b00542be7db2be64df812847665abefc7517f7c71dc70df153766570f62b69fc4891e758e82200ff8d589 SHA512 cd03cc300aece4f7427fde1b58840643c8e41e6c0ce30b418a62bf44b268f249ef3dc4f5f4bcbc9cc0cfe0346c18d4f1da22451c87efc3d46faebcb81a1fe059
|
||||
DIST hddtemp_0.3-beta15-53.diff.gz 52845 BLAKE2B ae4ef1f98ff39a39bdb49b2752f6f442c6ebe8ea6b0e8e743cc3ab9ef39d07abe8970648b841b3974cd814fdef72bc59cfe93c4b4d1cf2a85de1a0d94c4409b9 SHA512 1006ffa92f9973eb1da6444f8e8eed681e641efd17a52954b0e6c5041ecae13108af4ed89534ec4f2799685f96191769d3b168dbbb96085dc801150c7c547511
|
||||
|
||||
@@ -215,6 +215,7 @@
|
||||
"Hitachi HDS721680PLA380" 194 C "Hitachi Deskstar 7K160 80GB SATA2 7200RPM 8MB"
|
||||
"Hitachi HDS721010CLA332" 194 C "Hitachi Deskstar 7K1000.C 1TB SATA2 7200RPM"
|
||||
"HGST HDS724040ALE640" 194 C "HGST Deskstar 7K4000 4TB SATA3 7200RPM"
|
||||
"HGST HUS726060ALE610" 194 C "HGST Ultrastar 7K6000 model HUS726060ALE610"
|
||||
"ST9120822AS" 194 C "Seagate Momentus 5400.3 120GB SATA 5400RPM 8MB"
|
||||
"ST32000542AS" 194 C "Seagate Barracuda LP 2000GB SATA2 5900RPM 32MB"
|
||||
"ST2000DL003-9VT166" 194 C "Seagate Barracuda LP 2000GB SATA3 5900RPM 64MB"
|
||||
@@ -227,12 +228,13 @@
|
||||
"TOSHIBA HDWD130" 194 C "Toshiba P300 3TB SATA3 7200RPM 64MB"
|
||||
"Samsung SSD 850 EVO" 190 C "Samsung SSD 850 EVO Series"
|
||||
"Samsung SSD 840 Series" 190 C "Samsung SSD 840 Series"
|
||||
"Samsung SSD 840 PRO Serise" 190 C "Samsung SSD 840 Pro Series"
|
||||
"Samsung SSD 840 PRO Series" 190 C "Samsung SSD 840 Pro Series"
|
||||
"Samsung SSD 840 EVO" 190 C "Samsung SSD 840 EVO Series"
|
||||
"SAMSUNG HD203WI" 194 C "Samsung SpinPoint F3 EcoGreen 2TB SATA2 5400RPM 32MB"
|
||||
"SAMSUNG SSD 830 Series" 190 C "Samsung SSD 830 Series"
|
||||
"SanDisk SDSSDH2128G" 194 C "Sandisk SSD Ultra Plus 128GB"
|
||||
"SanDisk SDSSDH2256G" 194 C "Sandisk SSD Ultra Plus 256GB"
|
||||
"SuperMicro SSD" 194 C "SuperMicro SSD"
|
||||
"OCZ-VERTEX3" 194 C "OCZ Vertex 3 120GB SATA3"
|
||||
"Crucial_CT240M500SSD3" 194 C "Crucial M500 240GB SATA3 256MB"
|
||||
"WDC WD5003ABYX-01WERA2" 194 C "Western Digital RE4 500GB"
|
||||
@@ -258,6 +260,6 @@
|
||||
"ST2000DM006-2DM164" 194 C "Seagate Barracuda 2TB SATA3 7200RPM 64MB"
|
||||
"Samsung SSD 850 PRO 128G" 190 C "Samsung SSD 850 PRO 128G"
|
||||
"WDC WD1600BEVS-08RST2" 194 C "Western Digital Scorpio Blue SATA 160GB 5400RPM 8MB"
|
||||
"WDC WD30EZRZ-00Z5HB0" 194 C "Western Digital Blue 3TB SATA3 5400RPM 64MB"
|
||||
"WDC WD(1|2|3|4|5|6)0EZRZ-00Z5HB0" 194 C "Western Digital Blue SATA3 5400RPM 64MB"
|
||||
"ST31000528AS" 194 C "Seagate Barracuda 7200.12 1TB SATA2 7200RPM 32MB"
|
||||
"HITACHI HTS727550A9E364" 194 C "Hitachi Travelstar 7K500 500GB SATA2 7200RPM 16MB"
|
||||
|
||||
114
app-admin/hddtemp/hddtemp-0.3_beta15-r27.ebuild
Normal file
114
app-admin/hddtemp/hddtemp-0.3_beta15-r27.ebuild
Normal file
@@ -0,0 +1,114 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit autotools readme.gentoo-r1 systemd
|
||||
|
||||
MY_P=${P/_beta/-beta}
|
||||
DBV="20080531"
|
||||
DEB_PATCH="53"
|
||||
|
||||
DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives"
|
||||
HOMEPAGE="https://savannah.nongnu.org/projects/hddtemp/"
|
||||
SRC_URI="
|
||||
http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2
|
||||
mirror://gentoo/hddtemp-${DBV}.db.bz2
|
||||
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_/-}-${DEB_PATCH}.diff.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="network-cron nls selinux"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="selinux? ( sec-policy/selinux-hddtemp )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="In order to update your hddtemp database, run:
|
||||
emerge --config =${CATEGORY}/${PF} or update-hddtemp.db (if USE
|
||||
network-cron is enabled)
|
||||
|
||||
If your hard drive is not recognized by hddtemp, please consider
|
||||
submitting your HDD info for inclusion into the Gentoo hddtemp
|
||||
database by filing a bug at https://bugs.gentoo.org/
|
||||
|
||||
If hddtemp complains but finds your HDD temperature sensor, use the
|
||||
--quiet option to suppress the warning.
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/${PN}_${PV/_/-}-${DEB_PATCH}.diff
|
||||
"${FILESDIR}"/${P}-nls.patch
|
||||
"${FILESDIR}"/${P}-iconv.patch
|
||||
"${FILESDIR}"/${P}-dontwake.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mv "${S}"/configure.{in,ac} || die
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
|
||||
# disabling nls breaks compiling
|
||||
use nls || myconf="--disable-nls ${myconf}"
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /usr/share/hddtemp
|
||||
newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db
|
||||
doins "${FILESDIR}"/hddgentoo.db
|
||||
|
||||
update_db "${ED}/usr/share/hddtemp/hddgentoo.db" "${ED}/usr/share/hddtemp/hddtemp.db"
|
||||
newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp
|
||||
newinitd "${FILESDIR}"/hddtemp-init hddtemp
|
||||
systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service"
|
||||
systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf
|
||||
|
||||
readme.gentoo_create_doc
|
||||
|
||||
if use network-cron; then
|
||||
dosbin "${FILESDIR}"/update-hddtemp.db
|
||||
exeinto /etc/cron.monthly
|
||||
echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron
|
||||
newexe "${T}"/hddtemp.cron update-hddtemp.db
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
update_db() {
|
||||
local src=$1
|
||||
local dst=$2
|
||||
|
||||
while read line ; do
|
||||
if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then
|
||||
echo "${line}" >> "${dst}"
|
||||
fi
|
||||
|
||||
id=$(echo "${line}" | grep -o '"[^"]*"')
|
||||
|
||||
grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}"
|
||||
done < "${src}"
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
cd "${ROOT}"/usr/share/hddtemp || die
|
||||
|
||||
einfo "Trying to download the latest hddtemp.db file"
|
||||
wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db -O hddtemp.db \
|
||||
|| die "failed to download hddtemp.db"
|
||||
|
||||
update_db "hddgentoo.db" "hddtemp.db"
|
||||
}
|
||||
Reference in New Issue
Block a user