diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2005-06-28 08:42:39 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2005-06-28 08:42:39 +0000 |
commit | b495beaebd5d2404f7011d274342ea3392572685 (patch) | |
tree | 7e3825c25eb5a943582150763381947bbad5eb9a /www | |
parent | Update to 2.10.2. (diff) |
- B2EVO_DIR becomes an overridable variable.
PR: ports/82319
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=138102
Diffstat (limited to 'www')
-rw-r--r-- | www/b2evo/Makefile | 38 | ||||
-rw-r--r-- | www/b2evo/pkg-message | 2 | ||||
-rw-r--r-- | www/b2evolution/Makefile | 38 | ||||
-rw-r--r-- | www/b2evolution/pkg-message | 2 |
4 files changed, 48 insertions, 32 deletions
diff --git a/www/b2evo/Makefile b/www/b2evo/Makefile index d37645cf82a2..79dad089b292 100644 --- a/www/b2evo/Makefile +++ b/www/b2evo/Makefile @@ -10,44 +10,52 @@ PORTVERSION= 0.9.0.12 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= evocms -DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVODATE} +DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVO_DATE} MAINTAINER= chinsan.tw@gmail.com COMMENT= A multilingual, multiuser, multi-blog engine USE_ZIP= YES -B2EVODATE?= 2005-05-06 -USE_PHP= mysql pcre session +B2EVO_DATE?= 2005-05-06 +USE_PHP= mysql pcre session xml PHP4_PORT?= www/mod_php4 NO_BUILD= YES WANT_PHP_WEB= YES -TMPDIR?= b2evolution +TMPDIR?= ${PORTNAME} WRKSRC= ${WRKDIR}/${TMPDIR} -WWWDOCROOT?= www/data-dist -B2EVOURL?= b2evo + +.if !defined(B2EVO_DIR) +pre-fetch: + @${ECHO_MSG} "" + @${ECHO_MSG} "Define B2EVO_DIR to override default of '${B2EVO_DIR}'." + @${ECHO_MSG} "" +.endif + +WWWDOCROOT?= www/data +B2EVO_URL?= b2evo WWWOWN?= www WWWGRP?= www -B2EVODIR?= ${WWWDOCROOT}/${B2EVOURL} +B2EVO_DIR?= ${WWWDOCROOT}/${B2EVO_URL} PLIST= ${WRKDIR}/pkg-plist .include <bsd.port.pre.mk> pre-install: cd ${WRKSRC} && ${FIND} -s . -type f | \ - ${SED} -e 's|^./||;s|^|${B2EVODIR}/|' > ${PLIST} \ + ${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \ && ${FIND} -d * -type d | \ - ${SED} -e 's|^|@dirrm ${B2EVODIR}/|' >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${B2EVODIR} >> ${PLIST} + ${SED} -e 's|^|@dirrm ${B2EVO_DIR}/|' >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST} do-install: - -${MKDIR} ${PREFIX}/${B2EVODIR} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${B2EVODIR} - @${CHMOD} 755 ${PREFIX}/${B2EVODIR} - @${CP} -R ${WRKSRC}/ ${PREFIX}/${B2EVODIR} + -${MKDIR} ${PREFIX}/${B2EVO_DIR} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${B2EVO_DIR} + @${CHMOD} 755 ${PREFIX}/${B2EVO_DIR} + @${CP} -R ${WRKSRC}/ ${PREFIX}/${B2EVO_DIR} post-install: - @${SED} -e 's|%%B2EVOURL%%|${B2EVOURL}|' ${PKGMESSAGE} + @${SED} -e 's|%%B2EVO_URL%%|${B2EVO_URL}|' ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/www/b2evo/pkg-message b/www/b2evo/pkg-message index c5f5036323e4..daba180ad1c7 100644 --- a/www/b2evo/pkg-message +++ b/www/b2evo/pkg-message @@ -2,6 +2,6 @@ **** NOTE **** For first use of b2evolution, remember to point your browser to - http://localhost/%%B2EVOURL%%/blogs/install/ + http://localhost/%%B2EVO_URL%%/blogs/install/ and follow the instructions. diff --git a/www/b2evolution/Makefile b/www/b2evolution/Makefile index d37645cf82a2..79dad089b292 100644 --- a/www/b2evolution/Makefile +++ b/www/b2evolution/Makefile @@ -10,44 +10,52 @@ PORTVERSION= 0.9.0.12 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= evocms -DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVODATE} +DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVO_DATE} MAINTAINER= chinsan.tw@gmail.com COMMENT= A multilingual, multiuser, multi-blog engine USE_ZIP= YES -B2EVODATE?= 2005-05-06 -USE_PHP= mysql pcre session +B2EVO_DATE?= 2005-05-06 +USE_PHP= mysql pcre session xml PHP4_PORT?= www/mod_php4 NO_BUILD= YES WANT_PHP_WEB= YES -TMPDIR?= b2evolution +TMPDIR?= ${PORTNAME} WRKSRC= ${WRKDIR}/${TMPDIR} -WWWDOCROOT?= www/data-dist -B2EVOURL?= b2evo + +.if !defined(B2EVO_DIR) +pre-fetch: + @${ECHO_MSG} "" + @${ECHO_MSG} "Define B2EVO_DIR to override default of '${B2EVO_DIR}'." + @${ECHO_MSG} "" +.endif + +WWWDOCROOT?= www/data +B2EVO_URL?= b2evo WWWOWN?= www WWWGRP?= www -B2EVODIR?= ${WWWDOCROOT}/${B2EVOURL} +B2EVO_DIR?= ${WWWDOCROOT}/${B2EVO_URL} PLIST= ${WRKDIR}/pkg-plist .include <bsd.port.pre.mk> pre-install: cd ${WRKSRC} && ${FIND} -s . -type f | \ - ${SED} -e 's|^./||;s|^|${B2EVODIR}/|' > ${PLIST} \ + ${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \ && ${FIND} -d * -type d | \ - ${SED} -e 's|^|@dirrm ${B2EVODIR}/|' >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${B2EVODIR} >> ${PLIST} + ${SED} -e 's|^|@dirrm ${B2EVO_DIR}/|' >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST} do-install: - -${MKDIR} ${PREFIX}/${B2EVODIR} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${B2EVODIR} - @${CHMOD} 755 ${PREFIX}/${B2EVODIR} - @${CP} -R ${WRKSRC}/ ${PREFIX}/${B2EVODIR} + -${MKDIR} ${PREFIX}/${B2EVO_DIR} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${B2EVO_DIR} + @${CHMOD} 755 ${PREFIX}/${B2EVO_DIR} + @${CP} -R ${WRKSRC}/ ${PREFIX}/${B2EVO_DIR} post-install: - @${SED} -e 's|%%B2EVOURL%%|${B2EVOURL}|' ${PKGMESSAGE} + @${SED} -e 's|%%B2EVO_URL%%|${B2EVO_URL}|' ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/www/b2evolution/pkg-message b/www/b2evolution/pkg-message index c5f5036323e4..daba180ad1c7 100644 --- a/www/b2evolution/pkg-message +++ b/www/b2evolution/pkg-message @@ -2,6 +2,6 @@ **** NOTE **** For first use of b2evolution, remember to point your browser to - http://localhost/%%B2EVOURL%%/blogs/install/ + http://localhost/%%B2EVO_URL%%/blogs/install/ and follow the instructions. |