/[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.20 Revision 1.21
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.20 2007/04/14 13:48:52 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9.ebuild,v 1.21 2007/04/16 17:34:06 uberlord 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 10
11LICENSE="|| ( GPL-2 AFL-2.0 )" 11LICENSE="|| ( GPL-2 AFL-2.0 )"
12SLOT="0" 12SLOT="0"
13KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -mips ~ppc ~ppc64 ~sh ~sparc ~x86" 13KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
14 14
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
122 # TODO :: policykit should have a pam useflag 122 # TODO :: policykit should have a pam useflag
123 append-flags -rdynamic 123 append-flags -rdynamic
124 124
125 if use kernel_linux ; then 125 if use kernel_linux ; then
126 backend="linux" 126 backend="linux"
127 use acpi && acpi="--enable-acpi-toshiba --enable-acpi-ibm"
127 elif use kernel_FreeBSD ; then 128 elif use kernel_FreeBSD ; then
128 backend="freebsd" 129 backend="freebsd"
129 else 130 else
130 eerror "Invalid backend" 131 eerror "Invalid backend"
131 fi 132 fi
132 133
133 if use acpi ; then 134 if ! use acpi ; then
134 acpi="--enable-acpi-toshiba --enable-acpi-ibm"
135 else
136 acpi="--disable-acpi-proc --disable-acpi-acpid" 135 acpi="--disable-acpi-proc --disable-acpi-acpid"
137 fi 136 fi
138 137
139 econf --disable-policy-kit \ 138 econf --disable-policy-kit \
140 --with-doc-dir=/usr/share/doc/${PF} \ 139 --with-doc-dir=/usr/share/doc/${PF} \
141 --with-os-type=gentoo \ 140 --with-os-type=gentoo \
142 --with-pid-file=/var/run/hald.pid \ 141 --with-pid-file=/var/run/hald.pid \
142 --with-socket-dir=/var/run/hald \
143 --with-hwdata=/usr/share/misc \ 143 --with-hwdata=/usr/share/misc \
144 --enable-hotplug-map \ 144 --enable-hotplug-map \
145 --enable-man-pages \ 145 --enable-man-pages \
146 --with-backend=${backend} \ 146 --with-backend=${backend} \
147 $(use_enable debug verbose-mode) \ 147 $(use_enable debug verbose-mode) \
209 || die "Problem addding haldaemon user" 209 || die "Problem addding haldaemon user"
210 fi 210 fi
211 211
212 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} 212 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
213 # If users have a problem with this, let them file a bug 213 # If users have a problem with this, let them file a bug
214 if [[ ${ROOT} == / ]] ; then
214 if use kernel_linux; then 215 if use kernel_linux; then
215 usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon 216 usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
216 elif use kernel_FreeBSD; then 217 elif use kernel_FreeBSD; then
217 usermod -G ${HALDAEMON_GROUPS_FREEBSD} haldaemon 218 pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
219 fi
218 fi 220 fi
219 221
220 elog "The HAL daemon needs to be running for certain applications to" 222 elog "The HAL daemon needs to be running for certain applications to"
221 elog "work. Suggested is to add the init script to your start-up" 223 elog "work. Suggested is to add the init script to your start-up"
222 elog "scripts, this should be done like this :" 224 elog "scripts, this should be done like this :"

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20