summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1997-11-10 22:17:13 +0000
committerwpaul <wpaul@FreeBSD.org>1997-11-10 22:17:13 +0000
commit7f52bb826f488407234aa7f440d13c336732afce (patch)
tree9a767fef0afd23d9b18b35a095196562ece1f414 /usr.sbin/ypserv/Makefile
parent898263b85d0430ad72f02e1dc2ad28323c1f31f4 (diff)
downloadFreeBSD-src-7f52bb826f488407234aa7f440d13c336732afce.zip
FreeBSD-src-7f52bb826f488407234aa7f440d13c336732afce.tar.gz
Add a ypinit script and man page (script lifted from OpenBSD and haqued
to work on FreeBSD, man page written by me.) Also change Makefile.yp a little to be more tolerane in the face of missing source files. Print a message if we can't find /var/yp/master.passwd telling the user what to do to fix things.
Diffstat (limited to 'usr.sbin/ypserv/Makefile')
-rw-r--r--usr.sbin/ypserv/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile
index dd1a4ff..76fe709 100644
--- a/usr.sbin/ypserv/Makefile
+++ b/usr.sbin/ypserv/Makefile
@@ -1,10 +1,10 @@
-# $Id$
+# $Id: Makefile,v 1.3 1997/11/10 21:22:17 wpaul 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 yp_svc_udp.c
-MAN8= ypserv.8
+MAN8= ypserv.8 ypinit.8
CFLAGS+= -I. -DDB_CACHE
@@ -32,6 +32,8 @@ afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/Makefile.yp \
${DESTDIR}/var/yp/Makefile.dist
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
+ ${.CURDIR}/ypinit.sh ${BINDIR}/ypinit
@if [ ! -f ${DESTDIR}/var/yp/Makefile.dist ]; then \
ln -s ${DESTDIR}/var/yp/Makefile.dist \
${DESTDIR}/var/yp/Makefile; fi
OpenPOWER on IntegriCloud