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