/[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.11 Revision 1.12
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-r3.ebuild,v 1.11 2008/05/20 04:30:38 compnerd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9.1-r3.ebuild,v 1.12 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"
196pkg_postinst() { 196pkg_postinst() {
197 # Despite what people keep changing this location. Either one works.. it doesn't matter 197 # Despite what people keep changing this location. Either one works.. it doesn't matter
198 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/ 198 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
199 199
200 # Create groups for hotplugging and HAL 200 # Create groups for hotplugging and HAL
201 enewgroup haldaemon || die "Problem adding haldaemon group" 201 enewgroup haldaemon
202 enewgroup plugdev || die "Problem adding plugdev group" 202 enewgroup plugdev
203 203
204 # HAL drops priviledges by default now ... 204 # HAL drops priviledges by default now ...
205 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) 205 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
206 if use kernel_linux; then 206 if use kernel_linux; then
207 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} \ 207 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
208 || die "Problem adding haldaemon user"
209 elif use kernel_FreeBSD; then 208 elif use kernel_FreeBSD; then
210 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} \ 209 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
211 || die "Problem addding haldaemon user"
212 fi 210 fi
213 211
214 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} 212 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
215 # 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
216 if [[ ${ROOT} == / ]] ; then 214 if [[ ${ROOT} == / ]] ; then

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20