aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/inetd/Makefile
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-01-14 01:37:03 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-01-14 01:37:03 +0000
commit63eca8f1dd7adca4324e0cc05fa66fe441507bd7 (patch)
tree3e02cc8c32ae8afa8390dc7a511854e543066190 /usr.sbin/inetd/Makefile
parent4a6ace7328b83a22f1f2f487b3e151858f2f2909 (diff)
downloadsrc-63eca8f1dd7adca4324e0cc05fa66fe441507bd7.tar.gz
src-63eca8f1dd7adca4324e0cc05fa66fe441507bd7.zip
Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS
This will allow inetd to stand by itself without libwrap. MFC after: 2 weeks Relnotes: yes Reviewed by: hrs (earlier version) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D9056
Notes
Notes: svn path=/head/; revision=312105
Diffstat (limited to 'usr.sbin/inetd/Makefile')
-rw-r--r--usr.sbin/inetd/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/inetd/Makefile b/usr.sbin/inetd/Makefile
index 6174592b34bb..da390081a873 100644
--- a/usr.sbin/inetd/Makefile
+++ b/usr.sbin/inetd/Makefile
@@ -16,7 +16,12 @@ CFLAGS+= -DLOGIN_CAP
CFLAGS+= -DINET6
.endif
-LIBADD= util wrap
+LIBADD= util
+
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+= -DLIBWRAP
+LIBADD+= wrap
+.endif
# XXX for src/release/picobsd
.if !defined(RELEASE_CRUNCH)