/[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.2 Revision 1.9
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.2 2007/11/12 16:13:28 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9.1-r3.ebuild,v 1.9 2008/02/20 02:49:13 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"
9SRC_URI="http://people.freedesktop.org/~david/dist/${P}.tar.gz 9SRC_URI="http://people.freedesktop.org/~david/dist/${P}.tar.gz
10 http://dev.gentoo.org/~cardoe/files/hal/${P}-r2.tar.bz2" 10 http://dev.gentoo.org/~cardoe/files/hal/${P}-r2.tar.bz2"
11 11
12LICENSE="|| ( GPL-2 AFL-2.0 )" 12LICENSE="|| ( GPL-2 AFL-2.0 )"
13SLOT="0" 13SLOT="0"
14KEYWORDS="alpha ~amd64 ~arm ~hppa ia64 -mips ~ppc -ppc64 ~sh sparc x86 ~x86-fbsd" 14KEYWORDS="alpha amd64 arm hppa ia64 -mips ppc -ppc64 sh sparc x86 ~x86-fbsd"
15 15
16KERNEL_IUSE="kernel_linux kernel_FreeBSD" 16KERNEL_IUSE="kernel_linux kernel_FreeBSD"
17IUSE="acpi crypt debug dell disk-partition doc pcmcia selinux ${KERNEL_IUSE}" 17IUSE="acpi crypt debug dell disk-partition doc pcmcia selinux ${KERNEL_IUSE}"
18 18
19RDEPEND=">=dev-libs/glib-2.6 19RDEPEND=">=dev-libs/glib-2.6
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"
58 ewarn "basic networking. They are marked CONFIG_HOTPLUG and CONFIG_NET" 58 local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)
59 ewarn "in the config file." 59"
60 ewarn 60 check_extra_config
61 ebeep 5
62} 61}
63 62
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() { 63function check_inotify() {
75 ewarn 64 local CONFIG_CHECK="~INOTIFY_USER"
76 ewarn "You must enable the Inotify system in your kernel." 65 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'" 66"
78 ewarn "in 'File systems'. It is marked CONFIG_INOTIFY_USER in the config file." 67 check_extra_config
79 ewarn 68}
80 ebeep 5 69
70function check_procfs() {
71 local CONFIG_CHECK="~PROC_FS"
72 local WARNING_PROC_FS="CONFIG_PROC_FS:\tis not set (required for HAL)
73"
74 check_extra_config
81} 75}
82 76
83pkg_setup() { 77pkg_setup() {
84 if use kernel_linux; then 78 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" 79 if built_with_use --missing false sys-apps/pciutils zlib ; then
86 80 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 81 fi
82 fi
91 83
92 linux_chkconfig_present INOTIFY_USER || notify_inotify 84 if use kernel_linux ; then
93 85 if [ -e ${ROOT}/usr/src/linux/.config ] ; then
94 if use acpi ; then 86 kernel_is ge 2 6 17 || \
95 linux_chkconfig_present PROC_FS || notify_procfs 87 ewarn "HAL requires a kernel version 2.6.17 or newer"
96 fi 88 fi
89
90 check_hotplug_net
91 check_inotify
92 use acpi && check_procfs
97 fi 93 fi
98 94
99 if [[ -d ${ROOT}/etc/hal/device.d ]]; then 95 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" 96 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" 97 eerror "/etc/hal/device.d/ so please remove this directory"
105 fi 101 fi
106} 102}
107 103
108src_unpack() { 104src_unpack() {
109 unpack ${A} 105 unpack ${A}
110 cd ${S} 106 cd "${S}"
111 107
112 EPATCH_SUFFIX="patch" \ 108 EPATCH_SUFFIX="patch" \
113 EPATCH_FORCE="yes" \ 109 EPATCH_FORCE="yes" \
114 epatch "${WORKDIR}"/hal-patches 110 epatch "${WORKDIR}"/hal-patches
115 111

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

  ViewVC Help
Powered by ViewVC 1.1.20