xref: /freebsd/usr.bin/passwd/Makefile (revision d899be7d43d8df9cb485af5705e2724165a461c7)
1# From:	@(#)Makefile	8.3 (Berkeley) 4/2/94
2# $FreeBSD$
3
4.include <src.opts.mk>
5
6PROG	 = passwd
7BINOWN	 = root
8BINMODE	 = 4555
9LIBADD   = pam
10.if ${MK_NIS} != "no"
11LINKS	 = ${BINDIR}/passwd ${BINDIR}/yppasswd
12MLINKS	 = passwd.1 yppasswd.1
13.endif
14
15beforeinstall:
16.for i in passwd yppasswd
17	[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
18		chflags noschg ${DESTDIR}${BINDIR}/$i || true
19.endfor
20
21.if !defined(NO_FSCHG)
22afterinstall:
23	-chflags schg ${DESTDIR}${BINDIR}/passwd
24.endif
25
26.include <bsd.prog.mk>
27