1994-09-29 13:06:54 +00:00
|
|
|
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
|
1995-09-03 11:40:37 +00:00
|
|
|
# $Id: Makefile,v 1.16 1995/08/17 11:26:42 bde Exp $
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
PROG= passwd
|
1995-09-03 11:40:37 +00:00
|
|
|
SRCS= local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c pw_yp.c
|
1995-08-17 11:26:42 +00:00
|
|
|
DPADD= ${LIBCRYPT} ${LIBRPCSVC}
|
1995-04-01 19:19:15 +00:00
|
|
|
LDADD= -lcrypt -lrpcsvc
|
1994-05-27 12:33:43 +00:00
|
|
|
.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
|
1995-04-01 19:19:15 +00:00
|
|
|
${.CURDIR}/../rlogin
|
Obtained from: The NYS project
This is the first round of changes to incorporate YP server functionality
into FreeBSD. This particular change allows passwd to change either the
local or NIS password, as well as the NIS GECOS and shell information.
Essentially, I've taken passwd(1) and yppasswd from the yppasswd-0.5
distribution (which is part of the NYS project -- a project to provide
a GNU GPL'ed suite of NIS tools) and rammed them into each other
at high speed. I've tried my best to make this co-exist with the
Kerberos stuff, but since I don't run Kerberos I don't have an easy
way to verify that it all works. If you choose any Kerberos flags
then the YP checks should be bypassed, but that may not be enough.
I'll modify it some more if it turns out I broke something. For now,
support for localand NIS passwords is pretty solid:
- If you simply type 'passwd,' the program checks to see if you exist
in the local pwd.db database. If not, you get bounced to YP.
- If you try to force local functionality with the -l flag and you
don't exist locally, you get an error.
The -y flag can be used to force YP functionality. -f and -s let you
change your full name and shell (respectively). -f *and* -s let you
change all of your 'account information.'
ypchfn, ypchsh, yppasswd and ypchpass are all links to passwd.
1995-01-31 08:34:16 +00:00
|
|
|
|
|
|
|
CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
|
1995-04-01 19:19:15 +00:00
|
|
|
-I${.CURDIR}/../../usr.bin/chpass
|
Obtained from: The NYS project
This is the first round of changes to incorporate YP server functionality
into FreeBSD. This particular change allows passwd to change either the
local or NIS password, as well as the NIS GECOS and shell information.
Essentially, I've taken passwd(1) and yppasswd from the yppasswd-0.5
distribution (which is part of the NYS project -- a project to provide
a GNU GPL'ed suite of NIS tools) and rammed them into each other
at high speed. I've tried my best to make this co-exist with the
Kerberos stuff, but since I don't run Kerberos I don't have an easy
way to verify that it all works. If you choose any Kerberos flags
then the YP checks should be bypassed, but that may not be enough.
I'll modify it some more if it turns out I broke something. For now,
support for localand NIS passwords is pretty solid:
- If you simply type 'passwd,' the program checks to see if you exist
in the local pwd.db database. If not, you get bounced to YP.
- If you try to force local functionality with the -l flag and you
don't exist locally, you get an error.
The -y flag can be used to force YP functionality. -f and -s let you
change your full name and shell (respectively). -f *and* -s let you
change all of your 'account information.'
ypchfn, ypchsh, yppasswd and ypchpass are all links to passwd.
1995-01-31 08:34:16 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
1995-08-13 16:07:36 +00:00
|
|
|
MAN1=passwd.1
|
1995-08-17 11:26:42 +00:00
|
|
|
LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd
|
1995-08-13 16:07:36 +00:00
|
|
|
MLINKS=passwd.1 yppasswd.1
|
1994-05-27 12:33:43 +00:00
|
|
|
|
1995-02-11 18:20:06 +00:00
|
|
|
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_EBONES))
|
|
|
|
SRCS+= kpasswd.c
|
|
|
|
.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
|
|
|
|
${.CURDIR}/../../usr.bin/rlogin ${.CURDIR}/../../usr.bin/passwd \
|
|
|
|
${.CURDIR}/../../eBones/passwd
|
|
|
|
|
|
|
|
CFLAGS+= -DKERBEROS \
|
|
|
|
-I${.CURDIR}/../../eBones/include \
|
|
|
|
-I${.CURDIR}/../../eBones/libkadm
|
1995-08-17 11:26:42 +00:00
|
|
|
# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR}
|
|
|
|
DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR}
|
1995-04-01 19:19:15 +00:00
|
|
|
LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err
|
1995-06-11 19:33:05 +00:00
|
|
|
DISTRIBUTION= krb
|
1995-02-11 18:20:06 +00:00
|
|
|
.endif
|
|
|
|
|
1995-08-13 16:07:36 +00:00
|
|
|
beforeinstall:
|
|
|
|
[ ! -e ${DESTDIR}${BINDIR}/passwd ] || \
|
|
|
|
chflags noschg ${DESTDIR}${BINDIR}/passwd
|
1995-08-17 11:26:42 +00:00
|
|
|
|
1995-02-14 21:08:45 +00:00
|
|
|
afterinstall:
|
1995-08-13 16:07:36 +00:00
|
|
|
chflags schg ${DESTDIR}${BINDIR}/passwd
|
1995-02-14 21:08:45 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|