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

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

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

Revision 1.14 Revision 1.15
1# Copyright 1999-2008 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-r1.ebuild,v 1.14 2008/05/20 04:30:38 compnerd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9.1-r1.ebuild,v 1.15 2008/12/19 17:37:01 pva 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"
201pkg_postinst() { 201pkg_postinst() {
202 # Despite what people keep changing this location. Either one works.. it doesn't matter 202 # Despite what people keep changing this location. Either one works.. it doesn't matter
203 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/ 203 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
204 204
205 # Create groups for hotplugging and HAL 205 # Create groups for hotplugging and HAL
206 enewgroup haldaemon || die "Problem adding haldaemon group" 206 enewgroup haldaemon
207 enewgroup plugdev || die "Problem adding plugdev group" 207 enewgroup plugdev
208 208
209 # HAL drops priviledges by default now ... 209 # HAL drops priviledges by default now ...
210 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) 210 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
211 if use kernel_linux; then 211 if use kernel_linux; then
212 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} \ 212 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
213 || die "Problem adding haldaemon user"
214 elif use kernel_FreeBSD; then 213 elif use kernel_FreeBSD; then
215 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} \ 214 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
216 || die "Problem addding haldaemon user"
217 fi 215 fi
218 216
219 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} 217 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
220 # If users have a problem with this, let them file a bug 218 # If users have a problem with this, let them file a bug
221 if [[ ${ROOT} == / ]] ; then 219 if [[ ${ROOT} == / ]] ; then

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

  ViewVC Help
Powered by ViewVC 1.1.20