svn commit: r311470 - head/usr.sbin/rpcbind
Ngie Cooper
ngie at FreeBSD.org
Fri Jan 6 04:13:09 UTC 2017
Author: ngie
Date: Fri Jan 6 04:13:08 2017
New Revision: 311470
URL: https://svnweb.freebsd.org/changeset/base/311470
Log:
Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into rpcbind.
MFC after: 2 weeks
Modified:
head/usr.sbin/rpcbind/Makefile
Modified: head/usr.sbin/rpcbind/Makefile
==============================================================================
--- head/usr.sbin/rpcbind/Makefile Fri Jan 6 04:10:33 2017 (r311469)
+++ head/usr.sbin/rpcbind/Makefile Fri Jan 6 04:13:08 2017 (r311470)
@@ -8,18 +8,21 @@ MAN= rpcbind.8
SRCS= check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \
rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c
-CFLAGS+= -DPORTMAP -DLIBWRAP
+CFLAGS+= -DPORTMAP
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+= -DLIBWRAP
+LIBADD+= wrap
+.endif
+
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
WARNS?= 1
-LIBADD= wrap
-
.include <bsd.prog.mk>
More information about the svn-src-head
mailing list