aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
commit6c58990d4782600a6f5fc5ce9fc0ef48bd9cc001 (patch)
treeda33d2aed5fb6a0c2319fb0d10f0957f518eee99 /usr.bin
parent70502bea852fbe21d2d1edc4a67e976adf7f96dd (diff)
downloadsrc-6c58990d4782600a6f5fc5ce9fc0ef48bd9cc001.tar.gz
src-6c58990d4782600a6f5fc5ce9fc0ef48bd9cc001.zip
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
Notes
Notes: svn path=/head/; revision=137675
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/Makefile12
-rw-r--r--usr.bin/chkey/Makefile5
-rw-r--r--usr.bin/chpass/Makefile12
-rw-r--r--usr.bin/newkey/Makefile2
4 files changed, 24 insertions, 7 deletions
diff --git a/usr.bin/Makefile b/usr.bin/Makefile
index 99c105a7c872..4be12bcb671b 100644
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -221,9 +221,9 @@ SUBDIR= alias \
xstr \
${_yacc} \
yes \
- ypcat \
- ypmatch \
- ypwhich
+ ${_ypcat} \
+ ${_ypmatch} \
+ ${_ypwhich}
.if ${MACHINE_ARCH} != "arm" && \
${MACHINE_ARCH} != "powerpc"
@@ -250,6 +250,12 @@ _chkey= chkey
_newkey= newkey
.endif
+.if !defined(NO_NIS)
+_ypcat= ypcat
+_ypmatch= ypmatch
+_ypwhich= ypwhich
+.endif
+
.if !defined(NO_SENDMAIL)
_vacation= vacation
.endif
diff --git a/usr.bin/chkey/Makefile b/usr.bin/chkey/Makefile
index 8cf1ef26e864..f3f5bd69dfcf 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
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile
index 8077152edfe7..a012ad8c011f 100644
--- a/usr.bin/chpass/Makefile
+++ b/usr.bin/chpass/Makefile
@@ -8,13 +8,19 @@ SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
BINOWN= root
BINMODE=4555
WARNS?= 5
-CFLAGS+=-DYP
+.if !defined(NO_NIS)
+CFLAGS+= -DYP
+.endif
#Some people need this, uncomment to activate
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
-DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
-LDADD= -lcrypt -lutil -lypclnt
+DPADD= ${LIBCRYPT} ${LIBUTIL}
+LDADD= -lcrypt -lutil
+.if !defined(NO_NIS)
+DPADD+= ${LIBYPCLNT}
+LDADD+= -lypclnt
+.endif
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
diff --git a/usr.bin/newkey/Makefile b/usr.bin/newkey/Makefile
index 6fa5f9697334..670aa3c01d6f 100644
--- a/usr.bin/newkey/Makefile
+++ b/usr.bin/newkey/Makefile
@@ -2,7 +2,9 @@
PROG= newkey
SRCS= newkey.c generic.c update.c
+.if !defined(NO_NIS)
CFLAGS+= -DYP
+.endif
MAN= newkey.8
DPADD= ${LIBRPCSVC} ${LIBMP} ${LIBCRYPTO}
LDADD= -lrpcsvc -lmp -lcrypto