Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/6049

Submitted by:   me and public@destratify.com
Reviewed by:    me

Patch mod_fastcgi to build with apache 2.2, take over maintainership

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15629 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
danielluke committed Dec 29, 2005
1 parent 36aa7db commit e929e24e8a4266b30e0dbfc19f94004bb78f325b
Showing with 43 additions and 2 deletions.
  1. +4 −2 www/mod_fastcgi/Portfile
  2. +39 −0 www/mod_fastcgi/files/patch-fcgi_h.diff
@@ -1,11 +1,12 @@
# $Id: Portfile,v 1.1 2004/05/25 17:29:48 mww Exp $
# $Id: Portfile,v 1.2 2005/12/29 15:55:53 dluke Exp $

PortSystem 1.0

name mod_fastcgi
version 2.4.2
revision 1
categories www
maintainers shu@rufuran.org
maintainers dluke@geeklair.net
description An Apache module that implements the FastCGI protocol
long_description FastCGI is a language independent, scalable, open \
extension to CGI that provides high performance \
@@ -18,6 +19,7 @@ master_sites ${homepage}/dist/
checksums md5 e994414304b535cb99e10b7d1cad1d1e

depends_lib path:${prefix}/apache2:apache2
patchfiles patch-fcgi_h.diff

configure {
file copy ${worksrcpath}/Makefile.AP2 ${worksrcpath}/Makefile
@@ -0,0 +1,39 @@
--- fcgi.h.orig 2005-12-20 18:10:33.000000000 -0500
+++ fcgi.h 2005-12-20 18:29:58.000000000 -0500
@@ -73,6 +73,36 @@
#define ap_reset_timeout(a)
#define ap_unblock_alarms()

+/* starting with apache 2.2 the backward-compatibility defines for
+ * 1.3 APIs are not available anymore. Define them ourselves here.
+ */
+#ifndef ap_copy_table
+
+#define ap_copy_table apr_table_copy
+#define ap_cpystrn apr_cpystrn
+#define ap_destroy_pool apr_pool_destroy
+#define ap_isspace apr_isspace
+#define ap_make_array apr_array_make
+#define ap_make_table apr_table_make
+#define ap_null_cleanup apr_pool_cleanup_null
+#define ap_palloc apr_palloc
+#define ap_pcalloc apr_pcalloc
+#define ap_psprintf apr_psprintf
+#define ap_pstrcat apr_pstrcat
+#define ap_pstrdup apr_pstrdup
+#define ap_pstrndup apr_pstrndup
+#define ap_push_array apr_array_push
+#define ap_register_cleanup apr_pool_cleanup_register
+#define ap_snprintf apr_snprintf
+#define ap_table_add apr_table_add
+#define ap_table_do apr_table_do
+#define ap_table_get apr_table_get
+#define ap_table_set apr_table_set
+#define ap_table_setn apr_table_setn
+#define ap_table_unset apr_table_unset
+
+#endif /* defined(ap_copy_table) */
+
#if (defined(HAVE_WRITEV) && !HAVE_WRITEV && !defined(NO_WRITEV)) || defined WIN32
#define NO_WRITEV
#endif

0 comments on commit e929e24

Please sign in to comment.
You can’t perform that action at this time.