summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/Makefile.yp
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-06-25 20:28:07 +0000
committerwpaul <wpaul@FreeBSD.org>1996-06-25 20:28:07 +0000
commit010c2800ac465122fd044b00182f58244ecaa396 (patch)
tree00db076867717b30e2de7f4459457e04d764e7d3 /usr.sbin/ypserv/Makefile.yp
parentab0aedf77d5aa3efcf91b13779ffadf455caeeb9 (diff)
downloadFreeBSD-src-010c2800ac465122fd044b00182f58244ecaa396.zip
FreeBSD-src-010c2800ac465122fd044b00182f58244ecaa396.tar.gz
Toss old mknetid script into the attic.
Adjust things slightly to support the new mknetid program.
Diffstat (limited to 'usr.sbin/ypserv/Makefile.yp')
-rw-r--r--usr.sbin/ypserv/Makefile.yp7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/Makefile.yp b/usr.sbin/ypserv/Makefile.yp
index b8f474c..8152c76 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.5 1996/06/03 16:24:32 wpaul Exp $
+# $Id: Makefile.yp,v 1.6 1996/06/05 02:01:27 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
@@ -102,6 +102,7 @@ MASTER = $(MASTER_PASSWD)
.endif
YPSERVERS = $(YPDIR)/ypservers # List of all NIS servers for a domain
PUBLICKEY = $(YPSRCDIR)/publickey
+NETID = $(YPSRCDIR)/netid
target:
@$(RM) $(NFILE)
@@ -457,8 +458,8 @@ group.bygid: $(GROUP)
netid.byname: $(GROUP) $(PASSWD)
@echo "Updating $@..."
@echo $@.$$$$ > $(NFILE)
- @$(MKNETID) $(PASSWD) $(GROUP) `basename \`pwd\`` \
- | $(DBLOAD) -o $(YPMAPDIR)/$@ - $(TMP)
+ @$(MKNETID) -q -p $(PASSWD) -g $(GROUP) -h $(HOSTS) -n $(NETID) \
+ -d $(DOMAIN) | $(DBLOAD) -o $(YPMAPDIR)/$@ - $(TMP)
@$(MV) $(TMP) $@
@$(DBLOAD) -c
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
OpenPOWER on IntegriCloud