xref: /dragonfly/usr.bin/passwd/Makefile (revision 16dd80e4)
1# From:	@(#)Makefile	8.3 (Berkeley) 4/2/94
2# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.46 2004/12/29 08:16:39 ache Exp $
3
4PROG=	passwd
5BINOWN=	root
6BINMODE= 4555
7DPADD=	${LIBPAM}
8LDADD=	${MINUSLPAM}
9LDFLAGS+= ${LDFLAGSPAM}
10.if !defined(NO_NIS)
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(NOFSCHG)
22afterinstall:
23	-chflags schg ${DESTDIR}${BINDIR}/passwd
24.endif
25
26.include <bsd.prog.mk>
27