diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-02 13:52:50 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-02 13:52:50 +0800 |
commit | 3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b (patch) | |
tree | a06709dda12f5c6d2042c4b60261bb3ea6619426 /sysutils/hal/files | |
parent | cf20e9a518bab9e8a3c23234c66c0e26a9ef4de0 (diff) | |
download | marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar.gz marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar.zst marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.zip |
Add a May 02, 2006 snapshot of the FreeBSD HAL port for those interested
in helping with testing. While an init script is provided, it is recommended
to run hald with:
/usr/local/sbin/hald --daemon=no --verbose=yes
The underlying work on the HAL port was done by jylefort and myself.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6193 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/hal/files')
-rw-r--r-- | sysutils/hal/files/hald.in | 42 | ||||
-rw-r--r-- | sysutils/hal/files/patch-doc_Makefile.in | 11 |
2 files changed, 53 insertions, 0 deletions
diff --git a/sysutils/hal/files/hald.in b/sysutils/hal/files/hald.in new file mode 100644 index 000000000..fb12c8be2 --- /dev/null +++ b/sysutils/hal/files/hald.in @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: hald +# REQUIRE: DAEMON dbus polkitd +# +# Add the following line to /etc/rc.conf to enable the HAL daemon: +# +# hald_enable="YES" +# + +hald_enable=${hald_enable-"NO"} +hald_flags=${hald_flags-""} + +. %%RC_SUBR%% + +name=hald +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/hald" +pidfile="/var/run/${name}/${name}.pid" + +start_precmd=start_precmd +stop_postcmd=stop_postcmd + +start_precmd() +{ + mkdir -p /tmp/hald-local + mkdir -p /tmp/hald-runner +} + +stop_postcmd() +{ + rm -f $pidfile + rm -rf /tmp/hald-local + rm -rf /tmp/hald-runner +} + + +load_rc_config ${name} +run_rc_command "$1" diff --git a/sysutils/hal/files/patch-doc_Makefile.in b/sysutils/hal/files/patch-doc_Makefile.in new file mode 100644 index 000000000..d05f0136c --- /dev/null +++ b/sysutils/hal/files/patch-doc_Makefile.in @@ -0,0 +1,11 @@ +--- doc/Makefile.in.orig Tue May 2 01:04:31 2006 ++++ doc/Makefile.in Tue May 2 01:04:42 2006 +@@ -269,7 +269,7 @@ sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + EXTRA_DIST = TODO +-SUBDIRS = api spec conf ++SUBDIRS = spec conf + all: all-recursive + + .SUFFIXES: |