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

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

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

Revision 1.10 Revision 1.15
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.ebuild,v 1.10 2007/04/09 01:08:54 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9.ebuild,v 1.15 2007/04/11 15:19:58 cardoe 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"
15KERNEL_IUSE="kernel_linux kernel_FreeBSD" 15KERNEL_IUSE="kernel_linux kernel_FreeBSD"
16IUSE="acpi crypt debug dell disk-partition doc pam pcmcia selinux ${KERNEL_IUSE}" 16IUSE="acpi crypt debug dell disk-partition doc pam pcmcia selinux ${KERNEL_IUSE}"
17 17
18RDEPEND=">=dev-libs/glib-2.6 18RDEPEND=">=dev-libs/glib-2.6
19 >=dev-libs/dbus-glib-0.61 19 >=dev-libs/dbus-glib-0.61
20 >=sys-fs/udev-104 20 kernel_linux? ( >=sys-fs/udev-104 )
21 kernel_linux? ( >=sys-apps/util-linux-2.12r-r1 ) 21 kernel_linux? ( >=sys-apps/util-linux-2.12r-r1 )
22 kernel_linux? ( >=sys-kernel/linux-headers-2.6.17 ) 22 kernel_linux? ( >=sys-kernel/linux-headers-2.6.17 )
23 kernel_FreeBSD? ( dev-libs/libvolume_id )
23 >=dev-libs/expat-1.95.8 24 >=dev-libs/expat-1.95.8
24 >=sys-apps/pciutils-2.2.3 25 >=sys-apps/pciutils-2.2.3
25 >=dev-libs/libusb-0.1.10a 26 >=dev-libs/libusb-0.1.10a
26 virtual/eject 27 virtual/eject
27 amd64? ( >=sys-apps/dmidecode-2.7 ) 28 amd64? ( >=sys-apps/dmidecode-2.7 )
28 x86? ( >=sys-apps/dmidecode-2.7 ) 29 x86? ( >=sys-apps/dmidecode-2.7 )
29 ia64? ( >=sys-apps/dmidecode-2.7 ) 30 ia64? ( >=sys-apps/dmidecode-2.7 )
30 dell? ( >=sys-libs/libsmbios-0.13.4 ) 31 dell? ( >=sys-libs/libsmbios-0.13.4 )
31 disk-partition? ( >=sys-apps/parted-1.7.1 ) 32 disk-partition? ( >=sys-apps/parted-1.7.1 )
32 crypt? ( >=sys-fs/cryptsetup-luks-1.0.1 ) 33 kernel_linux? ( crypt? ( >=sys-fs/cryptsetup-luks-1.0.1 ) )
33 selinux? ( sys-libs/libselinux 34 selinux? ( sys-libs/libselinux
34 sec-policy/selinux-hal ) 35 sec-policy/selinux-hal )
35 pam? ( sys-auth/consolekit )" 36 pam? ( sys-auth/consolekit )"
36 37
37DEPEND="${RDEPEND} 38DEPEND="${RDEPEND}
64 ebeep 5 65 ebeep 5
65} 66}
66 67
67function notify_inotify() { 68function notify_inotify() {
68 ewarn 69 ewarn
69 ewarn "You must enable the Inotify filesystem in your kernel." 70 ewarn "You must enable the Inotify system in your kernel."
70 ewarn "For this you need to enable 'Inotify file change notification support'" 71 ewarn "For this you need to enable 'Inotify support for userspace'"
71 ewarn "in 'File systems'. It is marked CONFIG_INOTIFY in the config file." 72 ewarn "in 'File systems'. It is marked CONFIG_INOTIFY_USER in the config file."
72 ewarn 73 ewarn
73 ebeep 5 74 ebeep 5
74} 75}
75 76
76pkg_setup() { 77pkg_setup() {
79 if ! ( linux_chkconfig_present HOTPLUG && linux_chkconfig_present NET ) 80 if ! ( linux_chkconfig_present HOTPLUG && linux_chkconfig_present NET )
80 then 81 then
81 notify_uevent 82 notify_uevent
82 fi 83 fi
83 84
84 linux_chkconfig_present INOTIFY || notify_inotify 85 linux_chkconfig_present INOTIFY_USER || notify_inotify
85 86
86 if use acpi ; then 87 if use acpi ; then
87 linux_chkconfig_present PROC_FS || notify_procfs 88 linux_chkconfig_present PROC_FS || notify_procfs
88 fi 89 fi
89 90
158 exeinto /lib/udev/ 159 exeinto /lib/udev/
159 newexe "${FILESDIR}"/hal-unmount.dev hal_unmount 160 newexe "${FILESDIR}"/hal-unmount.dev hal_unmount
160 161
161 # initscript 162 # initscript
162 newinitd "${FILESDIR}"/0.5.9-hald.rc hald 163 newinitd "${FILESDIR}"/0.5.9-hald.rc hald
164 cp "${FILESDIR}"/0.5.9-hald.conf "${WORKDIR}"/
165 if use pam; then
166 sed -e 's:RC_NEED:RC_NEED="consolekit":' -i "${WORKDIR}"/0.5.9-hald.conf
167 else
168 sed -e 's:RC_NEED:RC_NEED="":' -i "${WORKDIR}"/0.5.9-hald.conf
169 fi
170 newconfd "${WORKDIR}"/0.5.9-hald.conf hald
163 171
164 # We now create and keep /media here as both gnome-mount and pmount 172 # We now create and keep /media here as both gnome-mount and pmount
165 # use these directories, to avoid collision. 173 # use these directories, to avoid collision.
166 keepdir /media 174 keepdir /media
167 175

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20