diff options
author | wpaul <wpaul@FreeBSD.org> | 1997-07-29 15:43:21 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1997-07-29 15:43:21 +0000 |
commit | e0bb173182a2eae0614ffe1de98139d5aaca70a9 (patch) | |
tree | 25ce33b7284b134b210f0e2089dc2aaa85decfe7 /usr.sbin/rpc.yppasswdd/Makefile | |
parent | 2f9d4f24114eb44bfde492debae4196f2127b888 (diff) | |
download | FreeBSD-src-e0bb173182a2eae0614ffe1de98139d5aaca70a9.zip FreeBSD-src-e0bb173182a2eae0614ffe1de98139d5aaca70a9.tar.gz |
Modify rpc.yppasswdd to use the new AF_LOCAL transport in the RPC library
instead of its own kludged up version. This makes the special 'superuser-only'
update procedure work just like a real RPC service.
Diffstat (limited to 'usr.sbin/rpc.yppasswdd/Makefile')
-rw-r--r-- | usr.sbin/rpc.yppasswdd/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/rpc.yppasswdd/Makefile b/usr.sbin/rpc.yppasswdd/Makefile index f6090ab..60cb1e9 100644 --- a/usr.sbin/rpc.yppasswdd/Makefile +++ b/usr.sbin/rpc.yppasswdd/Makefile @@ -1,11 +1,11 @@ -# $Id$ +# $Id: Makefile,v 1.2 1997/07/28 18:31:11 wpaul Exp $ PROG= rpc.yppasswdd SRCS= pw_copy.c pw_util.c util.c yppasswd_svc.c yp_error.c ypxfr_misc.c \ yp_dblookup.c yp_dbwrite.c yp_access.c yppasswd_private_xdr.c \ - yp_clnt.c yppasswdd_server.c yppasswd_comm.c yppasswdd_main.c + yppasswd_private_svc.c yp_clnt.c yppasswdd_server.c yppasswdd_main.c -RPCDIR= ${.CURDIR}/../../include/rpcsvc +RPCDIR= ${DESTDIR}/usr/include/rpcsvc .PATH: ${.CURDIR}/../../usr.sbin/ypserv ${.CURDIR}/../../usr.bin/chpass \ ${.CURDIR}/../../libexec/ypxfr ${RPCDIR} @@ -21,7 +21,7 @@ LDADD= -lrpcsvc -lcrypt CLEANFILES= yppasswd_svc.c yppasswd.h \ yppasswd_private_xdr.c yppasswd_private.h \ - yp.h yp_clnt.c + yppasswd_private_svc.c yp.h yp_clnt.c RPCGEN= rpcgen -I -C @@ -52,6 +52,11 @@ yppasswd_private_xdr.c: yppasswd_private.x yppasswd_private.h rm -f ${.TARGET} ${RPCGEN} -c -o ${.TARGET} ${.CURDIR}/yppasswd_private.x +yppasswd_private_svc.c: yppasswd_private.x yppasswd_private.h + rm -f ${.TARGET} + ${RPCGEN} -m ${.CURDIR}/yppasswd_private.x | \ + sed s/"static int _rpcsvcstate = _IDLE"/"extern int _rpcsvcstate"/g > ${.TARGET} + afterinstall: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/yppwupdate \ |