Subject: pkg/24325: x11/xworld ignores BINOWN and BINGRP
To: None <gnats-bugs@gnats.NetBSD.org>
From: Min Sik Kim <minskim@bawi.org>
List: netbsd-bugs
Date: 02/05/2004 15:56:09
>Number:         24325
>Category:       pkg
>Synopsis:       x11/xworld ignores BINOWN and BINGRP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 05 21:57:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Min Sik Kim
>Release:        NetBSD 1.6ZH
>Organization:
>Environment:
>Description:
x11/xworld sets the owner and group of the command to "bin".

>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/xworld/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	2002/08/25 21:53:04	1.6
+++ Makefile	2004/02/05 21:54:34
@@ -2,6 +2,7 @@
 #
 
 DISTNAME=	xworld-2.0
+PKGREVISION=	1
 CATEGORIES=	x11
 MASTER_SITES=	ftp://gutemine.geo.uni-koeln.de/pub/xworld/ \
 		ftp://ftp.Uni-Koeln.DE/misc/
@@ -15,5 +16,11 @@
 
 CONFIGURE_ENV+=	PREFIX="${PREFIX}"
 CONFIGURE_ENV+=	LDLIBS="-lm ${LDFLAGS} -lX11"
+
+SUBST_CLASSES+=		install
+SUBST_MESSAGE.install=	"Fixing install options."
+SUBST_STAGE.install=	post-patch
+SUBST_FILES.install=	Makefile.in
+SUBST_SED.install=	-e 's,-g bin -o bin,-g ${BINGRP} -o ${BINOWN},g'
 
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted:
 Environment:
 System: NetBSD sulley.infnis.com 1.6ZH NetBSD 1.6ZH (SULLEY) #3: Fri Jan 16 16:57:45 CST 2004 root@sulley.infnis.com:/usr/obj/sys/arch/i386/compile/SULLEY i386
 Architecture: i386
 Machine: i386