svn commit: r311469 - head/usr.sbin/ypserv

Ngie Cooper ngie at FreeBSD.org
Fri Jan 6 04:10:34 UTC 2017


Author: ngie
Date: Fri Jan  6 04:10:33 2017
New Revision: 311469
URL: https://svnweb.freebsd.org/changeset/base/311469

Log:
  Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
  always building support into ypserv.
  
  MFC after:	2 weeks

Modified:
  head/usr.sbin/ypserv/Makefile

Modified: head/usr.sbin/ypserv/Makefile
==============================================================================
--- head/usr.sbin/ypserv/Makefile	Fri Jan  6 03:55:28 2017	(r311468)
+++ head/usr.sbin/ypserv/Makefile	Fri Jan  6 04:10:33 2017	(r311469)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+.include <src.opts.mk>
+
 RPCDIR=	${.CURDIR}/../../include/rpcsvc
 .PATH: ${RPCDIR} \
        ${.CURDIR}/common
@@ -10,11 +12,14 @@ SRCS=	yp_svc.c yp_server.c yp_dblookup.c
 	ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c \
 	yplib_host.c
 
-CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I.
+CFLAGS+= -DDB_CACHE -I.
 
 WARNS?=	0
 
-LIBADD=	wrap
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+=	-DTCP_WRAPPER
+LIBADD+=	wrap
+.endif
 
 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
 


More information about the svn-src-head mailing list