summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2012-07-31 10:49:36 +0000
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2012-07-31 10:49:36 +0000
commit8743297942dfbb63ed524b0564285db0b1e1fc67 (patch)
tree9bd1552cbd389e8e9f31ac4375b5eb2b713ed229 /app-admin/hddtemp
parentAdd missing dependencies. Always use Python 2 wrt bug #428466. (diff)
downloadhistorical-8743297942dfbb63ed524b0564285db0b1e1fc67.tar.gz
historical-8743297942dfbb63ed524b0564285db0b1e1fc67.tar.bz2
historical-8743297942dfbb63ed524b0564285db0b1e1fc67.zip
Fixed bug #424417 for rev. without network-cron.
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'app-admin/hddtemp')
-rw-r--r--app-admin/hddtemp/ChangeLog6
-rw-r--r--app-admin/hddtemp/Manifest17
-rw-r--r--app-admin/hddtemp/hddtemp-0.3_beta15-r4.ebuild98
3 files changed, 112 insertions, 9 deletions
diff --git a/app-admin/hddtemp/ChangeLog b/app-admin/hddtemp/ChangeLog
index 6d2c01999c40..6929ce5612bc 100644
--- a/app-admin/hddtemp/ChangeLog
+++ b/app-admin/hddtemp/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-admin/hddtemp
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/ChangeLog,v 1.115 2012/07/31 10:40:08 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/ChangeLog,v 1.116 2012/07/31 10:49:36 aidecoe Exp $
+
+ 31 Jul 2012; Amadeusz Żołnowski <aidecoe@gentoo.org>
+ +hddtemp-0.3_beta15-r4.ebuild:
+ Fixed bug #424417 for rev. without network-cron.
*hddtemp-0.3_beta15-r21 (31 Jul 2012)
*hddtemp-0.3_beta15-r20 (31 Jul 2012)
diff --git a/app-admin/hddtemp/Manifest b/app-admin/hddtemp/Manifest
index 77faba778ccd..314468f0df70 100644
--- a/app-admin/hddtemp/Manifest
+++ b/app-admin/hddtemp/Manifest
@@ -16,16 +16,17 @@ DIST hddtemp-20080531.db.bz2 5627 SHA256 6a12bb68283c3224bef2ab086ae810b3f6b17b3
EBUILD hddtemp-0.3_beta15-r20.ebuild 2711 SHA256 9ff5a75bc1c758e3da144ca3b5f25f574ae246e51cc09cd50eea096df6d7bf12 SHA512 67a5aca76e21611cf4d715ce7638ecc26677e6a50e8bea80211e67206645959d7bcf7d5ab1bcd947343e41ba07249224ea91adca7dd2e15cbf813c87f2f3b0bf WHIRLPOOL 84ca98a0a3536ea7fa925c0ab344d32391c816532e54ba97c5b68eba713690b495a0cac4cb1d92e6c05520fda72d205a392677c5f0b9fc75718d7f992bcd53f1
EBUILD hddtemp-0.3_beta15-r21.ebuild 2753 SHA256 f53077b2be44b50d7c05d096ef97168dd13c7823ee41f090b1a0659951df39f9 SHA512 cefb5ee14ad8a48e5a9c6bbc20968d97dbb21eb278735a22faa42789efaf8fc60ecf615608b421b4aab00a0a4326863bed627a30dc77a2d727c2c6781bb606b9 WHIRLPOOL 06269afee6d9720524f9ba0ce024b77c445e05c3dec2a467e27e821d08278330b394754576b07283b820aab9a9ee6657835ff34f0a8721cebfd973b71ae214b6
EBUILD hddtemp-0.3_beta15-r3.ebuild 2791 SHA256 be621aa99c4417a404aa0e3e79c99c1e97af4d74b1dac0cbacbb955817db0b01 SHA512 01370299d5398151122f62aa52fc314853e69157d8e64ae8818cecb796b430bc1b0ad7eaa0e618638c659ca0f1529e7549560eb88fd2cd278c13a0926cfa4d3f WHIRLPOOL 6711f3db10a9b3a839320614f40d653851f70c38fb8b80dbc04cc86aa14800a2927d14c7169a3ac7bcf6e1d9d43078353d1d6c6fe452f42089936d5ff8849da9
-MISC ChangeLog 18683 SHA256 df73e8ed11f15ee57c63ecd7e4e2cc0df2463934fa3befe18a6e06826798690c SHA512 18b2e26f94a3f8aa760acf1ccd478bf8ebc12b6f3d20fa21e7527b798040c8e5966fb1d53afada001ac49d561ab8382fa449d7ade8e8ddca38191c7440d85252 WHIRLPOOL c59f4ff389b4f219642e0876fcce447c225148b74a19502a72dd5899b9c2200a82939a0518aea8abb5059ef4334427ac2123f7786a77e08348e4012bc7e416eb
+EBUILD hddtemp-0.3_beta15-r4.ebuild 2840 SHA256 86a6ea8a59d1a346c5e87cafab672353997ec540ba421626b406998709a1deb9 SHA512 75b4e6c19dc4b280459b50813a7979687c42ca3bd677aa5556a6567f99e2a950d27b9b83e76446fefa529cb9ae2d6ddd5ac5485b0ffd58538cac23e9ea6f5d69 WHIRLPOOL 28301ec4f30eacdc051ec3fb4a0403293312ca63107b40c2179020910c6a825b58647ebfb0416980d166078a1cf349433b55784f55b30edb22a600c110597c10
+MISC ChangeLog 18825 SHA256 300e757e7343c8f935fb922a1b602c7a93059c78b44c5681ab8d334a734432b3 SHA512 ab83cfbc558b9287470978749a55ed96dff06b1175b717eff706cc29ee01beb2eed8feab76922362079add00f52855cdad4f0572b25a8023d262dc51a083d29b WHIRLPOOL 6f1dff03e2f94faae112f19d226283c866db8290c2ece1e7ca17c6cc3eb245554b27ef77f5c92e88a6e2cfc7a81d6979a6ec89a3ca5b39c6de9c2a1107e437a2
MISC metadata.xml 291 SHA256 19a53a724046c239a0b154490a8f07ee4d54e14942b507120ade8eeed4926a34 SHA512 af63c7441a0645f948bd0f8ffd2c965ee61861ad62c269c6ec95d74d70ae2f2c587542224f27107cf5b2c50c32e6b8227a0ce1100734a2fe2f7311e653da6263 WHIRLPOOL 2eac8c84e8ed85aa6dfa9935af99bd4af9a07389cb513dd952ebbd1e025205332cf6eb4d9303f8e9de1f2ba03922904ee3eaa6a764178fb1ec7e9b3fe3d01fc8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJQF7YRAAoJEPATRTHh2/q1OwoIAJCCBgGCiEiLzeUOAJT4DblA
-zMr0QBE3a/YmUEwQU8I3AdyycpcvYKCsx/TCIbY4g2sAq2ulqzH48gFMXjH9qaPV
-D/Zez/qoFkVzTwkSwfTg2+nhsiAWqsu48ssteQJMhGt2yC8j8kf5TQop2HfSJ0RH
-u6YheSLffVwuzaIq61FBHvzAkY8BTSwQ8F59JHSd2DeJaciqrcEmyywITQD2dZYz
-g269rGahXLsXy2gnSy/GvOwhkBI9aTR5myY2jug05BmlCyIJLZgMUybO4VaCpBvj
-fw6WN55q+ZlfBInxwUI6umki9Dd0ljIyYOwqfgBciL8uRefiAEQOz8q5mVRFac4=
-=6DaB
+iQEcBAEBCAAGBQJQF7hGAAoJEPATRTHh2/q194MH/j4mqZanq81GC3pCNBLkFshw
+elX0fqfc9JUFOhW1ss5qhndaWceY7dyR0e/khujm0azZhYA+/3gHwtnBjWNYBqou
++pw1CbjxodNSe2aBKl7AlDd3mOl7frTYmJNsGwXg+KWCZscl3EvJRqa0dqd/4qg9
+GPqK7KhTaIYjpWXeHEY/+7dh14ItyQrTL1A4kpQPtcd4s5Xi5lUb1kcvicKvhGXO
+bkYVsUsKggB8vrZDg+2+b2m4OlHNSTYQzcm0vnokq4AwCL1wBgPAvh48Iattvt6W
+ptZ19EgOJppZrBXOO39CyIbyuet88ilWRmlQBmb0sfGjxDlltWc3zVfZRWKgHEU=
+=vo+6
-----END PGP SIGNATURE-----
diff --git a/app-admin/hddtemp/hddtemp-0.3_beta15-r4.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta15-r4.ebuild
new file mode 100644
index 000000000000..ebd964c6b280
--- /dev/null
+++ b/app-admin/hddtemp/hddtemp-0.3_beta15-r4.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r4.ebuild,v 1.9 2012/07/31 10:49:36 aidecoe Exp $
+
+inherit eutils autotools
+
+MY_P=${P/_beta/-beta}
+DBV=20080531
+
+DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives"
+HOMEPAGE="http://savannah.nongnu.org/projects/hddtemp/"
+SRC_URI="http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2 mirror://gentoo/hddtemp-${DBV}.db.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86"
+IUSE="nls"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-satacmds.patch
+ epatch "${FILESDIR}"/${P}-byteswap.patch
+ epatch "${FILESDIR}"/${P}-execinfo.patch
+ epatch "${FILESDIR}"/${P}-nls.patch
+ epatch "${FILESDIR}"/${P}-iconv.patch
+ epatch "${FILESDIR}"/${P}-dontwake.patch
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_compile() {
+ local myconf
+
+ myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
+ # disabling nls breaks compiling
+ use nls || myconf="--disable-nls ${myconf}"
+ econf ${myconf} || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc README TODO ChangeLog
+
+ insinto /usr/share/hddtemp
+ newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db
+ doins "${FILESDIR}"/hddgentoo.db
+
+ update_db "${D}/usr/share/hddtemp/hddgentoo.db" "${D}/usr/share/hddtemp/hddtemp.db"
+ newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp
+ newinitd "${FILESDIR}"/hddtemp-init hddtemp
+}
+
+pkg_postinst() {
+ elog "In order to update your hddtemp database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog ""
+ elog "If your hard drive is not recognized by hddtemp, please consider"
+ elog "submitting your HDD info for inclusion into the Gentoo hddtemp"
+ elog "database by filing a bug at https://bugs.gentoo.org/"
+ elog ""
+ elog "The hddtemp deamon requires a network interface to be up. If you"
+ elog "don't have an Ethernet interface, make sure at least the loopback"
+ elog "interface is up by setting 'rc_depend_strict=\"NO\"' in /etc/rc.conf."
+ echo
+ ewarn "If hddtemp complains but finds your HDD temperature sensor, use the"
+ ewarn "--quiet option to suppress the warning."
+}
+
+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
+
+ einfo "Trying to download the latest hddtemp.db file"
+ wget http://www.guzu.net/linux/hddtemp.db -O hddtemp.db \
+ || die "failed to download hddtemp.db"
+
+ update_db "hddgentoo.db" "hddtemp.db"
+}