*** 4.2-RELEASE/src/usr.bin/chflags/Makefile Wed Jun 28 04:33:15 2000 --- jhs/src/usr.bin/chflags/Makefile Fri Feb 9 20:03:56 2001 *************** *** 7,10 **** --- 7,33 ---- CFLAGS+=-Wall SRCS= chflags.c + install: chflags.sh + install -c -o root -g wheel -m 555 ${PROG}.sh \ + ${DESTDIR}/usr/bin/${PROG} + install -c -s -o root -g wheel -m 555 ${PROG} \ + ${DESTDIR}/usr/bin/${PROG}.real + install -c -o root -g wheel -m 444 ${PROG}.1.gz \ + ${DESTDIR}/usr/share/man/man1 + + # Dummy /usr/bin/chflags exists to fool: FreeBSD cd /usr/src;make install + # which has scattered annoying chflags invocations. + # The dummy avoids any more chflag stuff being installed by accident, + # & the real command is there to be able to run + # find -x / /var /usr* -type f | xargs /usr/bin/chflags.real noschg + # (the -x avoids the amd'd /host recursing into cross mounted other hosts.) + chflags.sh: Makefile + echo '#!/bin/sh' > $@ + echo 'echo "Real chflags is in /usr/bin/chflags.real"' >> $@ + echo 'echo "See /usr/src/usr.bin/chflags/Makefile for details"' >> $@ + echo 'true' >> $@ + + # clean: + # rm -f chflags.sh + .include