1# @(#)Makefile 8.2 (Berkeley) 4/2/94 2# $FreeBSD$ 3 4.include <src.opts.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 12.if ${MK_NIS} != "no" 13CFLAGS+= -DYP 14.endif 15#Some people need this, uncomment to activate 16#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE 17CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I. 18 19DPADD= ${LIBCRYPT} ${LIBUTIL} 20LDADD= -lcrypt -lutil 21.if ${MK_NIS} != "no" 22DPADD+= ${LIBYPCLNT} 23LDADD+= -lypclnt 24.endif 25 26LINKS= ${BINDIR}/chpass ${BINDIR}/chfn 27LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh 28.if ${MK_NIS} != "no" 29LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass 30LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn 31LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh 32.endif 33 34MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 35.if ${MK_NIS} != "no" 36MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 37.endif 38 39beforeinstall: 40.for i in chpass chfn chsh ypchpass ypchfn ypchsh 41.if exists(${DESTDIR}${BINDIR}/$i) 42 -chflags noschg ${DESTDIR}${BINDIR}/$i 43.endif 44.endfor 45 46.if !defined(NO_FSCHG) 47afterinstall: 48 -chflags schg ${DESTDIR}${BINDIR}/chpass 49.endif 50 51.include <bsd.prog.mk> 52