diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-08-01 15:51:18 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-08-01 15:51:18 +0000 |
commit | 8b428b5d6554ec73f4848ab4660aa3b09aa166af (patch) | |
tree | 8510388f41d4e808b20fd1c5b2bf381a20bf8c3d /www/b2evolution | |
parent | 9bfd117f6031d2e402484aa0494eec51476bd31f (diff) | |
download | ports-8b428b5d6554ec73f4848ab4660aa3b09aa166af.tar.gz ports-8b428b5d6554ec73f4848ab4660aa3b09aa166af.zip |
Notes
Diffstat (limited to 'www/b2evolution')
-rw-r--r-- | www/b2evolution/Makefile | 25 | ||||
-rw-r--r-- | www/b2evolution/pkg-message | 10 |
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. + [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 |