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.
This commit is contained in:
parent
70b344d1af
commit
36d9739b48
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6384
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user