Subject: pkg/18718: pre-configuration steps should be done by a pre-configure target
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 10/19/2002 15:40:09
>Number:         18718
>Category:       pkg
>Synopsis:       pre-configuration steps should be done by a pre-configure target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 19 12:41:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        pkgsrc-current 2002/10/18
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD

>Description:

	pre-configuration steps should be done by a pre-configure target

	this example is for graphics/netpbm

>How-To-Repeat:

>Fix:

Index: graphics/netpbm/Makefile
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/graphics/netpbm/Makefile,v
retrieving revision 1.65
diff -c -r1.65 Makefile
*** graphics/netpbm/Makefile	25 Aug 2002 18:39:18 -0000	1.65
--- graphics/netpbm/Makefile	13 Sep 2002 19:11:05 -0000
***************
*** 32,38 ****
  MAKE_ENV+=	NETWORKLD=""
  .endif
  
! post-patch:
  	${CP} ${WRKSRC}/Makefile.config.in ${WRKSRC}/Makefile.config
  
  post-install:
--- 32,38 ----
  MAKE_ENV+=	NETWORKLD=""
  .endif
  
! pre-configure:
  	${CP} ${WRKSRC}/Makefile.config.in ${WRKSRC}/Makefile.config
  
  post-install:
>Release-Note:
>Audit-Trail:
>Unformatted: