1.include <src.opts.mk> 2 3.PATH: ${SRCTOP}/lib/libc/gen 4 5PROG= chpass 6SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c 7BINOWN= root 8BINMODE=4555 9PRECIOUSPROG= 10.if ${MK_NIS} != "no" 11CFLAGS+= -DYP 12.endif 13#Some people need this, uncomment to activate 14#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE 15CFLAGS+=-I${SRCTOP}/lib/libc/gen -I. 16 17LIBADD= crypt util 18.if ${MK_NIS} != "no" 19LIBADD+= ypclnt 20.endif 21 22SYMLINKS= chpass ${BINDIR}/chfn 23SYMLINKS+= chpass ${BINDIR}/chsh 24.if ${MK_NIS} != "no" 25SYMLINKS+= chpass ${BINDIR}/ypchfn 26SYMLINKS+= chpass ${BINDIR}/ypchpass 27SYMLINKS+= chpass ${BINDIR}/ypchsh 28.endif 29 30MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 31.if ${MK_NIS} != "no" 32MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 33.endif 34 35beforeinstall: 36.for i in chpass chfn chsh ypchpass ypchfn ypchsh 37.if exists(${DESTDIR}${BINDIR}/$i) 38 -chflags noschg ${DESTDIR}${BINDIR}/$i 39.endif 40.endfor 41 42.include <bsd.prog.mk> 43