summaryrefslogtreecommitdiffstats
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-08-11 13:55:42 +0000
committerwpaul <wpaul@FreeBSD.org>1995-08-11 13:55:42 +0000
commitdebc540217d3ca62adbcac5c33b127f4a9126158 (patch)
treed35e116c5e1d72e65a61638ad75d324061a59f9b /gnu/usr.sbin
parent2a4e199e04254e14c1b9f01158f15255a7d42c34 (diff)
downloadFreeBSD-src-debc540217d3ca62adbcac5c33b127f4a9126158.zip
FreeBSD-src-debc540217d3ca62adbcac5c33b127f4a9126158.tar.gz
Fix bug pointed out by user on c.u.b.f.m: commenting out NOPUSH=true
for master/slave configuration doesn't work because DOMAIN isn't correctly defined.
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/ypserv/Makefile.yp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.sbin/ypserv/Makefile.yp b/gnu/usr.sbin/ypserv/Makefile.yp
index 4bcf95a..70e8c48 100644
--- a/gnu/usr.sbin/ypserv/Makefile.yp
+++ b/gnu/usr.sbin/ypserv/Makefile.yp
@@ -1,7 +1,7 @@
#
# Makefile for the NIS databases
#
-# $Id: Makefile.yp,v 1.8 1995/06/18 16:08:15 wpaul Exp $
+# $Id: Makefile.yp,v 1.9 1995/07/19 17:44:05 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,11 +42,11 @@ CAT = @$(RCAT)
DBLOAD = /usr/sbin/yp_mkdb -m `hostname`
MKNETID = /usr/libexec/mknetid
YPPUSH = /usr/bin/yppush
-DOMAINNAME = `/bin/domainname`
+DOMAIN = `/bin/domainname`
YPSRCDIR = /etc
YPDIR = /var/yp
-YPMAPDIR = $(YPDIR)/$(DOMAINNAME)
+YPMAPDIR = $(YPDIR)/$(DOMAIN)
# These are the files from which the NIS databases are built. You may edit
# these to taste in the event that you wish to keep your NIS source files
@@ -87,8 +87,8 @@ MASTER = $(MASTER_PASSWD)
YPSERVERS = $(YPDIR)/ypservers # List of all NIS servers for a domain
target:
- @if [ ! -d $(DOMAINNAME) ]; then mkdir $(DOMAINNAME); fi; \
- cd $(DOMAINNAME) ; echo "NIS Map update started on `date`" ; \
+ @if [ ! -d $(DOMAIN) ]; then mkdir $(DOMAIN); fi; \
+ cd $(DOMAIN) ; echo "NIS Map update started on `date`" ; \
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