aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/passwd/Makefile
diff options
context:
space:
mode:
authorRodney W. Grimes <rgrimes@FreeBSD.org>1995-02-14 21:08:45 +0000
committerRodney W. Grimes <rgrimes@FreeBSD.org>1995-02-14 21:08:45 +0000
commit36d9739b48b42d89be8ef6f47745ca3d4fe6ec78 (patch)
treea9ecfb4829e80fd493b26bdd41afb287b30563c4 /usr.bin/passwd/Makefile
parent70b344d1af01d4a9da6c539bb61e98d7c0ac46bd (diff)
downloadsrc-36d9739b48b42d89be8ef6f47745ca3d4fe6ec78.tar.gz
src-36d9739b48b42d89be8ef6f47745ca3d4fe6ec78.zip
Remove usage of LINKS and LN_FLAGS=-s, this does not do the correct thing
for symbolic links when $DESTDIR is set. Add afterinstall: target to handle symbolic link creation.
Notes
Notes: svn path=/head/; revision=6384
Diffstat (limited to 'usr.bin/passwd/Makefile')
-rw-r--r--usr.bin/passwd/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile
index 3b2bba282f20..47e4a425dc9b 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.10 1995/02/11 18:20:06 ache Exp $
+# $Id: Makefile,v 1.11 1995/02/14 15:38:13 wpaul Exp $
PROG= passwd
SRCS= local_passwd.c yp_passwd.c yppasswd_xdr.c passwd.c pw_copy.c pw_util.c
@@ -16,9 +16,6 @@ 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
@@ -32,4 +29,10 @@ CFLAGS+= -DKERBEROS \
LDADD= -lkadm -lkrb -ldes -lcrypt -lcom_err
.endif
+afterinstall:
+ ln -sf passwd ${DESTDIR}${BINDIR}/yppasswd
+ ln -sf passwd ${DESTDIR}${BINDIR}/ypchsh
+ ln -sf passwd ${DESTDIR}${BINDIR}/ypchfn
+ ln -sf passwd ${DESTDIR}${BINDIR}/ypchpass
+
.include <bsd.prog.mk>