summaryrefslogtreecommitdiff
path: root/sysutils/hal/files
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2008-11-22 15:20:51 +0000
committerjmcneill <jmcneill>2008-11-22 15:20:51 +0000
commitbbef57ea310caf9b61aed2b886b82b0801e87eca (patch)
tree773daba6b1e64074f4a6eb1b9a00f90303fb1117 /sysutils/hal/files
parent6118a40803302774ec3cad4b27387e05d3a95292 (diff)
downloadpkgsrc-bbef57ea310caf9b61aed2b886b82b0801e87eca.tar.gz
Import hal version 0.5.11. Uses the 'dummy' backend on NetBSD for now,
more to come soon. What is the point of HAL? To merge information from various sources such that desktop applications can locate and use hardware devices. The point is that the exact set of information to merge varies by device and bus type. In order to do this, we need to define a format for the information, hence the HAL specification. We may read some stuff from the hardware itself, then add some info provided by the kernel, then add some metadata from some systemwide files, then add some data that has been obtained by the desktop and stored per-user, then look at some blacklist, and finally we have a complete picture of everything known about that particular device. An extra value is that we can do this in an operating system independent way. Stuff like this is important to the major desktop environments.
Diffstat (limited to 'sysutils/hal/files')
-rw-r--r--sysutils/hal/files/hal.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/hal/files/hal.sh b/sysutils/hal/files/hal.sh
new file mode 100644
index 00000000000..f2aa6d89e94
--- /dev/null
+++ b/sysutils/hal/files/hal.sh
@@ -0,0 +1,27 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: hal.sh,v 1.1.1.1 2008/11/22 15:20:51 jmcneill Exp $
+#
+# PROVIDE: hal
+# REQUIRE: DAEMON dbus
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="hal"
+rcvar=$name
+command="@PREFIX@/sbin/hald"
+start_precmd=hal_prestart
+
+hal_prestart() {
+ dir="@VARBASE@/run/hal"
+ if @TEST@ ! -d $dir; then
+ @MKDIR@ $dir
+ @CHMOD@ 0755 $dir
+ @CHOWN@ @HAL_USER@:@HAL_GROUP@ $dir
+ fi
+ @CHMOD@ 0755 "@VARBASE@/cache"
+}
+
+load_rc_config $name
+run_rc_command "$1"