summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-10-23 16:13:53 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-10-23 16:13:53 +0000
commitda7408fc6d271510240c3bb605c1734f77dba5af (patch)
treec738391c6e124935621eaaff242d48385daf691b /gnu/usr.sbin
parentd8ae52dc798b55a23044d44ead542222571f3874 (diff)
Notes
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/ypserv/Makefile.yp17
1 files changed, 15 insertions, 2 deletions
diff --git a/gnu/usr.sbin/ypserv/Makefile.yp b/gnu/usr.sbin/ypserv/Makefile.yp
index 70e8c48b5a6e..06fa8a28287b 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.9 1995/07/19 17:44:05 wpaul Exp $
+# $Id: Makefile.yp,v 1.7.4.1 1995/08/25 11:18:36 davidg 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
@@ -85,6 +85,7 @@ MASTER = $(YPDIR)/master.passwd
MASTER = $(MASTER_PASSWD)
.endif
YPSERVERS = $(YPDIR)/ypservers # List of all NIS servers for a domain
+PUBLICKEY = $(YPSRCDIR)/publickey
target:
@if [ ! -d $(DOMAIN) ]; then mkdir $(DOMAIN); fi; \
@@ -99,7 +100,7 @@ target:
#
all: master.passwd passwd hosts group networks protocols \
- rpc services servers netid # netgroup ethers bootparam
+ rpc services servers netid # publickey netgroup ethers bootparam
ethers: ethers.byname ethers.byaddr
bootparam: bootparams
@@ -113,6 +114,8 @@ group: group.byname group.bygid
netgrp: netgroup
netid: netid.byname
servers: ypservers
+publickey: publickey.byname
+
master.passwd: master.passwd.byname master.passwd.byuid
@@ -275,6 +278,16 @@ services.byname: $(SERVICES)
@if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
+publickey.byname: $(PUBLICKEY)
+ @echo "Updating $@..."
+ $(RM) $@
+ $(CAT) $(PUBLICKEY) | \
+ $(AWK) '$$1 !~ "#" { print $$1"\t"$$2 }' $^ \
+ | $(DBLOAD) -i $(PUBLICKEY) -o $(YPMAPDIR)/$@ - $@
+ @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
+ @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
+
+
$(PASSWD): $(MASTER)
@echo "Creating new $@ file from $(MASTER)..."
$(RM) $@