Gentoo Archives: gentoo-commits

From: "Thilo Bangert (bangert)" <bangert@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/lm_sensors: ChangeLog lm_sensors-3.1.1.ebuild
Date: Tue, 27 Oct 2009 08:26:28
Message-Id: E1N2hNp-0001l6-AC@stork.gentoo.org
1 bangert 09/10/27 08:26:25
2
3 Modified: ChangeLog
4 Added: lm_sensors-3.1.1.ebuild
5 Log:
6 version bump (bug #244598)
7 (Portage version: 2.2_rc46/cvs/Linux i686)
8
9 Revision Changes Path
10 1.95 sys-apps/lm_sensors/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/lm_sensors/ChangeLog?rev=1.95&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/lm_sensors/ChangeLog?rev=1.95&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/lm_sensors/ChangeLog?r1=1.94&r2=1.95
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v
19 retrieving revision 1.94
20 retrieving revision 1.95
21 diff -u -r1.94 -r1.95
22 --- ChangeLog 17 Oct 2009 01:18:04 -0000 1.94
23 +++ ChangeLog 27 Oct 2009 08:26:24 -0000 1.95
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-apps/lm_sensors
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.94 2009/10/17 01:18:04 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.95 2009/10/27 08:26:24 bangert Exp $
29 +
30 +*lm_sensors-3.1.1 (27 Oct 2009)
31 +
32 + 27 Oct 2009; Thilo Bangert <bangert@g.o> +lm_sensors-3.1.1.ebuild,
33 + +files/lm_sensors-3.1.1-sensors-detect-gentoo.patch:
34 + version bump (bug #244598)
35
36 17 Oct 2009; Robin H. Johnson <robbat2@g.o>
37 lm_sensors-2.10.8.ebuild, lm_sensors-3.0.2.ebuild,
38
39
40
41 1.1 sys-apps/lm_sensors/lm_sensors-3.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lm_sensors-3.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.1.1.ebuild,v 1.1 2009/10/27 08:26:24 bangert Exp $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic linux-info toolchain-funcs multilib
55
56 DESCRIPTION="Hardware Monitoring user-space utilities"
57 HOMEPAGE="http://www.lm-sensors.org/"
58 SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
63 IUSE="sensord"
64
65 DEPEND="sys-apps/sed"
66 RDEPEND="dev-lang/perl
67 virtual/logger"
68
69 CONFIG_CHECK="~HWMON ~I2C_CHARDEV ~I2C"
70 WARNING_HWMON="${PN} requires CONFIG_HWMON to be enabled for use."
71 WARNING_I2C_CHARDEV="sensors-detect requires CONFIG_I2C_CHARDEV to be enabled."
72 WARNING_I2C="${PN} requires CONFIG_I2C to be enabled for most sensors."
73
74 src_prepare() {
75 epatch "${FILESDIR}"/${P}-sensors-detect-gentoo.patch
76
77 if use sensord; then
78 sed -i -e 's:^# \(PROG_EXTRA\):\1:' "${S}"/Makefile || die
79 fi
80
81 # Respect LDFLAGS
82 sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile || die
83 sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' \
84 lib/Module.mk || die
85 }
86
87 src_compile() {
88 einfo
89 einfo "You may safely ignore any errors from compilation"
90 einfo "that contain \"No such file or directory\" references."
91 einfo
92
93 filter-flags -fstack-protector
94
95 emake CC=$(tc-getCC) \
96 || die "emake failed"
97 }
98
99 src_install() {
100 emake DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man LIBDIR=/usr/$(get_libdir) \
101 install || die "emake install failed"
102
103 newinitd "${FILESDIR}"/lm_sensors-3-init.d lm_sensors || die
104 newinitd "${FILESDIR}"/fancontrol-init.d fancontrol || die
105
106 if use sensord; then
107 newconfd "${FILESDIR}"/sensord-conf.d sensord || die
108 newinitd "${FILESDIR}"/sensord-init.d sensord || die
109 fi
110
111 dodoc CHANGES CONTRIBUTORS INSTALL README*
112
113 dodoc doc/donations doc/fancontrol.txt doc/fan-divisors \
114 doc/progs doc/temperature-sensors doc/vid
115
116 docinto chips
117 dodoc doc/chips/*
118
119 docinto developers
120 dodoc doc/developers/applications
121 }
122
123 pkg_postinst() {
124 elog
125 elog "Please run \`/usr/sbin/sensors-detect' in order to setup"
126 elog "/etc/conf.d/lm_sensors."
127 elog
128 elog "/etc/conf.d/lm_sensors is vital to the init-script."
129 elog "Please make sure you also add lm_sensors to the desired"
130 elog "runlevel. Otherwise your I2C modules won't get loaded"
131 elog "on the next startup."
132 elog
133 elog "You will also need to run the above command if you're upgrading from"
134 elog "<=${PN}-2, as the needed entries in /etc/conf.d/lm_sensors has"
135 elog "changed."
136 elog
137 elog "Be warned, the probing of hardware in your system performed by"
138 elog "sensors-detect could freeze your system. Also make sure you read"
139 elog "the documentation before running lm_sensors on IBM ThinkPads."
140 elog
141 elog "Also make sure you have read:"
142 elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31"
143 elog
144 elog "Please refer to the lm_sensors documentation for more information."
145 elog "(http://www.lm-sensors.org/wiki/Documentation)"
146 elog
147 }