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

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

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

Revision 1.22 Revision 1.23
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-r1.ebuild,v 1.22 2008/05/20 04:30:38 compnerd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9-r1.ebuild,v 1.23 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"
217pkg_postinst() { 217pkg_postinst() {
218 # Despite what people keep changing this location. Either one works.. it doesn't matter 218 # Despite what people keep changing this location. Either one works.. it doesn't matter
219 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/ 219 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
220 220
221 # Create groups for hotplugging and HAL 221 # Create groups for hotplugging and HAL
222 enewgroup haldaemon || die "Problem adding haldaemon group" 222 enewgroup haldaemon
223 enewgroup plugdev || die "Problem adding plugdev group" 223 enewgroup plugdev
224 224
225 # HAL drops priviledges by default now ... 225 # HAL drops priviledges by default now ...
226 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) 226 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
227 if use kernel_linux; then 227 if use kernel_linux; then
228 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} \ 228 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
229 || die "Problem adding haldaemon user"
230 elif use kernel_FreeBSD; then 229 elif use kernel_FreeBSD; then
231 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} \ 230 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
232 || die "Problem addding haldaemon user"
233 fi 231 fi
234 232
235 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} 233 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
236 # If users have a problem with this, let them file a bug 234 # If users have a problem with this, let them file a bug
237 if [[ ${ROOT} == / ]] ; then 235 if [[ ${ROOT} == / ]] ; then

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20