head	1.2;
access;
symbols
	RELENG_2_1_7_RELEASE:1.1
	RELENG_2_1_6_1_RELEASE:1.1
	RELENG_2_1_6_RELEASE:1.1
	RELENG_2_1_5_RELEASE:1.1
	RELENG_2_1_0_RELEASE:1.1
	RELENG_2_1_0:1.1.0.4
	RELENG_2_1_0_BP:1.1
	RELENG_2_0_5_RELEASE:1.1
	RELENG_2_0_5:1.1.0.2
	RELENG_2_0_5_BP:1.1
	RELENG_2_0_5_ALPHA:1.1;
locks; strict;
comment	@# @;


1.2
date	95.12.30.18.44.21;	author peter;	state dead;
branches;
next	1.1;

1.1
date	95.02.01.02.00.03;	author wpaul;	state Exp;
branches;
next	;


desc
@@


1.2
log
@recording cvs-1.6 file death
@
text
@#!/bin/sh
#
# Produce netid.byname map file
#
# Written by O.Kirch, 1994.
#
PASSWD=$1
GROUP=$2
DOMAIN=$3

tempsed=/tmp/pass.$$

    # First, get all login/uid info from passwd file
    grep -v '^+:' $PASSWD |
    awk -F: '{ printf "s/^%s:/%s/\n", $1, $3; }' >$tempsed
    # next one is a giant pipe:
    grep -v '^+:' $GROUP |
    grep -v ':[ 	]*$' |
    sed 's/^[^:]*:[^:]*:\([0-9]*\):\(.*\)/\1,\2/' |
    	awk -F, '{ for (n=2; n<=NF; n++) 
    			if ($n != "") print $n":\t"$1;
    		 }' | 
    	sed -f $tempsed | sort | grep -v ':' | 
    	awk  'BEGIN { uid=-1; }
		    { if (uid == $1) {
		    	groups=groups","$2;
		      } else {
		        if (uid != -1)
		          print uid":"groups;
		        uid=$1; groups=$2;
		      }
		    }
	      END   { if (uid != -1) printf("%s:%s\n", uid, groups); }' |
	sed "s/\(.*\):/unix.\1@@$DOMAIN	&/"
    	rm -f $tempsed
    	exit 0
@


1.1
log
@Added Makefile.yp and mknetid, which are needed to rebuild NIS maps.
mknetid is a script. Both are installed by an afterinstall which as
been added to the main Makefile.
@
text
@@
