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