aboutsummaryrefslogtreecommitdiff
path: root/net/isc-dhcp40-server
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-07-26 20:57:03 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-07-26 20:57:03 +0000
commit6ae6b39bdb80313e2a71bcd6decc7776f8e08d13 (patch)
treeddc86f576c0b056e7adbd166f5eb5d405795c8ef /net/isc-dhcp40-server
parentfd095c476678013ef266338b51b424ee67795ab2 (diff)
downloadports-6ae6b39bdb80313e2a71bcd6decc7776f8e08d13.tar.gz
ports-6ae6b39bdb80313e2a71bcd6decc7776f8e08d13.zip
Notes
Diffstat (limited to 'net/isc-dhcp40-server')
-rw-r--r--net/isc-dhcp40-server/files/isc-dhcpd.sh.sample26
-rw-r--r--net/isc-dhcp40-server/files/isc-dhcrelay.sh.sample8
2 files changed, 17 insertions, 17 deletions
diff --git a/net/isc-dhcp40-server/files/isc-dhcpd.sh.sample b/net/isc-dhcp40-server/files/isc-dhcpd.sh.sample
index de948e1d265b..d4380353c01b 100644
--- a/net/isc-dhcp40-server/files/isc-dhcpd.sh.sample
+++ b/net/isc-dhcp40-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-dhcp40-server/files/isc-dhcrelay.sh.sample b/net/isc-dhcp40-server/files/isc-dhcrelay.sh.sample
index 4302d7360ff1..3c72b5520efe 100644
--- a/net/isc-dhcp40-server/files/isc-dhcrelay.sh.sample
+++ b/net/isc-dhcp40-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 ()
{