freebsd-ports/sysutils/hal/files/hald.in
Koop Mast 48e62d9a37 Presenting GNOME 2.30.1 for FreeBSD. The offical release notes for this
release can be found at http://library.gnome.org/misc/release-notes/2.30/ .

This release brings initial PackageKit support, Upower (replaces power
management part of hal), cuse4bsd integration with HAL and cheese, and a
faster Evolution.

Sadly GNOME 2.30.x will be the last release with FreeBSD 6.X support. This
will also be the last of the 2.x releases. The next release will be the
highly-anticipated GNOME 3.0 which will bring with it a new UI experience.

Currently, there are a few bugs with GNOME 2.30 that may be of note for our
users. Be sure to consult the UPGRADING note or the 2.30 upgrade FAQ at
http://www.freebsd.org/gnome/docs/faq230.html for specific upgrading
instructions, and the up-to-date list of known issues.

This release features commits by avl, ahze, bland, marcus, mezz, and myself.

The FreeBSD GNOME Team would like to thank Anders F Bjorklund for doing the
initual packagekit porting.

And the following contributors & testers for there help with this release:
Eric L. Chen
Vladimir Grebenschikov
Sergio de Almeida Lenzi
DomiX
walder
crsd
Kevin Oberman
Michal Varga
Pavel Plesov
Bapt
kevin

and ITetcu for two exp-run

PR:	ports/143852
	ports/145347
	ports/144980
	ports/145830
	ports/145511
2010-05-10 21:19:08 +00:00

80 lines
1.4 KiB
Bash

#!/bin/sh
#
# $FreeBSD$
# $MCom: ports/sysutils/hal/files/hald.in,v 1.22 2010/04/17 19:05:10 marcus Exp $
#
# PROVIDE: hald
# REQUIRE: DAEMON usbd devd dbus moused webcamd
#
# Add the following line to /etc/rc.conf to enable the HAL daemon:
#
# hald_enable="YES"
#
. /etc/rc.subr
. %%GNOME_SUBR%%
hald_enable=${hald_enable-${gnome_enable}}
hald_flags=${hald_flags-""}
name=hald
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/hald"
pidfile="/var/run/${name}/${name}.pid"
stop_postcmd="hald_postcmd"
start_precmd="hald_precmd"
start_cmd="hald_start"
local_force_depend()
{
_depend="$1"
if [ -f %%LOCALBASE%%/etc/rc.d/${_depend}.sh ]; then
_depend="${_depend}.sh"
fi
if ! %%LOCALBASE%%/etc/rc.d/${_depend} forcestatus 1>/dev/null 2>&1 &&
! %%LOCALBASE%%/etc/rc.d/${_depend} forcestart; then
return 1
fi
return 0
}
hald_precmd()
{
if ! checkyesno dbus_enable
then
local_force_depend dbus || return 1
fi
chmod 0755 /var/cache
mkdir -p $(dirname $pidfile)
}
hald_postcmd()
{
rm -f $pidfile
}
hald_start()
{
if ! checkyesno hald_enable ; then
return 0
fi
echo "Starting ${name}."
( iter=0
while ! ps -axoargs | grep "^/usr/libexec/getty " | grep -qv grep >/dev/null 2>&1; do
if [ ${iter} -eq 60 ]; then
break
fi
sleep 1
iter=$(expr ${iter} + 1)
done
${command} ${hald_flags} ) &
}
load_rc_config ${name}
run_rc_command "$1"