Date: Thu, 5 Dec 1996 09:45:41 +0100 (MET) From: Andre Albsmeier <Andre.Albsmeier@mchp.siemens.de> To: freebsd-current@freebsd.org Subject: Problems making NIS database for /etc/services Message-ID: <199612050845.JAA05064@server.us.tld>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612050845.JAA05064>
