674c45857c
schg flag are handled before being replaced by a symbolic link. Fix passwd(1)/yppasswd(1) schg issue similarly to chpass(1). Note: These are likely temporary fixes while identifying any remaining files that are not marked as 'flags=schg' via mtree(8). Sponsored by: The FreeBSD Foundation
23 lines
421 B
Makefile
23 lines
421 B
Makefile
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG = passwd
|
|
BINOWN = root
|
|
BINMODE = 4555
|
|
PRECIOUSPROG=
|
|
LIBADD = pam
|
|
.if ${MK_NIS} != "no"
|
|
SYMLINKS = ${BINDIR}/passwd ${BINDIR}/yppasswd
|
|
MLINKS = passwd.1 yppasswd.1
|
|
.endif
|
|
|
|
beforeinstall:
|
|
.for i in passwd yppasswd
|
|
[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
|
|
chflags noschg ${DESTDIR}${BINDIR}/$i || true
|
|
.endfor
|
|
|
|
.include <bsd.prog.mk>
|