aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-02-01 05:55:18 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-02-01 05:55:18 +0000
commit7506dfc15e22ab384854a3074fcf953529ba6fda (patch)
tree02cf8617d70bc7918c3f4cb16dc630502dd2a329 /usr.bin
parent671a48a5777a1a5fd866529976a66802a361e4c7 (diff)
downloadsrc-7506dfc15e22ab384854a3074fcf953529ba6fda.tar.gz
src-7506dfc15e22ab384854a3074fcf953529ba6fda.zip
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.
Notes
Notes: svn path=/head/; revision=6089
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/passwd/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile
index 13b5188c05d2..1feea4fb2c20 100644
--- a/usr.bin/passwd/Makefile
+++ b/usr.bin/passwd/Makefile
@@ -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>