aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_fastcgi
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2003-06-19 23:41:36 +0800
committeroliver <oliver@FreeBSD.org>2003-06-19 23:41:36 +0800
commit35f908e211ce3155dfba7888965366b2cf154c8a (patch)
tree2797e22dbbdb125d34a1d4ebaaae3ca2b9162dd6 /www/mod_fastcgi
parent9f7a1131dbf08fc111931fd88cd0c5c724c7f5ad (diff)
downloadfreebsd-ports-gnome-35f908e211ce3155dfba7888965366b2cf154c8a.tar.gz
freebsd-ports-gnome-35f908e211ce3155dfba7888965366b2cf154c8a.tar.zst
freebsd-ports-gnome-35f908e211ce3155dfba7888965366b2cf154c8a.zip
Add Apache2 support
PR: 53354 Reviewed by: roberto
Diffstat (limited to 'www/mod_fastcgi')
-rw-r--r--www/mod_fastcgi/Makefile49
-rw-r--r--www/mod_fastcgi/pkg-plist8
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%%