5SRCS= chpass.c edit.c field.c pw_copy.c pw_scan.c pw_util.c pw_yp.c \ 6 table.c util.c ypxfr_misc.c ${GENSRCS} 7GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c yppasswd_private.h \ 8 yppasswd_private_clnt.c yppasswd_private_xdr.c 9BINMODE=4555 10.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw \ 11 ${.CURDIR}/../../libexec/ypxfr \ 12 ${.CURDIR}/../../usr.sbin/rpc.yppasswdd 13CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw 14LINKS= ${BINDIR}/chpass ${BINDIR}/chfn 15LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh 16LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass 17LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn 18LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh 19 20MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 21MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 22 23COPTS+= -DYP -I. -I${.CURDIR}/../../libexec/ypxfr \ 24 -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx 25 26#Some people need this, uncomment to activate 27#COPTS+= -DRESTRICT_FULLNAME_CHANGE 28 29DPADD= ${LIBRPCSVC} ${LIBCRYPT} 30LDADD+= -lrpcsvc -lcrypt 31 32CLEANFILES= ${GENSRCS} 33 34RPCGEN= rpcgen -C 35RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x 36RPCSRC_PW= ${DESTDIR}/usr/include/rpcsvc/yppasswd.x 37RPCSRC_PRIV= ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x 38 39yp.h: ${RPCSRC} 40 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 41 42yp_clnt.c: ${RPCSRC} 43 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 44 45yppasswd.h: ${RPCSRC_PW} 46 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW} 47 48yppasswd_clnt.c: ${RPCSRC_PW} 49 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW} 50 51yppasswd_private.h: ${RPCSRC_PRIV} 52 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV} 53 54yppasswd_private_xdr.c: ${RPCSRC_PRIV} 55 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV} 56 57yppasswd_private_clnt.c: ${RPCSRC_PRIV} 58 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV} 59 60beforeinstall: 61.for i in chpass chfn chsh ypchpass ypchfn ypchsh 62 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \ 63 chflags noschg ${DESTDIR}${BINDIR}/$i || true 64.endfor 65 66afterinstall: 67 -chflags schg ${DESTDIR}${BINDIR}/chpass 68 69.include <bsd.prog.mk>
| 5SRCS= chpass.c edit.c field.c pw_copy.c pw_scan.c pw_util.c pw_yp.c \ 6 table.c util.c ypxfr_misc.c ${GENSRCS} 7GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c yppasswd_private.h \ 8 yppasswd_private_clnt.c yppasswd_private_xdr.c 9BINMODE=4555 10.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw \ 11 ${.CURDIR}/../../libexec/ypxfr \ 12 ${.CURDIR}/../../usr.sbin/rpc.yppasswdd 13CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw 14LINKS= ${BINDIR}/chpass ${BINDIR}/chfn 15LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh 16LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass 17LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn 18LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh 19 20MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 21MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 22 23COPTS+= -DYP -I. -I${.CURDIR}/../../libexec/ypxfr \ 24 -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx 25 26#Some people need this, uncomment to activate 27#COPTS+= -DRESTRICT_FULLNAME_CHANGE 28 29DPADD= ${LIBRPCSVC} ${LIBCRYPT} 30LDADD+= -lrpcsvc -lcrypt 31 32CLEANFILES= ${GENSRCS} 33 34RPCGEN= rpcgen -C 35RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x 36RPCSRC_PW= ${DESTDIR}/usr/include/rpcsvc/yppasswd.x 37RPCSRC_PRIV= ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x 38 39yp.h: ${RPCSRC} 40 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 41 42yp_clnt.c: ${RPCSRC} 43 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 44 45yppasswd.h: ${RPCSRC_PW} 46 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW} 47 48yppasswd_clnt.c: ${RPCSRC_PW} 49 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW} 50 51yppasswd_private.h: ${RPCSRC_PRIV} 52 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV} 53 54yppasswd_private_xdr.c: ${RPCSRC_PRIV} 55 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV} 56 57yppasswd_private_clnt.c: ${RPCSRC_PRIV} 58 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV} 59 60beforeinstall: 61.for i in chpass chfn chsh ypchpass ypchfn ypchsh 62 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \ 63 chflags noschg ${DESTDIR}${BINDIR}/$i || true 64.endfor 65 66afterinstall: 67 -chflags schg ${DESTDIR}${BINDIR}/chpass 68 69.include <bsd.prog.mk>
|