Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of

always building support into rpcbind.

MFC after:	2 weeks
This commit is contained in:
Enji Cooper 2017-01-06 04:13:08 +00:00
parent 35c0323c64
commit 74410f9362
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311470

View File

@ -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>