diff options
author | bapt <bapt@FreeBSD.org> | 2015-02-13 07:51:26 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-02-13 07:51:26 +0000 |
commit | 7de2039e349375d2809539c82afb30ce1188dbec (patch) | |
tree | c0d0669446cb7d2f14a1f02d50e6e5f6a80ba0e0 /usr.bin/chpass | |
parent | 9ca9dee4196363d034e6c9e7f6042d1cbe518331 (diff) | |
download | FreeBSD-src-7de2039e349375d2809539c82afb30ce1188dbec.zip FreeBSD-src-7de2039e349375d2809539c82afb30ce1188dbec.tar.gz |
Partially revert 278642
On reinstall (overwrite) install(1) does not handle chflags
Reported by: ian
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r-- | usr.bin/chpass/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index c0cf46c..9b3e878 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/chpass/Makefile @@ -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> |