summaryrefslogtreecommitdiffstats
path: root/sysutils/hal
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-06-16 13:05:53 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-06-16 13:05:53 +0800
commit05e3d97a9f08393cbce77ed6db51412082e78cdf (patch)
tree684072a2bacfc200b6683cb947ace0936638f412 /sysutils/hal
parentf8b30d03070a196e6f79e99f5994d74fcc48dc93 (diff)
downloadmarcuscom-ports-05e3d97a9f08393cbce77ed6db51412082e78cdf.tar
marcuscom-ports-05e3d97a9f08393cbce77ed6db51412082e78cdf.tar.gz
marcuscom-ports-05e3d97a9f08393cbce77ed6db51412082e78cdf.tar.bz2
marcuscom-ports-05e3d97a9f08393cbce77ed6db51412082e78cdf.tar.lz
marcuscom-ports-05e3d97a9f08393cbce77ed6db51412082e78cdf.tar.xz
marcuscom-ports-05e3d97a9f08393cbce77ed6db51412082e78cdf.tar.zst
marcuscom-ports-05e3d97a9f08393cbce77ed6db51412082e78cdf.zip
Force dbus and polkitd to start if hald_enable="YES".
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6452 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/hal')
-rw-r--r--sysutils/hal/Makefile4
-rw-r--r--sysutils/hal/files/hald.in20
2 files changed, 20 insertions, 4 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile
index 56e022b2c..5e6055c35 100644
--- a/sysutils/hal/Makefile
+++ b/sysutils/hal/Makefile
@@ -3,12 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/sysutils/hal/Makefile,v 1.17 2006/05/18 23:17:22 ahze Exp $
+# $MCom: ports/sysutils/hal/Makefile,v 1.18 2006/05/28 16:13:47 marcus Exp $
#
PORTNAME= hal
PORTVERSION= ${HALVERSION}.${SNAPVERSION}
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES?= sysutils
MASTER_SITES= http://www.marcuscom.com/downloads/
diff --git a/sysutils/hal/files/hald.in b/sysutils/hal/files/hald.in
index 923ff8193..0629cf0f2 100644
--- a/sysutils/hal/files/hald.in
+++ b/sysutils/hal/files/hald.in
@@ -21,9 +21,25 @@ rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/hald"
pidfile="/var/run/${name}/${name}.pid"
-stop_postcmd=stop_postcmd
+stop_postcmd="hald_postcmd"
+start_precmd="hald_precmd"
-stop_postcmd()
+hald_precmd()
+{
+ if ! checkyesno dbus_enable
+ then
+ force_depend dbus || return 1
+ fi
+
+ if ! checkyesno polkitd_enable
+ then
+ force_depend polkitd || return 1
+ fi
+
+ mkdir -p $(dirname $pidfile)
+}
+
+hald_postcmd()
{
rm -f $pidfile
}