Subject: pkg/5555: amanda-2.4.0 pre-install target does not invoke addnerd correctly (group not specified)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@mail.weird.com>
List: netbsd-bugs
Date: 06/08/1998 00:57:30
>Number:         5555
>Category:       pkg
>Synopsis:       amanda-2.4.0 pre-install target does not invoke addnerd correctly (group not specified)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun  7 22:05:01 1998
>Last-Modified:
>Originator:     Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release:        sup/current/when.pkgsrc=897219658
>Environment:

System: NetBSD most 1.3.1 NetBSD 1.3.1 (MOST) #0: Mon May 25 01:21:22 EDT 1998 woods@most:/usr/src-1.3.1/sys/arch/sparc/compile/MOST sparc

>Description:

	The amanda-2.4.0 pkgsrc initial install fails because the
	pre-install target, which invokes addnerd, does not specify the
	group-id to use for the new account.  If that group-id does not
	already exist then the first "chgrp backup ..." bombs out.

>How-To-Repeat:

	try to 'make install' in pkgsrc/misc/amanda on a virgin system

>Fix:

Index: Makefile
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/misc/amanda/Makefile,v
retrieving revision 1.1.1.4
diff -c -r1.1.1.4 Makefile
*** Makefile	1998/06/07 15:26:21	1.1.1.4
--- Makefile	1998/06/08 04:48:10
***************
*** 14,22 ****
  RUN_DEPENDS+=		gtar:../../archivers/gtar
  
  AMANDA_USER?=		backup
  
  GNU_CONFIGURE=		yes
! CONFIGURE_ARGS+=	--with-user=${AMANDA_USER} --with-group=${AMANDA_USER}
  CONFIGURE_ARGS+=	--with-mmap
  MAKE_ENV+=		INSTALL_SCRIPT="${INSTALL_SCRIPT}"
  CONFIGURE_ENV+=		INSTALL_SCRIPT="${INSTALL_SCRIPT}"
--- 14,23 ----
  RUN_DEPENDS+=		gtar:../../archivers/gtar
  
  AMANDA_USER?=		backup
+ AMANDA_GROUP?=		backup
  
  GNU_CONFIGURE=		yes
! CONFIGURE_ARGS+=	--with-user=${AMANDA_USER} --with-group=${AMANDA_GROUP}
  CONFIGURE_ARGS+=	--with-mmap
  MAKE_ENV+=		INSTALL_SCRIPT="${INSTALL_SCRIPT}"
  CONFIGURE_ENV+=		INSTALL_SCRIPT="${INSTALL_SCRIPT}"
***************
*** 27,33 ****
  			amrmtape.8 amverify.8
  
  pre-install:
! 	@${SETENV} ${MAKE_ENV} addnerd ${AMANDA_USER}
  
  post-install:
  	${LDCONFIG} || ${TRUE}
--- 28,34 ----
  			amrmtape.8 amverify.8
  
  pre-install:
! 	@${SETENV} ${MAKE_ENV} addnerd -g ${AMANDA_GROUP} ${AMANDA_USER}
  
  post-install:
  	${LDCONFIG} || ${TRUE}
>Audit-Trail:
>Unformatted: