]> git.cameronkatri.com Git - pw-darwin.git/blob - chpass/Makefile
Do not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.
[pw-darwin.git] / 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 .if ${MK_NIS} != "no"
13 CFLAGS+= -DYP
14 .endif
15 #Some people need this, uncomment to activate
16 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
17 CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
18
19 DPADD= ${LIBCRYPT} ${LIBUTIL}
20 LDADD= -lcrypt -lutil
21 .if ${MK_NIS} != "no"
22 DPADD+= ${LIBYPCLNT}
23 LDADD+= -lypclnt
24 .endif
25
26 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
27 LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
28 .if ${MK_NIS} != "no"
29 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
30 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
31 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
32 .endif
33
34 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
35 .if ${MK_NIS} != "no"
36 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
37 .endif
38
39 beforeinstall:
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)
47 afterinstall:
48 -chflags schg ${DESTDIR}${BINDIR}/chpass
49 .endif
50
51 .include <bsd.prog.mk>