summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-12-23 21:35:35 +0000
committerwpaul <wpaul@FreeBSD.org>1995-12-23 21:35:35 +0000
commit3be99a55ffecd32ecfa45a807b33d45bf2a13178 (patch)
treece4c9de08d67a611ebd2b072d1809f830327a6b7 /usr.sbin/ypserv/Makefile
parent6ef4e82f0f2c507c27c3787fb8e0d899e2dbadca (diff)
downloadFreeBSD-src-3be99a55ffecd32ecfa45a807b33d45bf2a13178.zip
FreeBSD-src-3be99a55ffecd32ecfa45a807b33d45bf2a13178.tar.gz
A few small tweaks related to ypxfr:
- Add a ypxfr_callback() function that we can use to signal failure to yppush(8) in the event that we can't fork()/exec() ypxfr(8). yppush only checks the return status from YPPROC_XFR enough to determine that the RPC succeded: it relies on its callback service to figure out whether or not the transfer actually worked. - Give yp_dblookup.c its own debug variable (ypdb_debug) so that DB access debugging messages can be turned on or off independent of the program's global debug messages. - Have the Makefile rpcgen the ypushresp_xfr_1() client stub for us and nuke the unneeded rule for yp_xdr.c that I left in by mistake (the XDR filters live in libc now).
Diffstat (limited to 'usr.sbin/ypserv/Makefile')
-rw-r--r--usr.sbin/ypserv/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile
index 5249b46..6f0ca9b 100644
--- a/usr.sbin/ypserv/Makefile
+++ b/usr.sbin/ypserv/Makefile
@@ -1,27 +1,27 @@
-# $Id: Makefile,v 1.1.1.1 1995/12/16 20:54:17 wpaul Exp $
+# $Id: Makefile,v 1.2 1995/12/16 23:01:04 bde Exp $
PROG= ypserv
SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \
- yp_main.c yp_error.c yp_access.c
+ ypxfr_clnt.c yp_main.c yp_error.c yp_access.c
MAN8= ypserv.8
CFLAGS+= -I.
-CLEANFILES= yp_svc.c yp.h
+CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/yp.x
-RPCGEN= rpcgen -I -C -DYPSERV_ONLY
+RPCGEN= rpcgen -I -C
# We need to remove the 'static' keyword from _rpcsvcstate so that
# yp_main.c can see it.
yp_svc.c: ${RPCSRC} yp.h
rm -f ${.TARGET}
- ${RPCGEN} -m ${RPCSRC} | \
+ ${RPCGEN} -DYPSERV_ONLY -m ${RPCSRC} | \
sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
-yp_xdr.c: ${RPCSRC} yp.h
- ${RPCGEN} -c -o ${.TARGET} ${RPCSRC}
+ypxfr_clnt.c: ${RPCSRC} yp.h
+ ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCSRC}
yp.h: ${RPCSRC}
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
OpenPOWER on IntegriCloud