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