diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-02-14 21:08:45 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-02-14 21:08:45 +0000 |
commit | ca5902c3343dd35433c3ee322658edd429dc904e (patch) | |
tree | a9ecfb4829e80fd493b26bdd41afb287b30563c4 /usr.bin/passwd/Makefile | |
parent | d5e02ec9316b0008cca464526eff80af18206e2e (diff) | |
download | FreeBSD-src-ca5902c3343dd35433c3ee322658edd429dc904e.zip FreeBSD-src-ca5902c3343dd35433c3ee322658edd429dc904e.tar.gz |
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.
Diffstat (limited to 'usr.bin/passwd/Makefile')
-rw-r--r-- | usr.bin/passwd/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index 3b2bba2..47e4a42 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> |