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 19LIBADD= crypt util 20.if ${MK_NIS} != "no" 21LIBADD+= ypclnt 22.endif 23 24LINKS= ${BINDIR}/chpass ${BINDIR}/chfn 25LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh 26.if ${MK_NIS} != "no" 27LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass 28LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn 29LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh 30.endif 31 32MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 33.if ${MK_NIS} != "no" 34MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 35.endif 36 37beforeinstall: 38.for i in chpass chfn chsh ypchpass ypchfn ypchsh 39.if exists(${DESTDIR}${BINDIR}/$i) 40 -chflags noschg ${DESTDIR}${BINDIR}/$i 41.endif 42.endfor 43 44.if !defined(NO_FSCHG) 45afterinstall: 46 -chflags schg ${DESTDIR}${BINDIR}/chpass 47.endif 48 49.include <bsd.prog.mk> 50