ports/89043: [patch] devel/py-psyco install with wrong permissions
    Mario Sergio Fujikawa Ferreira 
    lioux at FreeBSD.org
       
    Tue Nov 15 03:10:19 UTC 2005
    
    
  
>Number:         89043
>Category:       ports
>Synopsis:       [patch] devel/py-psyco install with wrong permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 03:10:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD exxodus.fedaykin.here 5.4-STABLE FreeBSD 5.4-STABLE #13: Wed Nov 2 10:58:23 BRST 2005 lioux at exxodus:/usr/src/sys/i386/compile/LIOUX i386
>Description:
	Depending on your umask(1) setting, several files
will not have the proper permissions for either group or other.
Your mileage may vary though.
	
>How-To-Repeat:
	Install port with umask(1) 077, several files under 
/usr/local/lib/python2.4/site-packages/psyco/
You will notice that some files will have different permissions
than what would be expected.
>Fix:
	Force post-install chmod fix.
--- patch-Makefile begins here ---
--- Makefile.orig	Tue Nov 15 01:00:19 2005
+++ Makefile	Tue Nov 15 01:01:10 2005
@@ -7,6 +7,7 @@
 
 PORTNAME=	psyco
 PORTVERSION=	1.5
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	psyco
@@ -22,5 +23,10 @@
 USE_PYDISTUTILS=yes
 
 WRKSRC=		${WRKDIR}/psyco-${PORTVERSION}
+
+post-install:
+# permission safeness
+	@${CHMOD} -R ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*
+	@${CHMOD} -R a+X ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*
 
 .include <bsd.port.mk>
--- patch-Makefile ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
    
    
More information about the freebsd-ports-bugs
mailing list