ports/97330: [PATCH] japanese/phpgroupware: install destination is wrong
Koji Yokota
yokota at res.otaru-uc.ac.jp
Tue May 16 03:30:12 UTC 2006
>Number: 97330
>Category: ports
>Synopsis: [PATCH] japanese/phpgroupware: install destination is wrong
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 16 03:30:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Koji Yokota
>Release: FreeBSD 6.1-STABLE amd64
>Organization:
Otaru University of Commerce
>Environment:
System: FreeBSD hoge.otaru-uc.ac.jp 6.1-STABLE FreeBSD 6.1-STABLE #0: Thu May 11 02:25:24 JST 2006 hoge at hoge.otaru-uc.ac.jp:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Files are mistakenly installed in a wrong directory,
/usr/local/www/data/phpgroupware/phpgroupware.
In addition, the directory /usr/local/www/data/....
is not appropriate when www/apache22 is used.
In that case, the directory should be under
/usr/local/www/apache22/data/....
>How-To-Repeat:
any time
>Fix:
--- diff begins here ---
--- Makefile.orig Mon May 15 23:31:56 2006
+++ Makefile Tue May 16 00:32:34 2006
@@ -18,13 +18,23 @@
NO_BUILD= yes
WRKSRC= ${WRKDIR}/phpgroupware
-INSTALLDIR= ${PREFIX}/www/data/phpgroupware
+
+## Define WITH_APACHE22 if the installed version of Apache is 2.2
+.if defined(WITH_APACHE22)
+PHPDATA= www/apache22/data/phpgroupware
+PLIST_SUB+= PHPDATA="www/apache22/data/phpgroupware"
+.else
+PHPDATA= www/data/phpgroupware
+PLIST_SUB+= PHPDATA="www/data/phpgroupware"
+.endif
+
+INSTALLDIR?= ${PREFIX}/${PHPDATA}
USE_PHP= mbstring
USE_BZIP2= yes
do-install:
- @${CP} -r ${WRKSRC} ${PREFIX}/www/data/
+ @${CP} -r ${WRKSRC} ${INSTALLDIR}
@${CHOWN} -R www:www ${INSTALLDIR}
@${CHMOD} -R 770 ${INSTALLDIR}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list