/[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.1.1.1 Revision 1.9
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.1.1.1 2005/11/30 09:56:17 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.4.ebuild,v 1.9 2005/12/21 09:41:19 cardoe dead $
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"
17 >=sys-apps/dbus-0.33 17 >=sys-apps/dbus-0.33
18 dev-libs/expat 18 dev-libs/expat
19 >=sys-fs/udev-063 19 >=sys-fs/udev-063
20 sys-apps/hotplug 20 sys-apps/hotplug
21 >=sys-apps/util-linux-2.12i 21 >=sys-apps/util-linux-2.12i
22 ||( >=sys-kernel/linux-headers-2.6 >=sys-kernel/mips-headers-2.6 ) 22 || ( >=sys-kernel/linux-headers-2.6 >=sys-kernel/mips-headers-2.6 )
23 dev-libs/libusb 23 dev-libs/libusb
24 pam_console? ( sys-libs/pam )" 24 pam_console? ( sys-libs/pam )"
25 25
26DEPEND="${RDEPEND} 26DEPEND="${RDEPEND}
27 dev-util/pkgconfig 27 dev-util/pkgconfig
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"
105 119
106 einfo "The HAL daemon needs to be running for certain applications to" 120 einfo "The HAL daemon needs to be running for certain applications to"
107 einfo "work. Suggested is to add the init script to your start-up" 121 einfo "work. Suggested is to add the init script to your start-up"
108 einfo "scripts, this should be done like this :" 122 einfo "scripts, this should be done like this :"
109 einfo "\`rc-update add hald default\`" 123 einfo "\`rc-update add hald default\`"
124
125 ewarn
126 ewarn "If you are upgrading from a previous version of hal you should run"
127 ewarn "revdep-rebuild to find any programs which were built against the old"
128 ewarn "version and then rebuild them. Not doing so may result in a broken"
129 ewarn "system."
130 ewarn
110} 131}

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

  ViewVC Help
Powered by ViewVC 1.1.20