diff options
author | bde <bde@FreeBSD.org> | 1995-08-17 11:26:42 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-08-17 11:26:42 +0000 |
commit | 59ce0fe7adcdd2040063722b39133cc09cd8d746 (patch) | |
tree | 6d752b245f63d791b64edb3592e3bfdd2a4bcbd8 /usr.bin/passwd/Makefile | |
parent | f2c21db1649c3858bf0d3d1775e0462f923dd982 (diff) | |
download | FreeBSD-src-59ce0fe7adcdd2040063722b39133cc09cd8d746.zip FreeBSD-src-59ce0fe7adcdd2040063722b39133cc09cd8d746.tar.gz |
Remove bogus ${DESTDIR}s from LINKS.
Keep DPADD up to date with LDADD.
bsd.prog.mk's install rule can't handle schg'ed links, so ugly
beforeinstall and afterinstall rules are required.
Diffstat (limited to 'usr.bin/passwd/Makefile')
-rw-r--r-- | usr.bin/passwd/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index 068f9f5..6b9c14d 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -1,8 +1,9 @@ # From: @(#)Makefile 8.3 (Berkeley) 4/2/94 -# $Id: Makefile,v 1.14 1995/06/11 19:32:12 rgrimes Exp $ +# $Id: Makefile,v 1.15 1995/08/13 16:07:28 wpaul Exp $ PROG= passwd SRCS= local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c +DPADD= ${LIBCRYPT} ${LIBRPCSVC} LDADD= -lcrypt -lrpcsvc .PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ ${.CURDIR}/../rlogin @@ -13,7 +14,7 @@ CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \ BINOWN= root BINMODE=4555 MAN1=passwd.1 -LINKS=${DESTDIR}${BINDIR}/passwd ${DESTDIR}${BINDIR}/yppasswd +LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd MLINKS=passwd.1 yppasswd.1 .if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_EBONES)) @@ -25,6 +26,8 @@ SRCS+= kpasswd.c CFLAGS+= -DKERBEROS \ -I${.CURDIR}/../../eBones/include \ -I${.CURDIR}/../../eBones/libkadm +# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR} +DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err DISTRIBUTION= krb .endif @@ -32,6 +35,7 @@ DISTRIBUTION= krb beforeinstall: [ ! -e ${DESTDIR}${BINDIR}/passwd ] || \ chflags noschg ${DESTDIR}${BINDIR}/passwd + afterinstall: chflags schg ${DESTDIR}${BINDIR}/passwd |