mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
77732bc551
- 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).
38 lines
946 B
Makefile
38 lines
946 B
Makefile
# $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 \
|
|
ypxfr_clnt.c yp_main.c yp_error.c yp_access.c
|
|
|
|
MAN8= ypserv.8
|
|
|
|
CFLAGS+= -I.
|
|
|
|
CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
|
|
|
|
RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/yp.x
|
|
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} -DYPSERV_ONLY -m ${RPCSRC} | \
|
|
sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
|
|
|
|
ypxfr_clnt.c: ${RPCSRC} yp.h
|
|
${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCSRC}
|
|
|
|
yp.h: ${RPCSRC}
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
|
|
|
|
afterinstall:
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
${.CURDIR}/Makefile.yp \
|
|
${DESTDIR}/var/yp/Makefile
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
${.CURDIR}/mknetid \
|
|
${DESTDIR}/usr/libexec/mknetid
|
|
|
|
.include <bsd.prog.mk>
|