aboutsummaryrefslogtreecommitdiffstats
path: root/net/isc-dhcp30-server
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-27 04:57:03 +0800
committerpav <pav@FreeBSD.org>2004-07-27 04:57:03 +0800
commit6cdb49f2359cdcf63024f63dcfa921c3eb1d9c58 (patch)
tree3e4b7c82a914fa7b17563b1a4f2813d6e1cb80f1 /net/isc-dhcp30-server
parentcc73a8972a5d878fb129eff2ce69ed4cb75c5699 (diff)
downloadfreebsd-ports-gnome-6cdb49f2359cdcf63024f63dcfa921c3eb1d9c58.tar.gz
freebsd-ports-gnome-6cdb49f2359cdcf63024f63dcfa921c3eb1d9c58.tar.zst
freebsd-ports-gnome-6cdb49f2359cdcf63024f63dcfa921c3eb1d9c58.zip
- Update RC scripts to play nicely with latest changes in -CURRENT
PR: ports/69590 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net> (maintainer)
Diffstat (limited to 'net/isc-dhcp30-server')
-rw-r--r--net/isc-dhcp30-server/files/isc-dhcpd.sh.sample26
-rw-r--r--net/isc-dhcp30-server/files/isc-dhcrelay.sh.sample8
2 files changed, 17 insertions, 17 deletions
diff --git a/net/isc-dhcp30-server/files/isc-dhcpd.sh.sample b/net/isc-dhcp30-server/files/isc-dhcpd.sh.sample
index de948e1d265b..d4380353c01b 100644
--- a/net/isc-dhcp30-server/files/isc-dhcpd.sh.sample
+++ b/net/isc-dhcp30-server/files/isc-dhcpd.sh.sample
@@ -18,23 +18,23 @@ paranoia=%%PARANOIA%% # compiled in paranoia?
jail=%%JAIL%% # compiled in jail?
# override these variables in /etc/rc.conf
-dhcpd_enable=NO
-dhcpd_flags= # -q -early_chroot # command option(s)
-dhcpd_conf=%%PREFIX%%/etc/${name}.conf # configuration file
-dhcpd_ifaces= # ethernet interface(s)
-dhcpd_withumask=022 # file creation mask
+dhcpd_enable=${dhcpd_enable:-"NO"}
+dhcpd_flags=${dhcpd_flags:-} # -q -early_chroot # command option(s)
+dhcpd_conf=${dhcpd_conf:-%%PREFIX%%/etc/${name}.conf} # configuration file
+dhcpd_ifaces=${dhcpd_ifaces:-} # ethernet interface(s)
+dhcpd_withumask=${dhcpd_withumask:-022} # file creation mask
-dhcpd_chuser_enable=YES # runs w/o privileges?
-dhcpd_withuser=${name} # user name to run as
-dhcpd_withgroup=${name} # group name to run as
+dhcpd_chuser_enable=${dhcpd_chuser_enable:-"YES"} # runs w/o privileges?
+dhcpd_withuser=${dhcpd_withuser:-${name}} # user name to run as
+dhcpd_withgroup=${dhcpd_withgroup:-${name}} # group name to run as
-dhcpd_chroot_enable=NO # runs chrooted?
-dhcpd_rootdir=/var/db/${name} # directory to run in
+dhcpd_chroot_enable=${dhcpd_chroot_enable:-"NO"} # runs chrooted?
+dhcpd_rootdir=${dhcpd_rootdir:-/var/db/${name}} # directory to run in
# untested
-dhcpd_jail_enable=NO # runs imprisoned?
-dhcpd_hostname= # jail hostname
-dhcpd_ipaddress= # jail ip address
+dhcpd_jail_enable=${dhcpd_jail_enable:-"NO"} # runs imprisoned?
+dhcpd_hostname=${dhcpd_hostname:-} # jail hostname
+dhcpd_ipaddress=${dhcpd_ipaddress:-} # jail ip address
safe_run () # rc command [args...]
{
diff --git a/net/isc-dhcp30-server/files/isc-dhcrelay.sh.sample b/net/isc-dhcp30-server/files/isc-dhcrelay.sh.sample
index 4302d7360ff1..3c72b5520efe 100644
--- a/net/isc-dhcp30-server/files/isc-dhcrelay.sh.sample
+++ b/net/isc-dhcp30-server/files/isc-dhcrelay.sh.sample
@@ -12,10 +12,10 @@
#
# override these variables in /etc/rc.conf
-dhcrelay_enable=NO
-dhcrelay_flags= # command option(s)
-dhcrelay_servers= # dhcrelay server(s)
-dhcrelay_ifaces= # ethernet interface(s)
+dhcrelay_enable=${dhcrelay_enable:-"NO"}
+dhcrelay_flags=${dhcrelay_flags:-} # command option(s)
+dhcrelay_servers=${dhcrelay_servers:-} # dhcrelay server(s)
+dhcrelay_ifaces=${dhcrelay_ifaces:-} # ethernet interface(s)
dhcrelay_precmd ()
{