summaryrefslogtreecommitdiffstats
path: root/usr.bin/chkey
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
committerbz <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
commit4b83c5852a5bcba28ed7ce5d13ff021642859772 (patch)
treeda33d2aed5fb6a0c2319fb0d10f0957f518eee99 /usr.bin/chkey
parenta67c7e75123103251e304a51ba19d0530b75981d (diff)
downloadFreeBSD-src-4b83c5852a5bcba28ed7ce5d13ff021642859772.zip
FreeBSD-src-4b83c5852a5bcba28ed7ce5d13ff021642859772.tar.gz
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks
Diffstat (limited to 'usr.bin/chkey')
-rw-r--r--usr.bin/chkey/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/chkey/Makefile b/usr.bin/chkey/Makefile
index 8cf1ef2..f3f5bd6 100644
--- a/usr.bin/chkey/Makefile
+++ b/usr.bin/chkey/Makefile
@@ -4,7 +4,10 @@
PROG= chkey
SRCS= chkey.c generic.c update.c
-CFLAGS+=-DYP -I${.CURDIR}/../newkey
+CFLAGS+= -I${.CURDIR}/../newkey
+.if !defined(NO_NIS)
+CFLAGS+= -DYP
+.endif
DPADD= ${LIBRPCSVC} ${LIBMP} ${LIBCRYPTO}
LDADD= -lrpcsvc -lmp -lcrypto
OpenPOWER on IntegriCloud