aboutsummaryrefslogtreecommitdiff
path: root/www/b2evolution
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-08-01 15:51:18 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-08-01 15:51:18 +0000
commit8b428b5d6554ec73f4848ab4660aa3b09aa166af (patch)
tree8510388f41d4e808b20fd1c5b2bf381a20bf8c3d /www/b2evolution
parent9bfd117f6031d2e402484aa0494eec51476bd31f (diff)
downloadports-8b428b5d6554ec73f4848ab4660aa3b09aa166af.tar.gz
ports-8b428b5d6554ec73f4848ab4660aa3b09aa166af.zip
Notes
Diffstat (limited to 'www/b2evolution')
-rw-r--r--www/b2evolution/Makefile25
-rw-r--r--www/b2evolution/pkg-message10
2 files changed, 12 insertions, 23 deletions
diff --git a/www/b2evolution/Makefile b/www/b2evolution/Makefile
index 19cf81e98891..20d7d3e20fee 100644
--- a/www/b2evolution/Makefile
+++ b/www/b2evolution/Makefile
@@ -28,25 +28,8 @@ WANT_PHP_WEB= YES
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 @@ pre-install:
${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 @@ do-install:
@${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 --git a/www/b2evolution/pkg-message b/www/b2evolution/pkg-message
index c01774807342..0241a0782791 100644
--- a/www/b2evolution/pkg-message
+++ b/www/b2evolution/pkg-message
@@ -15,10 +15,16 @@ you may have to follow this steps to make it work correctly.
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.
+ #
+ # Directives to allow use of b2evolution
+ #
+ Alias /%%PORTNAME%% "%%PREFIX%%/%%B2EVO_DIR%%/"
+
+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