1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/2/94
|
|
|
|
|
|
|
|
PROG= chpass
|
|
|
|
SRCS= chpass.c edit.c field.c pw_copy.c pw_scan.c pw_util.c table.c util.c
|
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
|
|
|
.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw
|
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
|
1994-05-27 12:33:43 +00:00
|
|
|
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
|
1995-08-17 11:26:42 +00:00
|
|
|
COPTS+= -DYP
|
|
|
|
SRCS+= pw_yp.c
|
|
|
|
DPADD= ${LIBRPCSVC} ${LIBCRYPT}
|
|
|
|
LDADD+= -lrpcsvc -lcrypt
|
|
|
|
|
1994-05-30 14:03:53 +00:00
|
|
|
beforeinstall:
|
1995-08-13 16:12:28 +00:00
|
|
|
[ ! -e ${DESTDIR}${BINDIR}/chpass ] || \
|
|
|
|
chflags noschg ${DESTDIR}${BINDIR}/chpass
|
1994-05-30 14:03:53 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
afterinstall:
|
1995-08-13 16:12:28 +00:00
|
|
|
chflags schg ${DESTDIR}${BINDIR}/chpass
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|