/[gentoo-x86]/sys-apps/hal/hal-0.5.4.ebuild
Gentoo

Diff of /sys-apps/hal/hal-0.5.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.4.ebuild,v 1.5 2005/11/08 17:25:24 compnerd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.4.ebuild,v 1.6 2005/11/27 06:18:11 compnerd Exp $
4 4
5inherit eutils linux-info 5inherit eutils linux-info
6 6
7DESCRIPTION="Hardware Abstraction Layer" 7DESCRIPTION="Hardware Abstraction Layer"
8HOMEPAGE="http://www.freedesktop.org/Software/hal" 8HOMEPAGE="http://www.freedesktop.org/Software/hal"
29 doc? ( app-doc/doxygen app-text/docbook-sgml-utils )" 29 doc? ( app-doc/doxygen app-text/docbook-sgml-utils )"
30 30
31## HAL Daemon drops privledges so we need group access to read disks 31## HAL Daemon drops privledges so we need group access to read disks
32HALDAEMON_GROUPS="haldaemon,disk,cdrom,cdrw,floppy,usb" 32HALDAEMON_GROUPS="haldaemon,disk,cdrom,cdrw,floppy,usb"
33 33
34function notify_uevent() {
35 eerror
36 eerror "You must enable Kernel Userspace Events in your kernel."
37 eerror "This can be set under 'General Setup'. It is marked as"
38 eerror "CONFIG_KOBJECT_UEVENT in the config file."
39 eerror
40 ebeep 5
41
42 die "KOBJECT_UEVENT is not set"
43}
44
34pkg_setup() { 45pkg_setup() {
35 46
36 linux-info_pkg_setup 47 linux-info_pkg_setup
37 kernel_is ge 2 6 10 \ 48 kernel_is ge 2 6 10 \
38 || die "You need a 2.6.10 or newer kernel to run this package" 49 || die "You need a 2.6.10 or newer kernel to run this package"
50
51 linux_chkconfig_present KOBJECT_UEVENT \
52 || notify_uevent
39 53
40 if use pam_console && ! built_with_use sys-libs/pam pam_console ; then 54 if use pam_console && ! built_with_use sys-libs/pam pam_console ; then
41 eerror "You need to build pam with pam_console support" 55 eerror "You need to build pam with pam_console support"
42 eerror "Please remerge sys-libs/pam with USE=pam_console" 56 eerror "Please remerge sys-libs/pam with USE=pam_console"
43 die "pam without pam_console detected" 57 die "pam without pam_console detected"

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20