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

Diff of /sys-apps/hal/hal-0.5.9.1-r3.ebuild

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

Revision 1.7 Revision 1.8
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2008 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.9.1-r3.ebuild,v 1.7 2007/12/11 19:59:45 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9.1-r3.ebuild,v 1.8 2008/02/08 20:11:00 wolf31o2 Exp $
4 4
5inherit eutils linux-info autotools flag-o-matic 5inherit eutils linux-info autotools flag-o-matic
6 6
7DESCRIPTION="Hardware Abstraction Layer" 7DESCRIPTION="Hardware Abstraction Layer"
8HOMEPAGE="http://www.freedesktop.org/Software/hal" 8HOMEPAGE="http://www.freedesktop.org/Software/hal"
49 49
50## HAL Daemon drops privledges so we need group access to read disks 50## HAL Daemon drops privledges so we need group access to read disks
51HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb" 51HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
52HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator" 52HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
53 53
54function notify_uevent() { 54function check_hotplug_net() {
55 ewarn 55 local CONFIG_CHECK="~HOTPLUG ~NET"
56 ewarn "You must enable Kernel Userspace Events in your kernel." 56 local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)"
57 ewarn "For this you need to enable 'Hotplug' under 'General Setup' and" 57 local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)"
58 ewarn "basic networking. They are marked CONFIG_HOTPLUG and CONFIG_NET" 58 check_extra_config
59 ewarn "in the config file." 59 echo
60 ewarn
61 ebeep 5
62} 60}
63 61
64function notify_procfs() {
65 ewarn
66 ewarn "You must enable the proc filesystem in your kernel."
67 ewarn "For this you need to enable '/proc file system support' under"
68 ewarn "'Pseudo filesystems' in 'File systems'. It is marked"
69 ewarn "CONFIG_PROC_FS in the config file."
70 ewarn
71 ebeep 5
72}
73
74function notify_inotify() { 62function check_inotify() {
75 ewarn 63 local CONFIG_CHECK="~INOTIFY_USER"
76 ewarn "You must enable the Inotify system in your kernel." 64 local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)"
77 ewarn "For this you need to enable 'Inotify support for userspace'" 65 check_extra_config
78 ewarn "in 'File systems'. It is marked CONFIG_INOTIFY_USER in the config file." 66 echo
79 ewarn 67}
80 ebeep 5 68
69function check_procfs() {
70 local CONFIG_CHECK="~PROC_FS"
71 local WARNING_PROC_FS="CONFIG_PROC_FS:\tis not set (required for HAL)"
72 check_extra_config
73 echo
81} 74}
82 75
83pkg_setup() { 76pkg_setup() {
84 if use kernel_linux; then 77 if ! built_with_use --missing true sys-apps/pciutils hal ; then
85 kernel_is ge 2 6 17 || ewarn "HAL requires a kernel version 2.6.17 or newer" 78 if built_with_use --missing false sys-apps/pciutils zlib ; then
86 79 die "You MUST build sys-apps/pciutils without the zlib USE flag"
87 if ! ( linux_chkconfig_present HOTPLUG && linux_chkconfig_present NET )
88 then
89 notify_uevent
90 fi 80 fi
81 fi
91 82
92 linux_chkconfig_present INOTIFY_USER || notify_inotify 83 if use kernel_linux ; then
93 84 if [ -e ${ROOT}/usr/src/linux/.config ] ; then
94 if use acpi ; then 85 kernel_is ge 2 6 17 || \
95 linux_chkconfig_present PROC_FS || notify_procfs 86 ewarn "HAL requires a kernel version 2.6.17 or newer"
96 fi 87 fi
88
89 check_hotplug_net
90 check_inotify
91 use acpi && check_procfs
97 fi 92 fi
98 93
99 if [[ -d ${ROOT}/etc/hal/device.d ]]; then 94 if [[ -d ${ROOT}/etc/hal/device.d ]]; then
100 eerror "HAL 0.5.x will not run with the HAL 0.4.x series of" 95 eerror "HAL 0.5.x will not run with the HAL 0.4.x series of"
101 eerror "/etc/hal/device.d/ so please remove this directory" 96 eerror "/etc/hal/device.d/ so please remove this directory"

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20