Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/lm_sensors: lm_sensors-3.3.3-r2.ebuild ChangeLog lm_sensors-3.3.3.ebuild lm_sensors-3.3.3-r1.ebuild
Date: Thu, 31 Jan 2013 15:37:54
Message-Id: 20130131153750.CCD8F2171E@flycatcher.gentoo.org
1 flameeyes 13/01/31 15:37:50
2
3 Modified: ChangeLog
4 Added: lm_sensors-3.3.3-r2.ebuild
5 Removed: lm_sensors-3.3.3.ebuild lm_sensors-3.3.3-r1.ebuild
6 Log:
7 Fix sensord init script that was typoed (thanks to Gordon Pritchard for the report); make it use /run directly, overriding the default pid file location. Remove unused for the slot.
8
9 (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
10
11 Revision Changes Path
12 1.134 sys-apps/lm_sensors/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/ChangeLog?rev=1.134&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/ChangeLog?rev=1.134&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/ChangeLog?r1=1.133&r2=1.134
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v
21 retrieving revision 1.133
22 retrieving revision 1.134
23 diff -u -r1.133 -r1.134
24 --- ChangeLog 28 Dec 2012 11:37:34 -0000 1.133
25 +++ ChangeLog 31 Jan 2013 15:37:50 -0000 1.134
26 @@ -1,6 +1,15 @@
27 # ChangeLog for sys-apps/lm_sensors
28 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.133 2012/12/28 11:37:34 flameeyes Exp $
30 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.134 2013/01/31 15:37:50 flameeyes Exp $
32 +
33 +*lm_sensors-3.3.3-r2 (31 Jan 2013)
34 +
35 + 31 Jan 2013; Diego E. Pettenò <flameeyes@g.o>
36 + +lm_sensors-3.3.3-r2.ebuild, -lm_sensors-3.3.3-r1.ebuild,
37 + -lm_sensors-3.3.3.ebuild, files/sensord-4-init.d:
38 + Fix sensord init script that was typoed (thanks to Gordon Pritchard for the
39 + report); make it use /run directly, overriding the default pid file location.
40 + Remove unused for the slot.
41
42 28 Dec 2012; Diego E. Pettenò <flameeyes@g.o>
43 lm_sensors-3.3.3-r1.ebuild:
44
45
46
47 1.1 sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild?rev=1.1&content-type=text/plain
51
52 Index: lm_sensors-3.3.3-r2.ebuild
53 ===================================================================
54 # Copyright 1999-2013 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild,v 1.1 2013/01/31 15:37:50 flameeyes Exp $
57
58 EAPI=5
59
60 inherit eutils linux-info toolchain-funcs multilib
61
62 DESCRIPTION="Hardware Monitoring user-space utilities"
63 HOMEPAGE="http://www.lm-sensors.org/"
64 SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${P}.tar.bz2"
65
66 LICENSE="GPL-2 LGPL-2.1"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
69 IUSE="sensord static-libs"
70
71 RDEPEND="dev-lang/perl
72 sensord? (
73 net-analyzer/rrdtool
74 virtual/logger
75 )"
76 DEPEND="${RDEPEND}
77 sys-devel/bison
78 sys-devel/flex"
79
80 CONFIG_CHECK="~HWMON ~I2C_CHARDEV ~I2C"
81 WARNING_HWMON="${PN} requires CONFIG_HWMON to be enabled for use."
82 WARNING_I2C_CHARDEV="sensors-detect requires CONFIG_I2C_CHARDEV to be enabled."
83 WARNING_I2C="${PN} requires CONFIG_I2C to be enabled for most sensors."
84
85 src_prepare() {
86 epatch "${FILESDIR}"/${PN}-3.3.1-sensors-detect-gentoo.patch
87
88 use sensord && { sed -i -e 's:^#\(PROG_EXTRA.*\):\1:' Makefile || die; }
89
90 # Respect LDFLAGS
91 sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile || die
92
93 use static-libs || { sed -i -e '/^BUILD_STATIC_LIB/d' Makefile || die; }
94 }
95
96 src_compile() {
97 einfo
98 einfo "You may safely ignore any errors from compilation"
99 einfo "that contain \"No such file or directory\" references."
100 einfo
101
102 emake CC="$(tc-getCC)"
103 }
104
105 src_install() {
106 emake \
107 DESTDIR="${D}" \
108 PREFIX="${EPREFIX}/usr" \
109 MANDIR="${EPREFIX}/usr/share/man" \
110 ETCDIR="${EPREFIX}/etc" \
111 LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
112 install
113
114 newinitd "${FILESDIR}"/${PN}-3-init.d ${PN}
115 newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol
116
117 if use sensord; then
118 newconfd "${FILESDIR}"/sensord-conf.d sensord
119 newinitd "${FILESDIR}"/sensord-4-init.d sensord
120 fi
121
122 dodoc CHANGES CONTRIBUTORS INSTALL README \
123 doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid}
124
125 docinto chips
126 dodoc doc/chips/*
127
128 docinto developers
129 dodoc doc/developers/applications
130 }
131
132 pkg_postinst() {
133 elog
134 elog "Please run \`/usr/sbin/sensors-detect' in order to setup"
135 elog "/etc/conf.d/${PN}."
136 elog
137 elog "/etc/conf.d/${PN} is vital to the init-script."
138 elog "Please make sure you also add ${PN} to the desired"
139 elog "runlevel. Otherwise your I2C modules won't get loaded"
140 elog "on the next startup."
141 elog
142 elog "You will also need to run the above command if you're upgrading from"
143 elog "<=${PN}-2, as the needed entries in /etc/conf.d/${PN} has"
144 elog "changed."
145 elog
146 elog "Be warned, the probing of hardware in your system performed by"
147 elog "sensors-detect could freeze your system. Also make sure you read"
148 elog "the documentation before running ${PN} on IBM ThinkPads."
149 elog
150 elog "Also make sure you have read:"
151 elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31"
152 elog
153 elog "Please refer to the ${PN} documentation for more information."
154 elog "(http://www.lm-sensors.org/wiki/Documentation)"
155 elog
156 }