1# @(#)Makefile 8.2 (Berkeley) 4/2/94 2# $FreeBSD$ 3 4.include <bsd.own.mk> 5 6.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen 7 8PROG= chpass 9SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c 10BINOWN= root 11BINMODE=4555 12WARNS?= 5 13.if ${MK_NIS} != "no" 14CFLAGS+= -DYP 15.endif 16#Some people need this, uncomment to activate 17#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE 18CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I. 19 20DPADD= ${LIBCRYPT} ${LIBUTIL} 21LDADD= -lcrypt -lutil 22.if ${MK_NIS} != "no" 23DPADD+= ${LIBYPCLNT} 24LDADD+= -lypclnt 25.endif 26 27LINKS= ${BINDIR}/chpass ${BINDIR}/chfn 28LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh 29.if ${MK_NIS} != "no" 30LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass 31LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn 32LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh 33.endif 34 35MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 36.if ${MK_NIS} != "no" 37MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 38.endif 39 40beforeinstall: 41.for i in chpass chfn chsh ypchpass ypchfn ypchsh 42 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \ 43 chflags noschg ${DESTDIR}${BINDIR}/$i || true 44.endfor 45 46afterinstall: 47 -chflags schg ${DESTDIR}${BINDIR}/chpass 48 49.include <bsd.prog.mk> 50