-LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
-LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
-LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
-LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
-LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
+SYMLINKS= ${BINDIR}/chpass ${BINDIR}/chfn
+SYMLINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
+.if ${MK_NIS} != "no"
+SYMLINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
+SYMLINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
+SYMLINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
+.endif