aboutsummaryrefslogtreecommitdiff
path: root/sbin/dhclient/Makefile
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2017-11-12 08:42:43 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2017-11-12 08:42:43 +0000
commitcb003dd91847ffa2e788edb9b3790ae2e1e11d34 (patch)
treef05940342f356e56486c1cf94677af9b336cdb82 /sbin/dhclient/Makefile
parent7b4fce76cc2397e86ad90a4a4fbf7292b566cf1b (diff)
downloadsrc-cb003dd91847ffa2e788edb9b3790ae2e1e11d34.tar.gz
src-cb003dd91847ffa2e788edb9b3790ae2e1e11d34.zip
Use syslog service in dhclient(8).
dhclient(8) is failing during boot to connect to the syslog service, because syslog daemon is started after dhclient(8). This can be reproduced by stooping syslog daemon and ktrace the dhclient or use kern.trap_enotcap sysctl and boot the machine. Using the Casper syslog service fix the problem. Reviewed by: bapt@ Differential Revision: https://reviews.freebsd.org/D12825
Notes
Notes: svn path=/head/; revision=325740
Diffstat (limited to 'sbin/dhclient/Makefile')
-rw-r--r--sbin/dhclient/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/dhclient/Makefile b/sbin/dhclient/Makefile
index 98beb6e44634..75b578824bb3 100644
--- a/sbin/dhclient/Makefile
+++ b/sbin/dhclient/Makefile
@@ -44,6 +44,12 @@ MAN= dhclient.8 dhclient.conf.5 dhclient.leases.5 dhcp-options.5 \
dhclient-script.8
LIBADD= util
+.if ${MK_CASPER} != "no" && !defined(RESCUE)
+LIBADD+= casper
+LIBADD+= cap_syslog
+CFLAGS+=-DWITH_CASPER
+.endif
+
WARNS?= 2
HAS_TESTS=