diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-15 21:05:00 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-15 21:05:00 +0000 |
commit | cb3ec8e0c166db43edf0a5d4d5b84100b76dc579 (patch) | |
tree | e1694fafc3ffd8b1d2ef6c086934e9cd2981935c /usr.bin/chpass | |
parent | eaaaf1906b4eda1547e386c72a971541c67a779a (diff) | |
download | src-cb3ec8e0c166db43edf0a5d4d5b84100b76dc579.tar.gz src-cb3ec8e0c166db43edf0a5d4d5b84100b76dc579.zip |
Make the chpass Makefile honour NO_FSCHG.
The chpass Makefile tried to set the fschg flag on the binaries, even if
NO_FSCHG was passed to the installworld. This meant that if I installed
FreeBSD into a Jail, I couldn't installworld from within the Jail
anymore.
Now that it listens to NO_FSCHG, we can just make it bail out when it
fails, just like PRECIOUSPROG does.
Notes
Notes:
svn path=/head/; revision=194266
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r-- | usr.bin/chpass/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index 2bbdc0875b69..e9589562186a 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/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> |