summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/Makefile.yp
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-02-04 05:39:35 +0000
committerwpaul <wpaul@FreeBSD.org>1996-02-04 05:39:35 +0000
commitcd85caa5378f4e4a5a64efff965d2104566a20cb (patch)
tree42b0fca5ed8a9c6286103014143ff602ada497b5 /usr.sbin/ypserv/Makefile.yp
parent72273a5aae283c4ed3ec31fcc00cb228bdc1275c (diff)
downloadFreeBSD-src-cd85caa5378f4e4a5a64efff965d2104566a20cb.zip
FreeBSD-src-cd85caa5378f4e4a5a64efff965d2104566a20cb.tar.gz
Makefile.yp:
- Improve support for multiple domains. (In preparation for new rpc.yppasswdd.) yp_dblookup.c: - Improve error reporting: be more selective as to what error code we return when a (dbp->get) fails.
Diffstat (limited to 'usr.sbin/ypserv/Makefile.yp')
-rw-r--r--usr.sbin/ypserv/Makefile.yp8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/ypserv/Makefile.yp b/usr.sbin/ypserv/Makefile.yp
index a7a50db..198ffb7 100644
--- a/usr.sbin/ypserv/Makefile.yp
+++ b/usr.sbin/ypserv/Makefile.yp
@@ -1,7 +1,7 @@
#
# Makefile for the NIS databases
#
-# $Id: Makefile.yp,v 1.1.1.1 1995/12/16 20:54:17 wpaul Exp $
+# $Id: Makefile.yp,v 1.2 1996/01/12 07:07:18 wpaul Exp $
#
# This Makefile should only be run on the NIS master server of a domain.
# All updated maps will be pushed to all NIS slave servers listed in the
@@ -42,7 +42,11 @@ CAT = @$(RCAT)
DBLOAD = /usr/sbin/yp_mkdb -m `hostname`
MKNETID = /usr/libexec/mknetid
YPPUSH = /usr/sbin/yppush
+.if !defined(UPDATE_DOMAIN)
DOMAIN = `/bin/domainname`
+.else
+DOMAIN = $(UPDATE_DOMAIN)
+.endif
REVNETGROUP = /usr/libexec/revnetgroup
YPSRCDIR = /etc
@@ -90,7 +94,7 @@ PUBLICKEY = $(YPSRCDIR)/publickey
target:
@if [ ! -d $(DOMAIN) ]; then mkdir $(DOMAIN); fi; \
- cd $(DOMAIN) ; echo "NIS Map update started on `date`" ; \
+ cd $(DOMAIN) ; echo "NIS Map update started on `date` for domain $(DOMAIN)" ; \
make -f ../Makefile all; echo "NIS Map update completed."
# If you don't want some of these maps built, feel free to comment
OpenPOWER on IntegriCloud