summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chpass/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 2bbdc08..e958956 100644
--- a/chpass/Makefile
+++ b/chpass/Makefile
@@ -39,11 +39,12 @@ MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
beforeinstall:
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
- [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
- chflags noschg ${DESTDIR}${BINDIR}/$i || true
+ -chflags noschg ${DESTDIR}${BINDIR}/$i
.endfor
+.if !defined(NO_FSCHG)
afterinstall:
- -chflags schg ${DESTDIR}${BINDIR}/chpass
+ chflags schg ${DESTDIR}${BINDIR}/chpass
+.endif
.include <bsd.prog.mk>