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
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
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
|
2016-01-28 01:15:57 +00:00
|
|
|
PRECIOUSPROG=
|
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.
|
|
|
|
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= crypt util
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD+= ypclnt
|
2004-11-13 20:40:32 +00:00
|
|
|
.endif
|
2002-12-30 09:46:58 +00:00
|
|
|
|
2016-01-28 01:15:57 +00:00
|
|
|
SYMLINKS= ${BINDIR}/chpass ${BINDIR}/chfn
|
|
|
|
SYMLINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2016-01-28 01:15:57 +00:00
|
|
|
SYMLINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
|
|
|
|
SYMLINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
|
|
|
|
SYMLINKS+= ${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-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|