From owner-freebsd-current Thu Dec 5 00:45:48 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.8.3/8.7.3) id AAA22071 for current-outgoing; Thu, 5 Dec 1996 00:45:48 -0800 (PST) Received: from david.siemens.de (david.siemens.de [146.254.1.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA22066 for ; Thu, 5 Dec 1996 00:45:45 -0800 (PST) Received: from salomon.mchp.siemens.de (salomon.mchp.siemens.de [139.23.33.13]) by david.siemens.de (8.8.3/8.8.0) with ESMTP id JAA11131 for ; Thu, 5 Dec 1996 09:42:00 +0100 (MET) Received: from curry.zfe.siemens.de (root@curry.zfe.siemens.de [146.180.31.23]) by salomon.mchp.siemens.de (8.8.2/8.8.0) with ESMTP id JAA00612 for ; Thu, 5 Dec 1996 09:45:43 +0100 (MET) Received: from server.us.tld (server.us.tld [192.168.16.33]) by curry.zfe.siemens.de (8.8.3/8.8.3) with ESMTP id JAA29200 for ; Thu, 5 Dec 1996 09:45:41 +0100 (MET) Received: (from andre@localhost) by server.us.tld (8.8.3/8.8.3) id JAA05064 for freebsd-current@freebsd.org; Thu, 5 Dec 1996 09:45:41 +0100 (MET) From: Andre Albsmeier Message-Id: <199612050845.JAA05064@server.us.tld> Subject: Problems making NIS database for /etc/services To: freebsd-current@freebsd.org Date: Thu, 5 Dec 1996 09:45:41 +0100 (MET) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi * when making the NIS maps on a 2.2-ALPHA master server, make complains several times about /etc/services. We find things like the following: compressnet 2/tcp #Management Utility compressnet 2/udp #Management Utility compressnet 3/tcp #Compression Process compressnet 3/udp #Compression Process In this case, what ist done with the duplikate keys: Are they totally ignored or is the second appearance ignored? Also, for supporting netatalk I added the following entries to /etc/services: rtmp 1/ddp # Routing Table Maintenance nbp 2/ddp # Name Binding Protocol echo 4/ddp # AppleTalk Echo Protocol zip 6/ddp # Zone Information Protocol The rule in Makefile.dist only watches tcp and udp by default. Is it correct to change it as shown below (I am not very familar with awk :-))? *** Makefile.dist Thu Dec 5 08:38:18 1996 --- Makefile Thu Dec 5 08:51:05 1996 *************** *** 382,388 **** $(AWK) \ '$$1 !~ "#" { for (n=1; n<=NF && $$n !~ "#"; n++) { \ if (index($$2,"udp")) { printf("%s/udp",$$n) } \ ! else { printf("%s/tcp",$$n) }; print "\t"$$0 ; \ if (n == 1) n = 2; \ } ; print $$2"\t"$$0 ; \ }' $^ | $(DBLOAD) -i $(SERVICES) -o $(YPMAPDIR)/$@ - $(TMP) --- 382,391 ---- $(AWK) \ '$$1 !~ "#" { for (n=1; n<=NF && $$n !~ "#"; n++) { \ if (index($$2,"udp")) { printf("%s/udp",$$n) } \ ! else { \ ! if (index($$2,"ddp")) { printf("%s/ddp",$$n) } \ ! else { printf("%s/tcp",$$n) }; }; \ ! print "\t"$$0 ; \ if (n == 1) n = 2; \ } ; print $$2"\t"$$0 ; \ }' $^ | $(DBLOAD) -i $(SERVICES) -o $(YPMAPDIR)/$@ - $(TMP)