diff options
author | 2015-02-12 23:08:27 +0000 | |
---|---|---|
committer | 2015-02-12 23:08:27 +0000 | |
commit | 542b7e68020cb1fad12ec921e6c27c75220fa05c (patch) | |
tree | c4c88256fc075722628f3a7f6c20679de48e6a2d /chpass/Makefile | |
parent | 5ec7d8da144c1b6852ac2b56127bed88c9997c55 (diff) | |
download | pw-darwin-542b7e68020cb1fad12ec921e6c27c75220fa05c.tar.gz pw-darwin-542b7e68020cb1fad12ec921e6c27c75220fa05c.tar.zst pw-darwin-542b7e68020cb1fad12ec921e6c27c75220fa05c.zip |
Use PRECIOUSPROG instead of custom code to handle schg
This allows to preserve schg when installed with -DNO_ROOT
MFC after: 1 week
Diffstat (limited to 'chpass/Makefile')
-rw-r--r-- | chpass/Makefile | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/chpass/Makefile b/chpass/Makefile index 9b3e878..c0cf46c 100644 --- a/chpass/Makefile +++ b/chpass/Makefile @@ -9,6 +9,7 @@ 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 @@ -34,16 +35,4 @@ 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> |