Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2004 22:34:40 +0100
From:      "Franz Klammer" <klammer@webonaut.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/60908: mail/postfixadmin - use INSTALL_DATA instead of CP 
Message-ID:  <1073252070@ds9.webonaut.com>
Resent-Message-ID: <200401042140.i04LeCo3034615@freefall.freebsd.org>

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

>Number:         60908
>Category:       ports
>Synopsis:       mail/postfixadmin - use INSTALL_DATA instead of CP
>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:   Sun Jan 04 13:40:11 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Franz Klammer
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:


System: FreeBSD ds9.webonaut.com 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Mon Dec 29 15:29:56 CET 2003     root@ds9.webonaut.com:/usr/obj/usr/src/sys/DS9 i386


>Description:


use ${INSTALL_DATA} instead of ${CP} to ensure that the correct permissions are set.



>How-To-Repeat:





>Fix:


--- Makefile.diff begins here ---
--- Makefile.orig	Sun Jan  4 22:21:11 2004
+++ Makefile	Sun Jan  4 22:28:38 2004
@@ -32,7 +32,12 @@
 		${FIND} ${WRKSRC} -name '*.orig' -delete
 
 do-install:
-		@${MKDIR} ${PREFIX}/www/postfixadmin
-		@${CP} -r ${WRKSRC}/* ${PREFIX}/www/postfixadmin/
+		@${MKDIR} ${PREFIX}/www/postfixadmin/admin
+		@${INSTALL_DATA} ${WRKSRC}/*.TXT ${PREFIX}/www/postfixadmin
+		@${INSTALL_DATA} ${WRKSRC}/*.php ${PREFIX}/www/postfixadmin
+		@${INSTALL_DATA} ${WRKSRC}/*.sample ${PREFIX}/www/postfixadmin
+		@${INSTALL_DATA} ${WRKSRC}/*.css ${PREFIX}/www/postfixadmin
+		@${INSTALL_DATA} ${WRKSRC}/admin/*.php ${PREFIX}/www/postfixadmin/admin
+		@${INSTALL_DATA} ${WRKSRC}/admin/.ht* ${PREFIX}/www/postfixadmin/admin
 
 .include <bsd.port.mk>
--- Makefile.diff ends here ---



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



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