2000-07-31 22:22:59 +02:00
|
|
|
# New ports collection makefile for: mod_fastcgi ( in apache )
|
|
|
|
# Date created: 14 Jul 2000
|
|
|
|
# Whom: JunSeon Oh <hollywar@mail.holywar.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_fastcgi
|
2003-12-18 15:14:59 +01:00
|
|
|
PORTVERSION= 2.4.2
|
2000-07-31 22:22:59 +02:00
|
|
|
CATEGORIES= www
|
2001-12-23 19:15:52 +01:00
|
|
|
MASTER_SITES= ftp://ftp.holywar.net/pub/FreeBSD/ \
|
|
|
|
http://www.fastcgi.com/dist/
|
2000-07-31 22:22:59 +02:00
|
|
|
|
|
|
|
MAINTAINER= hollywar@mail.holywar.net
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= A fast-cgi module for Apache
|
2000-07-31 22:22:59 +02:00
|
|
|
|
2004-06-01 01:23:21 +02:00
|
|
|
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
|
2004-06-01 01:20:01 +02:00
|
|
|
|
2004-06-01 01:23:21 +02:00
|
|
|
CONFLICTS= apache-contrib-1.*
|
2005-09-19 13:52:14 +02:00
|
|
|
APACHE_COMPAT= YES
|
2004-06-01 01:20:01 +02:00
|
|
|
|
2005-10-02 10:07:32 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_APACHE2) || exists(${LOCALBASE}/include/apache2/apr.h)
|
|
|
|
WITH_APACHE2= YES
|
2003-06-19 17:41:36 +02:00
|
|
|
MAKEFILE= Makefile.AP2
|
|
|
|
USE_REINPLACE= YES
|
|
|
|
MAKE_ARGS= INCLUDES=-I${PREFIX}/include/apache2
|
|
|
|
INSTALL_TARGET= install-modules
|
|
|
|
PLIST_SUB= APACHE=2
|
|
|
|
.else
|
|
|
|
PLIST_SUB= APACHE=
|
|
|
|
.endif
|
2000-07-31 22:22:59 +02:00
|
|
|
|
2005-05-31 12:45:56 +02:00
|
|
|
.if defined(WITHOUT_APACHE_SUEXEC)
|
|
|
|
APXSOPTS+= -DNO_SUEXEC_FOR_AP_USER_N_GROUP
|
|
|
|
.endif
|
|
|
|
|
2000-07-31 22:22:59 +02:00
|
|
|
do-patch:
|
2003-06-19 17:41:36 +02:00
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
@${REINPLACE_CMD} -e "s|/usr/local/apache2|${PREFIX}/share/apache2|g" ${WRKSRC}/${MAKEFILE}
|
|
|
|
.else
|
2000-07-31 22:22:59 +02:00
|
|
|
cd ${WRKSRC} ; ${MV} Makefile.tmpl Makefile ;
|
|
|
|
|
|
|
|
do-build:
|
2005-05-31 12:45:56 +02:00
|
|
|
cd ${WRKSRC} ; ${LOCALBASE}/sbin/apxs -o mod_fastcgi.so -c ${APXSOPT} *.c
|
2000-07-31 22:22:59 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} ; ${LOCALBASE}/sbin/apxs -i -a -n fastcgi mod_fastcgi.so
|
2000-09-05 11:04:35 +02:00
|
|
|
.endif
|
2000-07-31 22:22:59 +02:00
|
|
|
|
|
|
|
post-install:
|
2003-06-19 17:41:36 +02:00
|
|
|
.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} "************************************************************"
|
2000-07-31 22:22:59 +02:00
|
|
|
|
2005-10-02 10:07:32 +02:00
|
|
|
.include <bsd.port.post.mk>
|