Subject: Installing files needed by instmp.Qq2aav -- and repeated comments
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/11/2005 21:23:17
I noticed a few days ago and again today that +INSTALL messages are saying
the temporary extraction directory name for the package name, for example:

===========================================================================
Installing files needed by instmp.Qq2aav:

        /etc/rc.d/kdm already exists.

or

===========================================================================
Installing files needed by instmp.Qq2aav:

        /etc/kdm/kdmrc already exists.


So I look at my created-today /var/db/pkg/kdebase-3.3.2nb3/+INSTALL and it
has:


${ECHO} "Installing files needed by ${PKGNAME}:

And before that it checks ACTION is not VIEW-REMOVE then:

: ${PKGNAME=${PKG_METADATA_DIR##*/}}

I belive the colon means do nothing. I don't why this line is there.

And at the top it sets:
PKGNAME=$1


Then also while looking at same file I see the same comments and
definitions repeated. It is 1538 lines long.

$ grep NetBSD /var/db/pkg/kdebase-3.3.2nb3/+INSTALL
# $NetBSD: header,v 1.32 2005/02/02 10:33:01 jlam Exp $
# $NetBSD: usergroup,v 1.7 2005/01/31 21:41:06 jlam Exp $
# $NetBSD: perms,v 1.1 2005/02/02 10:33:01 jlam Exp $
# $NetBSD: files,v 1.1 2005/02/02 10:33:01 jlam Exp $
# $NetBSD: files,v 1.1 2005/02/02 10:33:01 jlam Exp $
# $NetBSD: dirs,v 1.5 2005/01/31 21:41:06 jlam Exp $
# $NetBSD: install,v 1.36 2005/02/02 10:33:01 jlam Exp $
# $NetBSD: install-post,v 1.1 2003/11/23 07:14:43 jlam Exp $
# $NetBSD: footer,v 1.1 2001/11/19 16:18:44 jlam Exp $

(No ident here.)

And it sets the same variables several times.

$ egrep '^[A-Z]+=' /var/db/pkg/kdebase-3.3.2nb3/+INSTALL | sort | uniq -c
| sort -n | tail
      5 GREP="/usr/bin/grep"
      5 MKDIR="/bin/mkdir -p"
      5 RM="/bin/rm"
      5 RMDIR="/bin/rmdir"
      5 SELF=$0
      6 CHGRP="/bin/chgrp"
      6 ECHO="echo"
      6 SED="/bin/sed"
      6 SORT="/usr/bin/sort"
      6 TEST="test"

And it has repeated comments, etc.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/