diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2003-06-19 15:41:36 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2003-06-19 15:41:36 +0000 |
commit | 71b4f03018620354cdb48a36304c055803b95fd2 (patch) | |
tree | 67aeb517c12a4d0bb5b6a292d991ba116e9e814a /www/mod_fastcgi | |
parent | Upgrade from 6.5.6 to the 6.5.9 -- using the maintainer's earlier patch (for ... (diff) |
Add Apache2 support
PR: 53354
Reviewed by: roberto
Notes
Notes:
svn path=/head/; revision=83325
Diffstat (limited to 'www/mod_fastcgi')
-rw-r--r-- | www/mod_fastcgi/Makefile | 49 | ||||
-rw-r--r-- | www/mod_fastcgi/pkg-plist | 8 |
2 files changed, 39 insertions, 18 deletions
diff --git a/www/mod_fastcgi/Makefile b/www/mod_fastcgi/Makefile index 5c5e64a021a1..76b946c1fd14 100644 --- a/www/mod_fastcgi/Makefile +++ b/www/mod_fastcgi/Makefile @@ -15,11 +15,23 @@ MAINTAINER= hollywar@mail.holywar.net COMMENT= A fast-cgi module for Apache BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${APACHE_PORT} -RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${APACHE_PORT} +.if defined(WITH_APACHE2) +APACHE_PORT?= ${PORTSDIR}/www/apache2 +MAKEFILE= Makefile.AP2 +USE_REINPLACE= YES +MAKE_ARGS= INCLUDES=-I${PREFIX}/include/apache2 +INSTALL_TARGET= install-modules +PLIST_SUB= APACHE=2 +.else APACHE_PORT?= ${PORTSDIR}/www/apache13 +PLIST_SUB= APACHE= +.endif do-patch: +.if defined(WITH_APACHE2) + @${REINPLACE_CMD} -e "s|/usr/local/apache2|${PREFIX}/share/apache2|g" ${WRKSRC}/${MAKEFILE} +.else cd ${WRKSRC} ; ${MV} Makefile.tmpl Makefile ; do-build: @@ -27,21 +39,30 @@ do-build: do-install: cd ${WRKSRC} ; ${LOCALBASE}/sbin/apxs -i -a -n fastcgi mod_fastcgi.so -.if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/doc/mod_fastcgi - @cd ${WRKSRC} ; ${CP} -R docs/* ${PREFIX}/share/doc/mod_fastcgi .endif post-install: - @${ECHO_MSG} "*******************************************************" - @${ECHO_MSG} "* Fast-cgi modules was include with your apache *" - @${ECHO_MSG} "* configuration file *" - @${ECHO_MSG} "* *" - @${ECHO_MSG} "* You need to add following line in your apache *" - @${ECHO_MSG} "* configuration file. and restart it ! *" - @${ECHO_MSG} "* *" - @${ECHO_MSG} "* AddHandler fastcgi-script fcgi fcgi fpl *" - @${ECHO_MSG} "* *" - @${ECHO_MSG} "*******************************************************" +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in LICENSE.TERMS mod_fastcgi.html + ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR} +.endfor +.endif + + @${ECHO_MSG} "************************************************************" +.if !defined(WITH_APACHE2) + @${ECHO_MSG} "* Fast-cgi modules was included with your apache *" + @${ECHO_MSG} "* configuration file *" + @${ECHO_MSG} "* *" +.endif + @${ECHO_MSG} "* You need to add following lines to your apache *" + @${ECHO_MSG} "* configuration file. and restart it ! *" + @${ECHO_MSG} "* *" +.if defined(WITH_APACHE2) + @${ECHO_MSG} "* LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so *" +.endif + @${ECHO_MSG} "* AddHandler fastcgi-script fcgi fcgi fpl *" + @${ECHO_MSG} "* *" + @${ECHO_MSG} "************************************************************" .include <bsd.port.mk> diff --git a/www/mod_fastcgi/pkg-plist b/www/mod_fastcgi/pkg-plist index 2f841f3df73f..69ff1d27dd63 100644 --- a/www/mod_fastcgi/pkg-plist +++ b/www/mod_fastcgi/pkg-plist @@ -1,4 +1,4 @@ -libexec/apache/mod_fastcgi.so -share/doc/mod_fastcgi/LICENSE.TERMS -share/doc/mod_fastcgi/mod_fastcgi.html -@dirrm share/doc/mod_fastcgi +libexec/apache%%APACHE%%/mod_fastcgi.so +%%PORTDOCS%%%%DOCSDIR%%/LICENSE.TERMS +%%PORTDOCS%%%%DOCSDIR%%/mod_fastcgi.html +%%PORTDOCS%%@dirrm %%DOCSDIR%% |