diff options
author | ngie <ngie@FreeBSD.org> | 2017-02-04 16:34:44 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-02-04 16:34:44 +0000 |
commit | 9b4f0bcaf81761e838fa939feea4b529eb177ff2 (patch) | |
tree | 758cfc78fce8f1901893597981eb98e56e8d3408 /usr.sbin | |
parent | 6b4719fed4d55789098a8e7f5900ca0bc16ba614 (diff) | |
download | FreeBSD-src-9b4f0bcaf81761e838fa939feea4b529eb177ff2.zip FreeBSD-src-9b4f0bcaf81761e838fa939feea4b529eb177ff2.tar.gz |
MFC r311469:
Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into ypserv.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ypserv/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile index cb24c43..389ffaa 100644 --- a/usr.sbin/ypserv/Makefile +++ b/usr.sbin/ypserv/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + RPCDIR= ${.CURDIR}/../../include/rpcsvc .PATH: ${RPCDIR} @@ -8,12 +10,15 @@ MAN= ypserv.8 ypinit.8 SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \ ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c -CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I. +CFLAGS+= -DDB_CACHE -I. WARNS?= 0 -DPADD= ${LIBWRAP} -LDADD= -lwrap +.if ${MK_TCP_WRAPPERS} != "no" +CFLAGS+= -DTCP_WRAPPER +DPADD+= ${LIBWRAP} +LDADD+= -lwrap +.endif CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h |