freebsd-nq/usr.bin/chpass/Makefile
Andrey A. Chernov 3e7520144b Fix beforeinstall target:
use chflags /usr/bin/chpass ONLY if chpass present
1994-11-08 14:59:22 +00:00

19 lines
557 B
Makefile

# @(#)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
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
beforeinstall:
[ -r /usr/bin/chpass ] && chflags noschg /usr/bin/chpass
afterinstall:
chflags schg /usr/bin/chpass
.include <bsd.prog.mk>