Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Nov 2012 11:54:25 -0600
From:      Mark Felder <feld@feld.me>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/173398: [PATCH] mail/roundcube-veximaccountadmin: fix permissions
Message-ID:  <E1TVQsT-0007sj-Eb@feld.me>
Resent-Message-ID: <201211051800.qA5I01Sx033724@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173398
>Category:       ports
>Synopsis:       [PATCH] mail/roundcube-veximaccountadmin: fix permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 05 18:00:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     feld
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD mwi1.coffeenet.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #5 r239731: Mon Aug 27 09:53:18 CDT
>Description:
utilize ${INSTALL_DATA} instead of ${PAX} to ensure file/directory permissions are sane

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- roundcube-veximaccountadmin-0.1_1.patch begins here ---
diff -ruN --exclude=CVS ../roundcube-veximaccountadmin.orig/Makefile ./Makefile
--- ../roundcube-veximaccountadmin.orig/Makefile	2012-11-03 08:34:05.000000000 -0500
+++ ./Makefile	2012-11-05 11:26:35.000000000 -0600
@@ -3,6 +3,7 @@
 
 PORTNAME=	veximaccountadmin
 PORTVERSION=	0.1
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://axel.sjostedt.no/misc/files/
 PKGNAMEPREFIX=	roundcube-
@@ -30,7 +31,11 @@
 		-e "s,^\.,@dirrm %%WWWDIR%%," >>${.CURDIR}/pkg-plist.tmp
 
 do-install:
+	@${ECHO} "Installing in ${WWWDIR}"
 	${MKDIR} ${WWWDIR}
-	cd ${WRKSRC} && ${PAX} -r -w . ${WWWDIR}
+	cd ${WRKSRC} && ${FIND} . \
+		-type d -exec ${MKDIR} ${WWWDIR}/{} \;  \
+		-o -type f \
+		-exec ${INSTALL_DATA} {} ${WWWDIR}/{} \;
 
 .include <bsd.port.mk>
--- roundcube-veximaccountadmin-0.1_1.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1TVQsT-0007sj-Eb>