Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 1996 10:26:08 +0100 (MET)
From:      Andre.Albsmeier@curry.zfe.siemens.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2206: NIS Makefile can't manage appletalk entries
Message-ID:  <199612130926.KAA15767@server.us.tld>
Resent-Message-ID: <199612130930.BAA04971@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2206
>Category:       bin
>Synopsis:       NIS Makefile can't manage appletalk entries
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 13 01:30:00 PST 1996
>Last-Modified:
>Originator:     Andre Albsmeier
>Organization:
>Release:        FreeBSD 2.2-RELEASE i386
>Environment:

	FreeBSD-2.2, several machines

>Description:

When using netatalk, there are 4 lines that have to be added 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

However, when using the same machine as NIS master, building the NIS maps
fails due to the fact that the Makefile knows nothing about ddp.

>How-To-Repeat:

Add the upper 4 lines to /etc/services (or the NIS master file) and build
the NIS maps.

>Fix:
	
My quick and dirty hack is (I am no awk expert:-)):

*** 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)
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612130926.KAA15767>