Partially revert 278642
On reinstall (overwrite) install(1) does not handle chflags Reported by: ian
This commit is contained in:
parent
eda94c07de
commit
e707eb9bc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278664
@ -9,7 +9,6 @@ PROG= chpass
|
||||
SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
|
||||
BINOWN= root
|
||||
BINMODE=4555
|
||||
PRECIOUSPROG=
|
||||
.if ${MK_NIS} != "no"
|
||||
CFLAGS+= -DYP
|
||||
.endif
|
||||
@ -35,4 +34,16 @@ MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
|
||||
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
|
||||
.endif
|
||||
|
||||
beforeinstall:
|
||||
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
|
||||
.if exists(${DESTDIR}${BINDIR}/$i)
|
||||
-chflags noschg ${DESTDIR}${BINDIR}/$i
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if !defined(NO_FSCHG)
|
||||
afterinstall:
|
||||
-chflags schg ${DESTDIR}${BINDIR}/chpass
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user