1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/2/94
|
1999-12-16 10:55:45 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2002-12-30 09:46:58 +00:00
|
|
|
.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
PROG= chpass
|
2002-05-08 00:54:29 +00:00
|
|
|
SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
|
2001-09-13 06:48:18 +00:00
|
|
|
BINOWN= root
|
1994-05-27 12:33:43 +00:00
|
|
|
BINMODE=4555
|
2002-12-30 09:45:26 +00:00
|
|
|
WARNS?= 5
|
2004-11-13 20:40:32 +00:00
|
|
|
.if !defined(NO_NIS)
|
|
|
|
CFLAGS+= -DYP
|
|
|
|
.endif
|
2002-12-30 09:46:58 +00:00
|
|
|
#Some people need this, uncomment to activate
|
|
|
|
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
|
|
|
|
|
2004-11-13 20:40:32 +00:00
|
|
|
DPADD= ${LIBCRYPT} ${LIBUTIL}
|
|
|
|
LDADD= -lcrypt -lutil
|
|
|
|
.if !defined(NO_NIS)
|
|
|
|
DPADD+= ${LIBYPCLNT}
|
|
|
|
LDADD+= -lypclnt
|
|
|
|
.endif
|
2002-12-30 09:46:58 +00:00
|
|
|
|
1995-08-17 11:26:42 +00:00
|
|
|
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
|
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
|
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
|
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
|
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
|
1997-09-13 12:21:25 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
|
1997-09-13 12:21:25 +00:00
|
|
|
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
|
|
|
|
|
1994-05-30 14:03:53 +00:00
|
|
|
beforeinstall:
|
1997-02-26 05:31:52 +00:00
|
|
|
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
|
|
|
|
[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
|
1999-02-14 13:56:15 +00:00
|
|
|
chflags noschg ${DESTDIR}${BINDIR}/$i || true
|
1997-02-26 05:31:52 +00:00
|
|
|
.endfor
|
1994-05-30 14:03:53 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
afterinstall:
|
1999-02-14 13:56:15 +00:00
|
|
|
-chflags schg ${DESTDIR}${BINDIR}/chpass
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|