summaryrefslogtreecommitdiffstats
path: root/usr.bin/passwd/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-02-14 15:38:13 +0000
committerwpaul <wpaul@FreeBSD.org>1995-02-14 15:38:13 +0000
commiteb86e8c1e8428cfcca9b8b8779e9600fe62dd047 (patch)
treebb9f38e3b3bbd93df6a6729fdfddd5d4ae4f9981 /usr.bin/passwd/Makefile
parent1ff34ff975e38dfd1087289b463b765f409104ad (diff)
downloadFreeBSD-src-eb86e8c1e8428cfcca9b8b8779e9600fe62dd047.zip
FreeBSD-src-eb86e8c1e8428cfcca9b8b8779e9600fe62dd047.tar.gz
Changed passwd's Makefile to use the built-in LINKS mechanism to create
the symlinks for yppasswd & friends (we still can't use hard links because passwd is installed immutable). This would have been simpler if the LN_FLAGS variable hadn't chosen to wait until now before leaping out of the /usr/share/mk directory and biting me in the ass. (And thus, I was enlightened.)
Diffstat (limited to 'usr.bin/passwd/Makefile')
-rw-r--r--usr.bin/passwd/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile
index f9d929a..3b2bba2 100644
--- a/usr.bin/passwd/Makefile
+++ b/usr.bin/passwd/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
-# $Id: Makefile,v 1.9 1995/02/01 23:46:20 wpaul Exp $
+# $Id: Makefile,v 1.10 1995/02/11 18:20:06 ache Exp $
PROG= passwd
SRCS= local_passwd.c yp_passwd.c yppasswd_xdr.c passwd.c pw_copy.c pw_util.c
@@ -16,6 +16,9 @@ BINMODE=4555
INSTALLFLAGS=-fschg
MAN1=passwd.1 yppasswd.1
MLINKS=yppasswd.1 ypchsh.1 yppasswd.1 ypchpass.1 yppasswd.1 ypchfn.1
+LINKS= ${BINDIR}/passwd ${BINDIR}/yppasswd ${BINDIR}/passwd ${BINDIR}/ypchsh \
+ ${BINDIR}/passwd ${BINDIR}/ypchfn ${BINDIR}/passwd ${BINDIR}/ypchpass
+LN_FLAGS= -s
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_EBONES))
SRCS+= kpasswd.c
@@ -29,12 +32,4 @@ CFLAGS+= -DKERBEROS \
LDADD= -lkadm -lkrb -ldes -lcrypt -lcom_err
.endif
-afterinstall: symlinks
-
-symlinks: passwd
- ln -sf ${BINDIR}/passwd ${BINDIR}/yppasswd
- ln -sf ${BINDIR}/passwd ${BINDIR}/ypchsh
- ln -sf ${BINDIR}/passwd ${BINDIR}/ypchfn
- ln -sf ${BINDIR}/passwd ${BINDIR}/ypchpass
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud