Changed passwd/yppasswd's Makefile to create all symbolic links instead

of hard links: since passwd is installed immutable, an attempt to make
a hard link to it during a 'make install' would fail. I didn't notice
this conflict because my /usr directory is an NFS filesystem mounted from a
SunOS server, so the special file mode flags had no effecti when I tested
everything on my machine. Live and learn.
This commit is contained in:
wpaul 1995-02-01 05:55:18 +00:00
parent 2e5935449b
commit 73ef160522

View File

@ -11,13 +11,17 @@ CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
-I${.CURDIR}/../../usr.bin/chpass \
-I${.CURDIR}/../../gnu/usr.sbin/yppasswdd
LINKS= ${BINDIR}/passwd ${BINDIR}/yppasswd
LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchfn
LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchsh
LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchpass
BINOWN= root
BINMODE=4555
BINDIR= /usr/bin
INSTALLFLAGS=-fschg
afterinstall: symlinks
symlinks: passwd
ln -sf ${BINDIR}/passwd ${BINDIR}/yppasswd
ln -sf ${BINDIR}/passwd ${BINDIR}/ypchsh
ln -sf ${BINDIR}/passwd ${BINDIR}/ypshfn
ln -sf ${BINDIR}/passwd ${BINDIR}/ypchpass
.include <bsd.prog.mk>