diff options
author | bapt <bapt@FreeBSD.org> | 2015-02-13 09:02:15 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-02-13 09:02:15 +0000 |
commit | 2e976ba8436e1b13967ffb80e9f6672eea060cfb (patch) | |
tree | 754f77d0d2b368a919cd99a00e57f2d194a021c0 | |
parent | 7de2039e349375d2809539c82afb30ce1188dbec (diff) | |
download | FreeBSD-src-2e976ba8436e1b13967ffb80e9f6672eea060cfb.zip FreeBSD-src-2e976ba8436e1b13967ffb80e9f6672eea060cfb.tar.gz |
Revert r278642
install(1) does not handle chflags on hardlinks
-rw-r--r-- | usr.bin/passwd/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index d914060..f1fff46 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -7,10 +7,20 @@ PROG = passwd BINOWN = root BINMODE = 4555 LIBADD = pam -PRECIOUSPROG= .if ${MK_NIS} != "no" LINKS = ${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 + +.if !defined(NO_FSCHG) +afterinstall: + -chflags schg ${DESTDIR}${BINDIR}/passwd +.endif + .include <bsd.prog.mk> |