summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-10-23 16:13:53 +0000
committerwpaul <wpaul@FreeBSD.org>1995-10-23 16:13:53 +0000
commiteee514a27805c99dc02b178eb740d030b1d58230 (patch)
treec738391c6e124935621eaaff242d48385daf691b /gnu
parent4f4c04df0f3dc417142f0256f38209ebb6ad701a (diff)
downloadFreeBSD-src-eee514a27805c99dc02b178eb740d030b1d58230.zip
FreeBSD-src-eee514a27805c99dc02b178eb740d030b1d58230.tar.gz
Add support for publickey.byname map (turned off by default since
we haven't imported the Secure RPC stuff yet).
Diffstat (limited to 'gnu')
-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 70e8c48..06fa8a2 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) $@
OpenPOWER on IntegriCloud