Gentoo Archives: gentoo-commits

From: "Mart Raudsepp (leio)" <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/hal: ChangeLog hal-0.5.13-r2.ebuild hal-0.5.12_rc1-r8.ebuild hal-0.5.12_rc1-r7.ebuild
Date: Wed, 30 Sep 2009 11:59:31
Message-Id: E1MsxqD-0006Z0-Ez@stork.gentoo.org
1 leio 09/09/30 11:59:29
2
3 Modified: ChangeLog hal-0.5.13-r2.ebuild
4 hal-0.5.12_rc1-r7.ebuild
5 Added: hal-0.5.12_rc1-r8.ebuild
6 Log:
7 Remove now unnecessary gnome-power-manager blocker, all revisions of it that could file collide with hal are gone now and it included the 2.22 versions in the blocker, which was not necessary and is problematic with HAL stabling but g-p-m staying at 2.22. This fixes bug 287037; Gracious revbump to ensure amd64 stable users get the blocker fixed in VDB, permission from mrpouet to keep the stable keyword
8 (Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.299 sys-apps/hal/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?rev=1.299&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?rev=1.299&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?r1=1.298&r2=1.299
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v
20 retrieving revision 1.298
21 retrieving revision 1.299
22 diff -u -r1.298 -r1.299
23 --- ChangeLog 29 Sep 2009 21:25:15 -0000 1.298
24 +++ ChangeLog 30 Sep 2009 11:59:28 -0000 1.299
25 @@ -1,6 +1,17 @@
26 # ChangeLog for sys-apps/hal
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.298 2009/09/29 21:25:15 mrpouet Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.299 2009/09/30 11:59:28 leio Exp $
30 +
31 +*hal-0.5.12_rc1-r8 (30 Sep 2009)
32 +
33 + 30 Sep 2009; Mart Raudsepp <leio@g.o> hal-0.5.12_rc1-r7.ebuild,
34 + +hal-0.5.12_rc1-r8.ebuild, hal-0.5.13-r2.ebuild:
35 + Remove now unnecessary gnome-power-manager blocker, all revisions of it
36 + that could file collide with hal are gone now and it included the 2.22
37 + versions in the blocker, which was not necessary and is problematic with
38 + HAL stabling but g-p-m staying at 2.22. This fixes bug 287037; Gracious
39 + revbump to ensure amd64 stable users get the blocker fixed in VDB,
40 + permission from mrpouet to keep the stable keyword
41
42 29 Sep 2009; Romain Perier <mrpouet@g.o>
43 hal-0.5.12_rc1-r7.ebuild:
44
45
46
47 1.3 sys-apps/hal/hal-0.5.13-r2.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.13-r2.ebuild?rev=1.3&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.13-r2.ebuild?rev=1.3&content-type=text/plain
51 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.13-r2.ebuild?r1=1.2&r2=1.3
52
53 Index: hal-0.5.13-r2.ebuild
54 ===================================================================
55 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.13-r2.ebuild,v
56 retrieving revision 1.2
57 retrieving revision 1.3
58 diff -u -r1.2 -r1.3
59 --- hal-0.5.13-r2.ebuild 17 Aug 2009 11:49:49 -0000 1.2
60 +++ hal-0.5.13-r2.ebuild 30 Sep 2009 11:59:28 -0000 1.3
61 @@ -1,6 +1,6 @@
62 # Copyright 1999-2009 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.13-r2.ebuild,v 1.2 2009/08/17 11:49:49 aballier Exp $
65 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.13-r2.ebuild,v 1.3 2009/09/30 11:59:28 leio Exp $
66
67 EAPI="2"
68
69 @@ -59,8 +59,7 @@
70 dev-libs/libxml2
71 dev-util/gtk-doc
72 app-text/docbook-sgml-utils
73 - )
74 - !<gnome-extra/gnome-power-manager-2.24.4-r2"
75 + )"
76 PDEPEND=">=app-misc/hal-info-20081219
77 !gnome-extra/hal-device-manager
78 laptop? ( >=sys-power/pm-utils-0.99.3 )"
79
80
81
82 1.3 sys-apps/hal/hal-0.5.12_rc1-r7.ebuild
83
84 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r7.ebuild?rev=1.3&view=markup
85 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r7.ebuild?rev=1.3&content-type=text/plain
86 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r7.ebuild?r1=1.2&r2=1.3
87
88 Index: hal-0.5.12_rc1-r7.ebuild
89 ===================================================================
90 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r7.ebuild,v
91 retrieving revision 1.2
92 retrieving revision 1.3
93 diff -u -r1.2 -r1.3
94 --- hal-0.5.12_rc1-r7.ebuild 29 Sep 2009 21:25:15 -0000 1.2
95 +++ hal-0.5.12_rc1-r7.ebuild 30 Sep 2009 11:59:28 -0000 1.3
96 @@ -1,6 +1,6 @@
97 # Copyright 1999-2009 Gentoo Foundation
98 # Distributed under the terms of the GNU General Public License v2
99 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r7.ebuild,v 1.2 2009/09/29 21:25:15 mrpouet Exp $
100 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r7.ebuild,v 1.3 2009/09/30 11:59:28 leio Exp $
101
102 EAPI="2"
103
104 @@ -59,8 +59,7 @@
105 dev-libs/libxml2
106 dev-util/gtk-doc
107 app-text/docbook-sgml-utils
108 - )
109 - !<gnome-extra/gnome-power-manager-2.24.4-r2"
110 + )"
111 PDEPEND=">=app-misc/hal-info-20081219
112 !gnome-extra/hal-device-manager
113 laptop? ( >=sys-power/pm-utils-0.99.3 )"
114
115
116
117 1.1 sys-apps/hal/hal-0.5.12_rc1-r8.ebuild
118
119 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r8.ebuild?rev=1.1&view=markup
120 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r8.ebuild?rev=1.1&content-type=text/plain
121
122 Index: hal-0.5.12_rc1-r8.ebuild
123 ===================================================================
124 # Copyright 1999-2009 Gentoo Foundation
125 # Distributed under the terms of the GNU General Public License v2
126 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.12_rc1-r8.ebuild,v 1.1 2009/09/30 11:59:28 leio Exp $
127
128 EAPI="2"
129
130 inherit eutils linux-info autotools flag-o-matic multilib
131
132 PATCH_VERSION="8"
133
134 MY_P=${P/_/}
135 S=${WORKDIR}/${MY_P}
136 PATCHNAME="${MY_P}-gentoo-patches-${PATCH_VERSION}"
137 DESCRIPTION="Hardware Abstraction Layer"
138 HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
139 SRC_URI="http://hal.freedesktop.org/releases/${MY_P}.tar.bz2
140 http://dev.gentoo.org/~dang/files/${PATCHNAME}.tar.bz2"
141
142 LICENSE="|| ( GPL-2 AFL-2.0 )"
143 SLOT="0"
144 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
145
146 KERNEL_IUSE="kernel_linux kernel_FreeBSD"
147 IUSE="X acpi apm crypt consolekit debug dell disk-partition doc laptop policykit selinux ${KERNEL_IUSE}"
148
149 RDEPEND=">=dev-libs/dbus-glib-0.61
150 >=dev-libs/glib-2.14
151 >=dev-libs/expat-1.95.8
152 =virtual/libusb-0*
153 >=sys-apps/pciutils-2.2.7-r1
154 >=dev-util/gperf-3.0.3
155 sys-apps/usbutils
156 virtual/eject
157 amd64? ( >=sys-apps/dmidecode-2.7 )
158 dell? ( >=sys-libs/libsmbios-0.13.4 )
159 disk-partition? ( >=sys-apps/parted-1.8.0 )
160 ia64? ( >=sys-apps/dmidecode-2.7 )
161 kernel_linux? (
162 >=sys-fs/udev-117
163 >=sys-apps/util-linux-2.13
164 >=sys-kernel/linux-headers-2.6.19
165 crypt? ( >=sys-fs/cryptsetup-1.0.5 )
166 )
167 kernel_FreeBSD? ( >=dev-libs/libvolume_id-0.77 )
168 x86? ( >=sys-apps/dmidecode-2.7 )
169 selinux? ( sys-libs/libselinux sec-policy/selinux-hal )
170 consolekit? ( sys-auth/consolekit[policykit=] )
171 policykit? (
172 sys-auth/consolekit[policykit]
173 sys-auth/policykit[pam]
174 )"
175 DEPEND="${RDEPEND}
176 dev-util/pkgconfig
177 >=dev-util/intltool-0.35
178 doc? (
179 app-text/xmlto
180 dev-libs/libxml2
181 dev-util/gtk-doc
182 app-text/docbook-sgml-utils
183 )"
184 PDEPEND=">=app-misc/hal-info-20081219
185 !gnome-extra/hal-device-manager
186 laptop? ( >=sys-power/pm-utils-0.99.3 )"
187
188 ## HAL Daemon drops privledges so we need group access to read disks
189 HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
190 HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
191
192 function check_hotplug_net() {
193 local CONFIG_CHECK="~HOTPLUG ~NET"
194 local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)\n"
195 local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)\n"
196 check_extra_config
197 }
198
199 function check_inotify() {
200 local CONFIG_CHECK="~INOTIFY_USER"
201 local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)\n"
202 check_extra_config
203 }
204
205 function check_acpi_proc() {
206 local CONFIG_CHECK="~ACPI_PROCFS ~ACPI_PROC_EVENT"
207 local WARNING_ACPI_PROCFS="CONFIG_ACPI_PROCFS:\tis not set (required for HAL)\n"
208 local WARNING_ACPI_PROC_EVENT="CONFIG_ACPI_PROC_EVENT:\tis not set (required for HAL)\n"
209 check_extra_config
210 }
211
212 pkg_setup() {
213 if use kernel_linux ; then
214 if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then
215 kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer"
216
217 if kernel_is lt 2 6 23 && use acpi ; then
218 check_acpi_proc
219 fi
220 fi
221
222 check_hotplug_net
223 check_inotify
224 fi
225
226 # http://devmanual.gentoo.org/ebuild-writing/functions/
227 # http://bugs.gentoo.org/show_bug.cgi?id=191605
228
229 # Create groups for hotplugging and HAL
230 enewgroup haldaemon
231 enewgroup plugdev
232
233 # HAL drops priviledges by default now ...
234 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
235 if use kernel_linux; then
236 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
237 elif use kernel_FreeBSD; then
238 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
239 fi
240
241 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
242 # If users have a problem with this, let them file a bug
243 if [[ ${ROOT} == / ]] ; then
244 if use kernel_linux; then
245 usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
246 elif use kernel_FreeBSD; then
247 pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
248 fi
249 fi
250 }
251
252 src_prepare() {
253 # Only apply one of the policy patches. Bug #267042
254 if use policykit ; then
255 rm "${WORKDIR}/${PATCHNAME}/patches/0001-plugdev-dbus-policy.patch"
256 else
257 rm "${WORKDIR}/${PATCHNAME}/patches/0002-policykit-dbus-policy.patch"
258 fi
259
260 EPATCH_MULTI_MSG="Applying Gentoo Patchset ..." \
261 EPATCH_SUFFIX="patch" \
262 EPATCH_SOURCE="${WORKDIR}/${PATCHNAME}/patches/" \
263 EPATCH_FORCE="yes" \
264 epatch
265
266 eautoreconf
267 }
268
269 src_configure() {
270 local acpi="$(use_enable acpi)"
271 local backend=
272 local hardware=
273 local consolekit="$(use_enable consolekit console-kit)"
274
275 append-flags -rdynamic
276
277 if use kernel_linux ; then
278 backend="linux"
279 elif use kernel_FreeBSD ; then
280 backend="freebsd"
281 else
282 eerror "Invalid backend"
283 fi
284
285 if use kernel_linux ; then
286 if use acpi ; then
287 # Using IBM ACPI and Toshiba ACPI results in double notification as this
288 # was merged into the Linux Kernel 2.6.22
289 if kernel_is lt 2 6 22 ; then
290 acpi="$acpi --enable-acpi-ibm --enable-acpi-toshiba"
291 else
292 acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
293 fi
294
295 acpi="$acpi --enable-acpi-proc --enable-acpi-acpid"
296 else
297 acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
298 acpi="$acpi --disable-acpi-proc --disable-acpi-acpid"
299 fi
300
301 hardware="--with-cpufreq --with-usb-csr --with-keymaps"
302 use arm && hardware="$hardware --with-omap --enable-pmu"
303 use ppc && hardware="$hardware --enable-pmu"
304 if use x86 || use amd64; then
305 hardware="$hardware --with-macbook --with-macbookpro"
306 fi
307
308 if use dell ; then
309 hardware="$hardware --with-dell-backlight"
310 else
311 hardware="$hardware --without-dell-backlight"
312 fi
313
314 hardware="$hardware --enable-sonypic"
315 else
316 hardware="--without-cpufreq --without-usb-csr --without-keymaps"
317 hardware="$hardware --without-omap"
318 hardware="$hardware --without-dell-backlight"
319 hardware="$hardware --enable-acpi-ibm --enable-acpi-toshiba"
320 hardware="$hardware --disable-sonypic"
321 fi
322
323 # Policykit support depends on consolekit support. Therefore, force on
324 # consolekit, even if it's USE flag is off, if policykit support is on.
325 # This enables packages to USE-depend on hal[policykit?]
326 if use policykit ; then
327 consolekit="--enable-console-kit"
328 fi
329
330 econf --with-backend=${backend} \
331 --with-os-type=gentoo \
332 --with-pid-file=/var/run/hald.pid \
333 --with-hwdata=/usr/share/misc \
334 --with-socket-dir=/var/run/hald \
335 --enable-umount-helper \
336 --enable-man-pages \
337 --disable-acl-management \
338 --enable-pci \
339 $(use_enable apm) \
340 $(use_enable debug verbose-mode) \
341 $(use_enable disk-partition parted) \
342 $(use_enable doc docbook-docs) \
343 $(use_enable doc gtk-doc) \
344 $(use_enable policykit policy-kit) \
345 ${consolekit} \
346 --docdir=/usr/share/doc/${PF} \
347 --localstatedir=/var \
348 ${acpi} ${hardware} \
349 || die "configure failed"
350 }
351
352 src_install() {
353 emake DESTDIR="${D}" install || die
354 dodoc AUTHORS ChangeLog NEWS README || die "docs failed"
355
356 # hal umount for unclean unmounts
357 exeinto /$(get_libdir)/udev/
358 newexe "${FILESDIR}/hal-unmount.dev" hal_unmount || die "udev helper failed"
359
360 # initscript
361 newinitd "${FILESDIR}/0.5.10-hald.rc" hald || die "init script failed"
362
363 # configuration
364 cp "${FILESDIR}/0.5.10-hald.conf" "${WORKDIR}/" || \
365 die "failed to copy hald.conf"
366
367 if use debug; then
368 sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
369 -i "${WORKDIR}/0.5.10-hald.conf" || die "failed to change verbose"
370 fi
371 newconfd "${WORKDIR}/0.5.10-hald.conf" hald || \
372 die "failed to install hald.conf"
373
374 if use X ; then
375 # New Configuration Snippets
376 dodoc "${WORKDIR}/${PATCHNAME}/config-examples/"*.fdi || \
377 die "dodoc X examples failed"
378 fi
379
380 # We now create and keep /media here as both gnome-mount and pmount
381 # use these directories, to avoid collision.
382 keepdir /media
383
384 # We also need to create and keep /etc/fdi/{information,policy,preprobe}
385 # or else hal bombs.
386 keepdir /etc/hal/fdi/{information,policy,preprobe}
387
388 # HAL stores it's fdi cache in /var/cache/hald
389 keepdir /var/cache/hald
390
391 # HAL keeps its unix socket here
392 keepdir /var/run/hald
393 keepdir /var/lib/hal
394 }
395
396 pkg_postinst() {
397 # Despite what people keep changing this location. Either one works.. it doesn't matter
398 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
399
400 elog "The HAL daemon needs to be running for certain applications to"
401 elog "work. Suggested is to add the init script to your start-up"
402 elog "scripts, this should be done like this :"
403 elog "\`rc-update add hald default\`"
404 echo
405 elog "Access to hal is not protected by either policykit or the plugdev group."
406 elog "If you have problems discovering/configuring hardware, try adding"
407 elog "yourself to plugdev."
408 echo
409 elog "IF you have additional applications which consume ACPI events, you"
410 elog "should consider installing acpid to allow applications to share ACPI"
411 elog "events."
412 if use X ; then
413 echo
414 elog "If you wish to use a non US layout, you may do so by executing:"
415 elog "setxkbmap <layout> or by utilizing your Desktop Environment's"
416 elog "Keyboard Layout Settings mechanism."
417 elog "Under GNOME, this is gnome-keyboard-properties, and under KDE"
418 elog "it is kxkb."
419 fi
420 echo
421 elog "In order have suspend/hibernate function with HAL or apps that use HAL"
422 elog "(such as gnome-power-manager), you should build HAL with the laptop"
423 elog "useflag which will install pm-utils."
424 if use X ; then
425 echo
426 elog "X Input Hotplugging (if you build xorg-server with the HAL useflag)"
427 elog "reads user specific configuration from /etc/hal/fdi/policy/."
428 echo
429 elog "You should remove the Input sections from your xorg.conf once you have"
430 elog "migrated the rules to a HAL fdi file."
431 fi
432
433 ebeep 5
434 epause 5
435 }