ports/101179: [MAINTAINER] www/b2evolution: All web applications
should be now installed into ${PREFIX}/www/appname
chinsan
chinsan.tw at gmail.com
Tue Aug 1 15:20:39 UTC 2006
>Number: 101179
>Category: ports
>Synopsis: [MAINTAINER] www/b2evolution: All web applications should be now installed into ${PREFIX}/www/appname
>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: Tue Aug 01 15:20:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: chinsan
>Release: FreeBSD 6.1-STABLE i386
>Organization:
Taiwan
>Environment:
System: FreeBSD BSD6.giga.hgc.com.tw 6.1-STABLE FreeBSD 6.1-STABLE #5: Mon Jul 17 09:30:36 CST 2006
>Description:
- All web applications should be now installed into ${PREFIX}/www/appname
20060622:
AFFECTS: users of www/b2evolution
AUTHOR: chinsan.tw at gmail.com
The default install location has changed from
${PREFIX}/www/data/b2evolution to ${PREFIX}/www/b2evolution.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- b2evolution-0.9.2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/b2evolution/Makefile /usr/home/chinsan/project/b2evolution/Makefile
--- /usr/ports/www/b2evolution/Makefile Thu Jun 8 15:26:02 2006
+++ /usr/home/chinsan/project/b2evolution/Makefile Tue Aug 1 22:52:23 2006
@@ -28,25 +28,8 @@
TMPDIR?= ${PORTNAME}
WRKSRC= ${WRKDIR}/${TMPDIR}
-.if !defined(B2EVO_URL)
-pre-fetch:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Define B2EVO_URL to override default of ${PREFIX}/${WWWDOCROOT}/'${B2EVO_URL}'."
- @${ECHO_MSG} ""
-.endif
-
-# Get HOSTNAME
-.if exists(/sbin/sysctl)
-HOSTNAME!= /sbin/sysctl -n kern.hostname
-.else
-HOSTNAME!= /usr/sbin/sysctl -n kern.hostname
-.endif
-
-WWWDOCROOT?= www/data
B2EVO_URL?= b2evo
-WWWOWN?= www
-WWWGRP?= www
-B2EVO_DIR?= ${WWWDOCROOT}/${B2EVO_URL}
+B2EVO_DIR?= www/${B2EVO_URL}
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
@@ -56,8 +39,7 @@
${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${B2EVO_DIR}/|' >> ${PLIST} \
- && ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST} \
- && ${ECHO_CMD} @dirrmtry ${WWWDOCROOT} >> ${PLIST}
+ && ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST}
do-install:
-${MKDIR} ${PREFIX}/${B2EVO_DIR}
@@ -67,7 +49,8 @@
@${CHMOD} 665 ${PREFIX}/${B2EVO_DIR}/blogs/conf/_config.php
post-install:
- @${SED} -e 's|%%HOSTNAME%%|${HOSTNAME}|; s|%%B2EVO_URL%%|${B2EVO_URL}|' \
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%PORTNAME%%|${PORTNAME}|' \
+ -e 's|%%B2EVO_DIR%%|${B2EVO_DIR}|; s|%%B2EVO_URL%%|${B2EVO_URL}|' \
${PKGMESSAGE}
.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/www/b2evolution/pkg-message /usr/home/chinsan/project/b2evolution/pkg-message
--- /usr/ports/www/b2evolution/pkg-message Sun Sep 4 07:31:18 2005
+++ /usr/home/chinsan/project/b2evolution/pkg-message Tue Aug 1 22:35:54 2006
@@ -15,10 +15,16 @@
mysql> FLUSH PRIVILEGES;
mysql> QUIT;
-3.Open b2evo installation page in your web browser
+3. Please add the following to your apache config, and restart.
+ [1;32m#
+ # Directives to allow use of b2evolution
+ #
+ Alias /%%PORTNAME%% "%%PREFIX%%/%%B2EVO_DIR%%/"[m
+
+4.Open b2evo installation page in your web browser
and login with b2evouser/b2evopassword
- http://%%HOSTNAME%%/%%B2EVO_URL%%/blogs/install/
+ http://www.your.host/%%B2EVO_URL%%/blogs/install/
If you are doing a fresh install...
Note that password carefully! It is a random password that is given to you
--- b2evolution-0.9.2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list