summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-12-16 20:54:17 +0000
committerwpaul <wpaul@FreeBSD.org>1995-12-16 20:54:17 +0000
commit6c6bb5ba6adeb2ff4ad3daae731ae6fd78bdaa36 (patch)
treeb482c0df4aeed97dbf67034a03c60d54726b3959 /usr.sbin/ypserv/Makefile
parent5cb69655f98eb01c22037b87a84bb2bd50a7b0fb (diff)
parentf177e119995c5aae346675c30599d00d3286440c (diff)
downloadFreeBSD-src-6c6bb5ba6adeb2ff4ad3daae731ae6fd78bdaa36.zip
FreeBSD-src-6c6bb5ba6adeb2ff4ad3daae731ae6fd78bdaa36.tar.gz
This commit was generated by cvs2svn to compensate for changes in r12891,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'usr.sbin/ypserv/Makefile')
-rw-r--r--usr.sbin/ypserv/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile
new file mode 100644
index 0000000..e3fe74a
--- /dev/null
+++ b/usr.sbin/ypserv/Makefile
@@ -0,0 +1,35 @@
+# $Id: Makefile,v 1.6 1995/12/16 04:03:02 wpaul 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
+
+MAN8= ypserv.8
+
+CLEANFILES= yp_svc.c yp.h
+
+RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/yp.x
+RPCGEN= rpcgen -I -C -DYPSERV_ONLY
+
+# 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} | \
+ sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
+
+yp_xdr.c: ${RPCSRC} yp.h
+ ${RPCGEN} -c -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>
OpenPOWER on IntegriCloud