xref: /dragonfly/usr.bin/passwd/Makefile (revision 3170ffd7)
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# $DragonFly: src/usr.bin/passwd/Makefile,v 1.5 2007/08/27 16:50:57 pavalos Exp $
4
5PROG=	passwd
6BINOWN=	root
7BINMODE= 4555
8DPADD=	${LIBPAM}
9LDADD=	${MINUSLPAM}
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