diff options
-rw-r--r-- | etc/Makefile | 4 | ||||
-rw-r--r-- | etc/nsswitch.conf | 22 |
2 files changed, 11 insertions, 15 deletions
diff --git a/etc/Makefile b/etc/Makefile index e7fa2d5..42d6959 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -256,6 +256,10 @@ distribution: ${DESTDIR}/boot/device.hints .endif .endif +.if ${MK_NIS} == "no" + sed -i "" -e 's/.*_compat:/# &/' -e 's/compat$$/files/' \ + ${DESTDIR}/etc/nsswitch.conf +.endif distrib-dirs: mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ diff --git a/etc/nsswitch.conf b/etc/nsswitch.conf index ab27fb9..c95b9a4 100644 --- a/etc/nsswitch.conf +++ b/etc/nsswitch.conf @@ -1,23 +1,15 @@ # +# nsswitch.conf(5) - name service switch configuration file # $FreeBSD$ # -# To enable NIS the commented entries should replace their uncommented -# equivalents. See nsswitch.conf(5) for more information. -# -group: files -#group_compat: nis -#group: compat - -passwd: files -#passwd_compat: nis -#passwd: compat - -services: files -#services_compat: nis -#services: compat - +group: compat +group_compat: nis hosts: files dns networks: files +passwd: compat +passwd_compat: nis shells: files +services: compat +services_compat: nis protocols: files rpc: files |