diff options
author | Roy Marples <roy@marples.name> | 2008-04-28 12:48:20 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-28 12:48:20 +0000 |
commit | 75f991068d9bc5830a973817c0eb5ef4b978ff14 (patch) | |
tree | b0997e06133e67caea082110b4ec79bd0575e5a2 | |
parent | e499e58310e1bab0543f705e38435608909de3ca (diff) |
Fix multi platform a little.
-rw-r--r-- | init.d.misc/Makefile | 3 | ||||
-rw-r--r-- | init.d.misc/dbus.in | 2 | ||||
-rw-r--r-- | init.d.misc/named.in | 14 |
3 files changed, 16 insertions, 3 deletions
diff --git a/init.d.misc/Makefile b/init.d.misc/Makefile index 608407f9..522fd9d8 100644 --- a/init.d.misc/Makefile +++ b/init.d.misc/Makefile @@ -3,5 +3,8 @@ SRCS= avahi-dnsconfd.in avahid.in dbus.in hald.in named.in ntpd.in \ openvpn.in polkitd.in sshd.in MK= ../mk + +SED_EXTRA+= -e 's:@VARBASE@:/var:g' + include ${MK}/scripts.mk include Makefile.${OS} diff --git a/init.d.misc/dbus.in b/init.d.misc/dbus.in index 305b784c..445ee408 100644 --- a/init.d.misc/dbus.in +++ b/init.d.misc/dbus.in @@ -3,7 +3,7 @@ # All rights reserved. Released under the 2-clause BSD license. command=@PKG_PREFIX@/bin/dbus-daemon -pidfile=@VARBASE@/run/dbus/dbus.pid +pidfile=@VARBASE@/run/dbus/pid command_args="${dbusd_args---system}" name="Message Bus Daemon" diff --git a/init.d.misc/named.in b/init.d.misc/named.in index d5218ea7..3674442d 100644 --- a/init.d.misc/named.in +++ b/init.d.misc/named.in @@ -4,12 +4,22 @@ command=/usr/sbin/named command_args=${named_args} -pidfile=@VARBASE@/run/named/pid +pidfile=@VARBASE@/run/named.pid name="Domain Name server" extra_started_commands="reload" namedb=/etc/namedb -named_uid=${named_uid:-bind} +uid=named +case "${RC_UNAME}" in + FreeBSD) + uid=bind + pidfile=@VARBASE@/run/named/pid + ;; + Linux) + uid=bind + ;; +esac +named_uid=${named_uid:-${uid}} depend() { |