Subject: pkg/15206: net/stripes installed to /usr/pkg
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 01/11/2002 22:57:31
>Number:         15206
>Category:       pkg
>Synopsis:       net/stripes installed into /usr/pkg even if LOCALBASE is not /usr/pkg.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 11 05:59:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        -current 1.5Z
>Organization:
	
>Environment:
	<machine, os, target, libraries (multiple lines)>
System: NetBSD river.my.domain 1.5Z NetBSD 1.5Z (River) #0: Wed Dec 19 18:52:25 JST 2001     root@river.my.domain:/usr/src/sys/arch/i386/compile/River i386
Architecture: i386
Machine: i386
>Description:
net/stripes installed under /usr/pkg, even if LOCALBASE is /usr/river.

>How-To-Repeat:
In /etc/mk.conf, set LOCALBASE=/usr/river and

# cd /usr/pkgsrc/net/stripes
# make install
# ls /usr/pkg/libexec/cgi-bin
lg

>Fix:
diff -Nur stripes.orig/Makefile stripes/Makefile
--- stripes.orig/Makefile	Fri Jan 11 22:34:35 2002
+++ stripes/Makefile	Fri Jan 11 22:37:30 2002
@@ -15,7 +15,7 @@
 USE_PERL5=		# defined
 
 PKG_SYSCONFSUBDIR?=	httpd
-ALL_TARGET=		all DEST=${PREFIX} PERL=${PERL5} \
+MAKE_FLAGS+=		DEST=${PREFIX} PERL=${PERL5} \
 			CONFIGFILE=${PKG_SYSCONFDIR}/lg.conf
 
 .include "../../mk/bsd.pkg.mk"
diff -Nur stripes.orig/distinfo stripes/distinfo
--- stripes.orig/distinfo	Fri Jan 11 22:34:35 2002
+++ stripes/distinfo	Fri Jan 11 22:37:30 2002
@@ -2,3 +2,4 @@
 
 SHA1 (stripes-2.1.tar.gz) = 1910d40e975b98b2e815cf7a1c228777c5a0b816
 Size (stripes-2.1.tar.gz) = 6227 bytes
+SHA1 (patch-aa) = 8b031a8e0b967d12786735a2d7c276911866436a
diff -Nur stripes.orig/patches/patch-aa stripes/patches/patch-aa
--- stripes.orig/patches/patch-aa	Thu Jan  1 09:00:00 1970
+++ stripes/patches/patch-aa	Fri Jan 11 22:37:30 2002
@@ -0,0 +1,9 @@
+$NetBSD$
+--- lg.pl.orig	Fri Jan 11 22:16:36 2002
++++ lg.pl	Fri Jan 11 22:19:25 2002
+@@ -1,4 +1,4 @@
+-#!/usr/pkg/bin/perl
++#!@PERL@
+ #
+ # lg.pl,v 1.2 2001/05/29 17:27:24 kim Exp
+ #

>Release-Note:
>Audit-Trail:
>Unformatted: