Fix multi platform a little.
This commit is contained in:
parent
e499e58310
commit
75f991068d
@ -3,5 +3,8 @@ SRCS= avahi-dnsconfd.in avahid.in dbus.in hald.in named.in ntpd.in \
|
|||||||
openvpn.in polkitd.in sshd.in
|
openvpn.in polkitd.in sshd.in
|
||||||
|
|
||||||
MK= ../mk
|
MK= ../mk
|
||||||
|
|
||||||
|
SED_EXTRA+= -e 's:@VARBASE@:/var:g'
|
||||||
|
|
||||||
include ${MK}/scripts.mk
|
include ${MK}/scripts.mk
|
||||||
include Makefile.${OS}
|
include Makefile.${OS}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# All rights reserved. Released under the 2-clause BSD license.
|
# All rights reserved. Released under the 2-clause BSD license.
|
||||||
|
|
||||||
command=@PKG_PREFIX@/bin/dbus-daemon
|
command=@PKG_PREFIX@/bin/dbus-daemon
|
||||||
pidfile=@VARBASE@/run/dbus/dbus.pid
|
pidfile=@VARBASE@/run/dbus/pid
|
||||||
command_args="${dbusd_args---system}"
|
command_args="${dbusd_args---system}"
|
||||||
name="Message Bus Daemon"
|
name="Message Bus Daemon"
|
||||||
|
|
||||||
|
@ -4,12 +4,22 @@
|
|||||||
|
|
||||||
command=/usr/sbin/named
|
command=/usr/sbin/named
|
||||||
command_args=${named_args}
|
command_args=${named_args}
|
||||||
pidfile=@VARBASE@/run/named/pid
|
pidfile=@VARBASE@/run/named.pid
|
||||||
name="Domain Name server"
|
name="Domain Name server"
|
||||||
extra_started_commands="reload"
|
extra_started_commands="reload"
|
||||||
|
|
||||||
namedb=/etc/namedb
|
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()
|
depend()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user