1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/2/94
|
1999-12-16 10:55:45 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-12-30 09:46:58 +00:00
|
|
|
.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
PROG= chpass
|
2002-05-08 00:54:29 +00:00
|
|
|
SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
|
2001-09-13 06:48:18 +00:00
|
|
|
BINOWN= root
|
1994-05-27 12:33:43 +00:00
|
|
|
BINMODE=4555
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2004-11-13 20:40:32 +00:00
|
|
|
CFLAGS+= -DYP
|
|
|
|
.endif
|
2002-12-30 09:46:58 +00:00
|
|
|
#Some people need this, uncomment to activate
|
|
|
|
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
|
|
|
|
|
2004-11-13 20:40:32 +00:00
|
|
|
DPADD= ${LIBCRYPT} ${LIBUTIL}
|
|
|
|
LDADD= -lcrypt -lutil
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2004-11-13 20:40:32 +00:00
|
|
|
DPADD+= ${LIBYPCLNT}
|
|
|
|
LDADD+= -lypclnt
|
|
|
|
.endif
|
2002-12-30 09:46:58 +00:00
|
|
|
|
1995-08-17 11:26:42 +00:00
|
|
|
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
|
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
1995-08-17 11:26:42 +00:00
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
|
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
|
|
|
|
LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
|
2004-12-29 08:13:20 +00:00
|
|
|
.endif
|
1997-09-13 12:21:25 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
1997-09-13 12:21:25 +00:00
|
|
|
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
|
2004-12-29 08:13:20 +00:00
|
|
|
.endif
|
1997-09-13 12:21:25 +00:00
|
|
|
|
1994-05-30 14:03:53 +00:00
|
|
|
beforeinstall:
|
1997-02-26 05:31:52 +00:00
|
|
|
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
|
2009-06-15 21:05:00 +00:00
|
|
|
-chflags noschg ${DESTDIR}${BINDIR}/$i
|
1997-02-26 05:31:52 +00:00
|
|
|
.endfor
|
1994-05-30 14:03:53 +00:00
|
|
|
|
2009-06-15 21:05:00 +00:00
|
|
|
.if !defined(NO_FSCHG)
|
1994-05-27 12:33:43 +00:00
|
|
|
afterinstall:
|
2010-03-04 12:35:20 +00:00
|
|
|
-chflags schg ${DESTDIR}${BINDIR}/chpass
|
2009-06-15 21:05:00 +00:00
|
|
|
.endif
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|