From ssedov@mbsd.msk.ru  Fri Jul 28 07:19:49 2006
Return-Path: <ssedov@mbsd.msk.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5AB1B16A4E2
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Jul 2006 07:19:49 +0000 (UTC)
	(envelope-from ssedov@mbsd.msk.ru)
Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2688943D77
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Jul 2006 07:19:45 +0000 (GMT)
	(envelope-from ssedov@mbsd.msk.ru)
Received: from [217.118.83.1] (helo=fonon.realnet)
	by com1.ht-systems.ru with esmtpa (Exim 4.62)
	(envelope-from <ssedov@mbsd.msk.ru>)
	id 1G6Ml4-0002du-LO
	for FreeBSD-gnats-submit@freebsd.org; Fri, 28 Jul 2006 11:27:45 +0400
Received: by fonon.realnet (Postfix, from userid 1001)
	id 31B941209D; Fri, 28 Jul 2006 11:19:24 +0400 (MSD)
Message-Id: <20060728071924.31B941209D@fonon.realnet>
Date: Fri, 28 Jul 2006 11:19:24 +0400 (MSD)
From: Stanislav Sedov <ssedov@mbsd.msk.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] lang/linux-j: fix file permissions
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         100963
>Category:       ports
>Synopsis:       [PATCH] lang/linux-j: fix file permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    stefan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 28 07:20:17 GMT 2006
>Closed-Date:    Sun Aug 06 07:24:23 GMT 2006
>Last-Modified:  Sun Aug 06 07:24:23 GMT 2006
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Jun 18 20:51:36 MSD 2006
>Description:
 - Fix permissions of installed files.
 - Use PKGNAMEPREFIX

>How-To-Repeat:
>Fix:

--- linux-j-504b_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/linux-j/Makefile /var/tmp/linux-j/Makefile
--- /usr/ports/lang/linux-j/Makefile	Tue Jul  4 02:13:48 2006
+++ /var/tmp/linux-j/Makefile	Fri Jul 28 11:18:22 2006
@@ -5,12 +5,14 @@
 # $FreeBSD: ports/lang/linux-j/Makefile,v 1.15 2006/07/03 22:13:48 hq Exp $
 #
 
-PORTNAME=	linux-j
+PORTNAME=	j
 PORTVERSION=	504b
+PORTREVISION=	1
 CATEGORIES=	lang linux java
 MASTER_SITES=	http://www.jsoftware.com/download/
+PKGNAMEPREFIX=	linux-
 DISTNAME=	j${PORTVERSION}_linux32
-DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}
+DIST_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}/${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A general purpose programming language
@@ -42,6 +44,8 @@
 	cd ${WRKSRC}/j${PORTVERSION:S/b//g} && \
 		${TAR} -cf - system user profile.ijs j.jar | \
 			${TAR} -xf - -C ${PREFIX}/lib/j
+	@${FIND} ${PREFIX}/lib/j/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
+	@${FIND} ${PREFIX}/lib/j/ -type f -exec ${CHOWN} ${SHAREOWN} {} \;
 	${INSTALL_PROGRAM} ${WRKSRC}/j${PORTVERSION:S/b//g}/jconsole ${PREFIX}/lib/j/jconsole
 	${BRANDELF} -t Linux ${PREFIX}/lib/j/jconsole
 
--- linux-j-504b_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->stefan 
Responsible-Changed-By: stefan 
Responsible-Changed-When: Sun Jul 30 14:42:11 UTC 2006 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100963 
State-Changed-From-To: open->closed 
State-Changed-By: stefan 
State-Changed-When: Sun Aug 6 07:23:55 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100963 
>Unformatted:
