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

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

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

Revision 1.1 Revision 1.2
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.5.1.ebuild,v 1.1 2005/11/22 01:26:43 compnerd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.5.1.ebuild,v 1.2 2005/11/27 06:10:37 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"
28 doc? ( app-doc/doxygen app-text/docbook-sgml-utils )" 28 doc? ( app-doc/doxygen app-text/docbook-sgml-utils )"
29 29
30## HAL Daemon drops privledges so we need group access to read disks 30## HAL Daemon drops privledges so we need group access to read disks
31HALDAEMON_GROUPS="haldaemon,disk,cdrom,cdrw,floppy,usb" 31HALDAEMON_GROUPS="haldaemon,disk,cdrom,cdrw,floppy,usb"
32 32
33function notify_uevent() {
34 eerror
35 eerror "You must enable Kernel Userspace Events in your kernel."
36 eerror "This can be set under 'General Setup'. It is marked as"
37 eerror "CONFIG_KOBJECT_UEVENT in the config file."
38 eerror
39 ebeep 5
40
41 die "KOBJECT_UEVENT is not set"
42}
43
33pkg_setup() { 44pkg_setup() {
34 linux-info_pkg_setup 45 linux-info_pkg_setup
35 46
36 kernel_is ge 2 6 13 \ 47 kernel_is ge 2 6 13 \
37 || die "You need a 2.6.13 or newer kernel to run this package" 48 || die "You need a 2.6.13 or newer kernel to run this package"
49
50 linux_chkconfig_present KOBJECT_UEVENT \
51 || notify_uevent
38 52
39 if use acpi ; then 53 if use acpi ; then
40 linux_chkconfig_present PROC_FS \ 54 linux_chkconfig_present PROC_FS \
41 || die "ACPI support requires PROC_FS support in kernel" 55 || die "ACPI support requires PROC_FS support in kernel"
42 fi 56 fi

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20