aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2006-06-10 19:03:48 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2006-06-10 19:03:48 +0000
commit70eb7f5569bd10de6b7f8c4031c36e8f14b4f58c (patch)
tree7fe8ad9a7c9f6d3c114aa928687036b8077f388b
parent136a06f03db93d8f720d36a84980d6db8bcc0536 (diff)
downloadports-70eb7f5569bd10de6b7f8c4031c36e8f14b4f58c.tar.gz
ports-70eb7f5569bd10de6b7f8c4031c36e8f14b4f58c.zip
Notes
-rw-r--r--devel/dbus/Makefile2
-rw-r--r--devel/dbus/files/dbus.in10
2 files changed, 9 insertions, 3 deletions
diff --git a/devel/dbus/Makefile b/devel/dbus/Makefile
index ec287c2bdf43..9b816b0351f6 100644
--- a/devel/dbus/Makefile
+++ b/devel/dbus/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dbus
PORTVERSION= 0.61
-PORTREVISION?= 3
+PORTREVISION?= 4
CATEGORIES?= devel gnome
MASTER_SITES= http://dbus.freedesktop.org/releases/
diff --git a/devel/dbus/files/dbus.in b/devel/dbus/files/dbus.in
index 02d9c577595d..61638229f36b 100644
--- a/devel/dbus/files/dbus.in
+++ b/devel/dbus/files/dbus.in
@@ -21,9 +21,15 @@ rcvar=`set_rcvar`
command="%%PREFIX%%/bin/dbus-daemon"
pidfile="/var/run/dbus/${name}.pid"
-stop_postcmd=stop_postcmd
+start_precmd="dbus_prestart"
+stop_postcmd="dbus_poststop"
-stop_postcmd()
+dbus_prestart()
+{
+ mkdir -p $(dirname $pidfile)
+}
+
+dbus_poststop()
{
rm -f $pidfile
}