summaryrefslogtreecommitdiffstats
path: root/chpass/Makefile
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-08-13 16:12:28 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-08-13 16:12:28 +0000
commitf811b41cc996c70cfc5a1f29938e18cfacec1814 (patch)
treef1e4ce5b338fe0cb45c2e3f72efd88c0f8075a21 /chpass/Makefile
parent0ad8070243d57c40e41817770e963eb7b713c958 (diff)
downloadpw-darwin-f811b41cc996c70cfc5a1f29938e18cfacec1814.tar.gz
pw-darwin-f811b41cc996c70cfc5a1f29938e18cfacec1814.tar.zst
pw-darwin-f811b41cc996c70cfc5a1f29938e18cfacec1814.zip
Take the ypchfn/ypchsh stuff that was removed from passwd
and graft it into chpass. Chpass can now tell when it's being asked to operate on an NIS user and it displayes the appropriate message in the editor template ("Changing NIS information for foo"). After the changes have been made, chpass will promte the user for his NIS password. If the password is correct, the changes are committed to yppasswdd. Hopefully, this should make NIS more transparent to the end user. Note that even the superuser needs to know a user's password before he can change any NIS information (such is the nature of yppasswdd). Also, changes to the password field are not permitted -- that's what yppasswd is for. (The superuser may specify a new password, but again, he needs to know the user's original password before he can change it.)
Diffstat (limited to 'chpass/Makefile')
-rw-r--r--chpass/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 7b76f90..e0849bc 100644
--- a/chpass/Makefile
+++ b/chpass/Makefile
@@ -6,14 +6,20 @@ BINOWN= root
BINMODE=4555
.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw
-LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
+LINKS= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/chfn
+LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/chsh
+LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchpass
+LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchfn
+LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
-
+COPTS+=-DYP
+SRCS+= pw_yp.c
+LDADD+=-lrpcsvc -lcrypt
beforeinstall:
- [ ! -e ${DESTDIR}/usr/bin/chpass ] || \
- chflags noschg ${DESTDIR}/usr/bin/chpass
+ [ ! -e ${DESTDIR}${BINDIR}/chpass ] || \
+ chflags noschg ${DESTDIR}${BINDIR}/chpass
afterinstall:
- chflags schg ${DESTDIR}/usr/bin/chpass
+ chflags schg ${DESTDIR}${BINDIR}/chpass
.include <bsd.prog.mk>