Fixed minor security hole. Previously,
[unix-history] / Makefile
index 58690d0..4be883c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #      @(#)Makefile    5.1.1.2 (Berkeley) 5/9/91
 #
 #      @(#)Makefile    5.1.1.2 (Berkeley) 5/9/91
 #
-#      $Id: Makefile,v 1.41 1994/02/26 19:32:43 wollman Exp $
+#      $Id: Makefile,v 1.44 1994/03/06 08:40:31 ache Exp $
 #
 
 SUBDIR=
 #
 
 SUBDIR=
@@ -81,6 +81,9 @@ world:        directories cleandist mk includes libraries tools mdec
        cd ${.CURDIR}/share/man;                make makedb
 
 directories:
        cd ${.CURDIR}/share/man;                make makedb
 
 directories:
+       @echo "--------------------------------------------------------------"
+       @echo " Making directories"
+       @echo "--------------------------------------------------------------"
        cd ${.CURDIR}/etc;                      make distrib-dirs
 
 cleandist:
        cd ${.CURDIR}/etc;                      make distrib-dirs
 
 cleandist:
@@ -163,6 +166,23 @@ bootstrapld:       directories cleandist mk includes
        cd ${.CURDIR}/lib/libc;         make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/gnu/usr.bin/ld/rtld;      make depend all install ${CLEANDIR} obj
 
        cd ${.CURDIR}/lib/libc;         make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/gnu/usr.bin/ld/rtld;      make depend all install ${CLEANDIR} obj
 
+# You MUST run this the first time you get the new sources to boot strap
+# the *pwd.db databases onto you system.  This target should only
+# need to be run once on a system.
+
+bootstrappwd:
+       cd ${.CURDIR}/lib/libc; make all
+       cd ${.CURDIR}/usr.sbin/pwd_mkdb; make all install ${CLEANDIR}
+       cp /etc/master.passwd /etc/mp.t; pwd_mkdb /etc/mp.t
+       cp ${.CURDIR}/lib/libc/obj/libc* /usr/lib
+       cd ${.CURDIR}/lib/libc; make install ${CLEANDIR}
+       cd ${.CURDIR}/usr.bin/passwd; make all install ${CLEANDIR}
+       cd ${.CURDIR}/bin; make all install ${CLEANDIR}
+       cd ${.CURDIR}/sbin; make all install ${CLEANDIR}
+       @echo "--------------------------------------------------------------"
+       @echo " Do reboot now because all daemons needs restart"
+       @echo "--------------------------------------------------------------"
+
 libraries:
        # setenv NOPROFILE if you do not want profiled libraries
        @echo "--------------------------------------------------------------"
 libraries:
        # setenv NOPROFILE if you do not want profiled libraries
        @echo "--------------------------------------------------------------"