add copyright
[unix-history] / usr / src / bin / Makefile
index 2d8a1e9..d08b397 100644 (file)
@@ -1,4 +1,9 @@
-#      Makefile        4.17    83/08/19
+#
+# Copyright (c) 1980 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)Makefile    5.1 (Berkeley) %G%
 #
 DESTDIR=
 CFLAGS=        -O
 #
 DESTDIR=
 CFLAGS=        -O
@@ -19,13 +24,17 @@ STD=        ar cat cc chgrp chmod cmp date dd df du echo ed expr \
        nm od pagesize passwd pr pwd rm rmail rmdir size strip stty su sync \
        tar tee test time wall who write
 
        nm od pagesize passwd pr pwd rm rmail rmdir size strip stty su sync \
        tar tee test time wall who write
 
+# C programs that live in the current directory and need explicit make lines.
+#
+NSTD=  ps
+
 # Programs that must run setuid to root
 #
 SETUID=        chgrp df login mail passwd su
 
 # Programs that must run setuid to root
 #
 SETUID=        chgrp df login mail passwd su
 
-# C programs that live in the current directory and need explicit make lines.
+# Programs that must run set-group-id kmem.
 #
 #
-NSTD=  ps
+KMEM=  ps
 
 all:   ${SUBDIR} ${STD} ${NSTD} cp mv
 
 
 all:   ${SUBDIR} ${STD} ${NSTD} cp mv
 
@@ -47,8 +56,12 @@ install:
        for i in ${STD} ${NSTD}; do (install -s $$i ${DESTDIR}/bin/$$i); done
        for i in ${SETUID}; do (chown root ${DESTDIR}/bin/$$i; \
                chmod 4755 ${DESTDIR}/bin/$$i); done
        for i in ${STD} ${NSTD}; do (install -s $$i ${DESTDIR}/bin/$$i); done
        for i in ${SETUID}; do (chown root ${DESTDIR}/bin/$$i; \
                chmod 4755 ${DESTDIR}/bin/$$i); done
+       for i in ${KMEM}; do (chgrp kmem ${DESTDIR}/bin/$$i; \
+               chmod 2755 ${DESTDIR}/bin/$$i); done
        rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
        rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e
        rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
        rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e
+       rm -f ${DESTDIR}/bin/chfn; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chfn
+       rm -f ${DESTDIR}/bin/chsh; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chsh
 
 clean:
        rm -f a.out core *.s *.o errs
 
 clean:
        rm -f a.out core *.s *.o errs