aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorjoneum <joneum@FreeBSD.org>2018-12-14 21:57:09 +0800
committerjoneum <joneum@FreeBSD.org>2018-12-14 21:57:09 +0800
commitdaf0a5de2e9050eaaeb10e60d9a102b3271566dc (patch)
tree4004fe125e8b04c60b9c9811ba67b01ad622fe84 /www
parent2937c20ee6553f88e38656f34a72eb5ddbdc4374 (diff)
downloadfreebsd-ports-gnome-daf0a5de2e9050eaaeb10e60d9a102b3271566dc.tar.gz
freebsd-ports-gnome-daf0a5de2e9050eaaeb10e60d9a102b3271566dc.tar.zst
freebsd-ports-gnome-daf0a5de2e9050eaaeb10e60d9a102b3271566dc.zip
www:mod_fastcgi: Update to 2.4.7.1
The website of fastcgi has been down for a long time. The project is now in a GitHub archive: https://github.com/FastCGI-Archives Also switch to GitHub with www/mod_fastcgi Changelog: *) cast from pointer to integer of different size fix *) fix prinf %d warning *) .cvsignore to .gitignore *) apache 2.4 compile fix - While I am here, use "make makepatch" for the patches in /files Approved by: brnrd (apache) With hat: apache Sponsored by: Netzkommune GmbH Differential Revision: https://reviews.freebsd.org/D18471
Diffstat (limited to 'www')
-rw-r--r--www/mod_fastcgi/Makefile14
-rw-r--r--www/mod_fastcgi/distinfo5
-rw-r--r--www/mod_fastcgi/files/patch-fcgi.h97
-rw-r--r--www/mod_fastcgi/files/patch-fcgi_protocol.c6
-rw-r--r--www/mod_fastcgi/files/patch-fcgi_util.c8
-rw-r--r--www/mod_fastcgi/files/patch-mod_fastcgi.c30
-rw-r--r--www/mod_fastcgi/pkg-descr2
7 files changed, 27 insertions, 135 deletions
diff --git a/www/mod_fastcgi/Makefile b/www/mod_fastcgi/Makefile
index e68892b317de..775a5cd1686d 100644
--- a/www/mod_fastcgi/Makefile
+++ b/www/mod_fastcgi/Makefile
@@ -2,18 +2,18 @@
# $FreeBSD$
PORTNAME= mod_fastcgi
-PORTVERSION= 2.4.7
-PORTREVISION= 1
+PORTVERSION= 2.4.7.1
CATEGORIES= www
-MASTER_SITES= http://www.fastcgi.com/dist/ \
- LOCAL/ohauer
-DISTNAME= mod_fastcgi-SNAP-0910052141
DIST_SUBDIR= apache2
MAINTAINER= apache@FreeBSD.org
-COMMENT= Apache 2.2 fast-cgi module
+COMMENT= Apache 2.4 fast-cgi module
+
+USES= apache:2.4+
+
+USE_GITHUB= yes
+GH_ACCOUNT= FastCGI-Archives
-USES= apache:2.2+
AP_FAST_BUILD= yes
AP_GENPLIST= yes
SRC_FILE= *.c
diff --git a/www/mod_fastcgi/distinfo b/www/mod_fastcgi/distinfo
index ea1ef98ef0ef..d4208dc9021d 100644
--- a/www/mod_fastcgi/distinfo
+++ b/www/mod_fastcgi/distinfo
@@ -1,2 +1,3 @@
-SHA256 (apache2/mod_fastcgi-SNAP-0910052141.tar.gz) = e6564ae206284806c781834e9e89aa4b0a4dd647b45c6da5cc389c65a984bdc7
-SIZE (apache2/mod_fastcgi-SNAP-0910052141.tar.gz) = 103255
+TIMESTAMP = 1544180674
+SHA256 (apache2/FastCGI-Archives-mod_fastcgi-2.4.7.1_GH0.tar.gz) = 4ba3509b498463f42401fe6911aa410561efbed93d43bb12ad8f7ee7c6318ab8
+SIZE (apache2/FastCGI-Archives-mod_fastcgi-2.4.7.1_GH0.tar.gz) = 112142
diff --git a/www/mod_fastcgi/files/patch-fcgi.h b/www/mod_fastcgi/files/patch-fcgi.h
deleted file mode 100644
index 609673f7ce28..000000000000
--- a/www/mod_fastcgi/files/patch-fcgi.h
+++ /dev/null
@@ -1,97 +0,0 @@
---- fcgi.h.orig
-+++ fcgi.h
-@@ -57,10 +57,14 @@
- #define XtOffsetOf APR_OFFSETOF
- #define ap_select select
-
--#define ap_user_id unixd_config.user_id
--#define ap_group_id unixd_config.group_id
--#define ap_user_name unixd_config.user_name
--#define ap_suexec_enabled unixd_config.suexec_enabled
-+#if MODULE_MAGIC_NUMBER_MAJOR < 20081201
-+#define ap_unixd_config unixd_config
-+#endif
-+
-+#define ap_user_id ap_unixd_config.user_id
-+#define ap_group_id ap_unixd_config.group_id
-+#define ap_user_name ap_unixd_config.user_name
-+#define ap_suexec_enabled ap_unixd_config.suexec_enabled
-
- #ifndef S_ISDIR
- #define S_ISDIR(m) (((m)&(S_IFMT)) == (S_IFDIR))
-@@ -354,42 +358,42 @@
- #ifdef APACHE2
-
- #ifdef WIN32
--#define FCGI_LOG_EMERG __FILE__,__LINE__,APLOG_EMERG,APR_FROM_OS_ERROR(GetLastError())
--#define FCGI_LOG_ALERT __FILE__,__LINE__,APLOG_ALERT,APR_FROM_OS_ERROR(GetLastError())
--#define FCGI_LOG_CRIT __FILE__,__LINE__,APLOG_CRIT,APR_FROM_OS_ERROR(GetLastError())
--#define FCGI_LOG_ERR __FILE__,__LINE__,APLOG_ERR,APR_FROM_OS_ERROR(GetLastError())
--#define FCGI_LOG_WARN __FILE__,__LINE__,APLOG_WARNING,APR_FROM_OS_ERROR(GetLastError())
--#define FCGI_LOG_NOTICE __FILE__,__LINE__,APLOG_NOTICE,APR_FROM_OS_ERROR(GetLastError())
--#define FCGI_LOG_INFO __FILE__,__LINE__,APLOG_INFO,APR_FROM_OS_ERROR(GetLastError())
--#define FCGI_LOG_DEBUG __FILE__,__LINE__,APLOG_DEBUG,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_EMERG APLOG_MARK,APLOG_EMERG,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_ALERT APLOG_MARK,APLOG_ALERT,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_CRIT APLOG_MARK,APLOG_CRIT,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_ERR APLOG_MARK,APLOG_ERR,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_WARN APLOG_MARK,APLOG_WARNING,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_NOTICE APLOG_MARK,APLOG_NOTICE,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_INFO APLOG_MARK,APLOG_INFO,APR_FROM_OS_ERROR(GetLastError())
-+#define FCGI_LOG_DEBUG APLOG_MARK,APLOG_DEBUG,APR_FROM_OS_ERROR(GetLastError())
- #else /* !WIN32 */
--#define FCGI_LOG_EMERG __FILE__,__LINE__,APLOG_EMERG,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_ALERT __FILE__,__LINE__,APLOG_ALERT,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_CRIT __FILE__,__LINE__,APLOG_CRIT,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_ERR __FILE__,__LINE__,APLOG_ERR,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_WARN __FILE__,__LINE__,APLOG_WARNING,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_NOTICE __FILE__,__LINE__,APLOG_NOTICE,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_INFO __FILE__,__LINE__,APLOG_INFO,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_DEBUG __FILE__,__LINE__,APLOG_DEBUG,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_EMERG APLOG_MARK,APLOG_EMERG,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_ALERT APLOG_MARK,APLOG_ALERT,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_CRIT APLOG_MARK,APLOG_CRIT,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_ERR APLOG_MARK,APLOG_ERR,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_WARN APLOG_MARK,APLOG_WARNING,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_NOTICE APLOG_MARK,APLOG_NOTICE,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_INFO APLOG_MARK,APLOG_INFO,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_DEBUG APLOG_MARK,APLOG_DEBUG,APR_FROM_OS_ERROR(errno)
- #endif
-
--#define FCGI_LOG_EMERG_ERRNO __FILE__,__LINE__,APLOG_EMERG,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_ALERT_ERRNO __FILE__,__LINE__,APLOG_ALERT,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_CRIT_ERRNO __FILE__,__LINE__,APLOG_CRIT,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_ERR_ERRNO __FILE__,__LINE__,APLOG_ERR,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_WARN_ERRNO __FILE__,__LINE__,APLOG_WARNING,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_NOTICE_ERRNO __FILE__,__LINE__,APLOG_NOTICE,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_INFO_ERRNO __FILE__,__LINE__,APLOG_INFO,APR_FROM_OS_ERROR(errno)
--#define FCGI_LOG_DEBUG_ERRNO __FILE__,__LINE__,APLOG_DEBUG,APR_FROM_OS_ERROR(errno)
--
--#define FCGI_LOG_EMERG_NOERRNO __FILE__,__LINE__,APLOG_EMERG,0
--#define FCGI_LOG_ALERT_NOERRNO __FILE__,__LINE__,APLOG_ALERT,0
--#define FCGI_LOG_CRIT_NOERRNO __FILE__,__LINE__,APLOG_CRIT,0
--#define FCGI_LOG_ERR_NOERRNO __FILE__,__LINE__,APLOG_ERR,0
--#define FCGI_LOG_WARN_NOERRNO __FILE__,__LINE__,APLOG_WARNING,0
--#define FCGI_LOG_NOTICE_NOERRNO __FILE__,__LINE__,APLOG_NOTICE,0
--#define FCGI_LOG_INFO_NOERRNO __FILE__,__LINE__,APLOG_INFO,0
--#define FCGI_LOG_DEBUG_NOERRNO __FILE__,__LINE__,APLOG_DEBUG,0
-+#define FCGI_LOG_EMERG_ERRNO APLOG_MARK,APLOG_EMERG,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_ALERT_ERRNO APLOG_MARK,APLOG_ALERT,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_CRIT_ERRNO APLOG_MARK,APLOG_CRIT,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_ERR_ERRNO APLOG_MARK,APLOG_ERR,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_WARN_ERRNO APLOG_MARK,APLOG_WARNING,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_NOTICE_ERRNO APLOG_MARK,APLOG_NOTICE,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_INFO_ERRNO APLOG_MARK,APLOG_INFO,APR_FROM_OS_ERROR(errno)
-+#define FCGI_LOG_DEBUG_ERRNO APLOG_MARK,APLOG_DEBUG,APR_FROM_OS_ERROR(errno)
-+
-+#define FCGI_LOG_EMERG_NOERRNO APLOG_MARK,APLOG_EMERG,0
-+#define FCGI_LOG_ALERT_NOERRNO APLOG_MARK,APLOG_ALERT,0
-+#define FCGI_LOG_CRIT_NOERRNO APLOG_MARK,APLOG_CRIT,0
-+#define FCGI_LOG_ERR_NOERRNO APLOG_MARK,APLOG_ERR,0
-+#define FCGI_LOG_WARN_NOERRNO APLOG_MARK,APLOG_WARNING,0
-+#define FCGI_LOG_NOTICE_NOERRNO APLOG_MARK,APLOG_NOTICE,0
-+#define FCGI_LOG_INFO_NOERRNO APLOG_MARK,APLOG_INFO,0
-+#define FCGI_LOG_DEBUG_NOERRNO APLOG_MARK,APLOG_DEBUG,0
-
- #else /* !APACHE2 */
-
diff --git a/www/mod_fastcgi/files/patch-fcgi_protocol.c b/www/mod_fastcgi/files/patch-fcgi_protocol.c
index ee9cf56651f8..3b9a9cf62b63 100644
--- a/www/mod_fastcgi/files/patch-fcgi_protocol.c
+++ b/www/mod_fastcgi/files/patch-fcgi_protocol.c
@@ -1,10 +1,10 @@
---- fcgi_protocol.c.orig
+--- fcgi_protocol.c.orig 2017-03-29 21:11:44 UTC
+++ fcgi_protocol.c
-@@ -475,7 +475,7 @@
+@@ -475,7 +475,7 @@ int fcgi_protocol_dequeue(pool *p, fcgi_request *fr)
ap_log_rerror(FCGI_LOG_ERR_NOERRNO, fr->r,
"FastCGI: comm with server \"%s\" aborted: protocol error: "
"invalid FCGI_END_REQUEST size: "
-- "%d != sizeof(FCGI_EndRequestBody)(%d)",
+- "%d != sizeof(FCGI_EndRequestBody)(%ld)",
+ "%d != sizeof(FCGI_EndRequestBody)(%zu)",
fr->fs_path, fr->dataLen, sizeof(FCGI_EndRequestBody));
return HTTP_INTERNAL_SERVER_ERROR;
diff --git a/www/mod_fastcgi/files/patch-fcgi_util.c b/www/mod_fastcgi/files/patch-fcgi_util.c
index 2bcf4031d1dc..9b57ad3f67cf 100644
--- a/www/mod_fastcgi/files/patch-fcgi_util.c
+++ b/www/mod_fastcgi/files/patch-fcgi_util.c
@@ -1,6 +1,6 @@
---- fcgi_util.c.orig
+--- fcgi_util.c.orig 2017-03-29 21:11:44 UTC
+++ fcgi_util.c
-@@ -268,13 +268,17 @@
+@@ -268,13 +268,17 @@ fcgi_util_check_access(pool *tp,
/* Get the user membership for the file's group. If the
* uid is a member, check the group bits. */
{
@@ -23,7 +23,7 @@
if (mode & R_OK && !(statBuf->st_mode & S_IRGRP))
return "read not allowed by group";
if (mode & W_OK && !(statBuf->st_mode & S_IWGRP))
-@@ -445,8 +449,9 @@
+@@ -445,8 +449,9 @@ fcgi_util_fs_set_uid_n_gid(pool *p, fcgi_server *s, ui
{
#ifndef WIN32
@@ -34,7 +34,7 @@
if (fcgi_wrapper == NULL)
return NULL;
-@@ -467,14 +472,14 @@
+@@ -467,14 +472,14 @@ fcgi_util_fs_set_uid_n_gid(pool *p, fcgi_server *s, ui
s->username = s->user;
s->gid = gid;
diff --git a/www/mod_fastcgi/files/patch-mod_fastcgi.c b/www/mod_fastcgi/files/patch-mod_fastcgi.c
index d3cd5ee7fb30..19da9b1e5bb8 100644
--- a/www/mod_fastcgi/files/patch-mod_fastcgi.c
+++ b/www/mod_fastcgi/files/patch-mod_fastcgi.c
@@ -1,18 +1,6 @@
---- mod_fastcgi.c.orig
+--- mod_fastcgi.c.orig 2017-03-29 21:11:44 UTC
+++ mod_fastcgi.c
-@@ -753,6 +753,11 @@
- continue;
- }
-
-+ if (strcasecmp(name, "Content-Length") == 0) {
-+ ap_set_content_length(r, strtol(value, NULL, 10));
-+ continue;
-+ }
-+
- /* If the script wants them merged, it can do it */
- ap_table_add(r->err_headers_out, name, value);
- continue;
-@@ -2215,7 +2220,7 @@
+@@ -2219,7 +2219,7 @@ SERVER_SEND:
if (select_status < 0)
{
ap_log_rerror(FCGI_LOG_ERR_ERRNO, r, "FastCGI: comm with server "
@@ -21,12 +9,12 @@
state = STATE_ERROR;
break;
}
-@@ -2298,7 +2303,7 @@
+@@ -2302,7 +2302,7 @@ SERVER_SEND:
else
{
- ap_log_rerror(FCGI_LOG_ERR, r, "FastCGI: comm with server "
-- "\"%s\" aborted: read failed", fr->fs_path);
-+ "\"%s\" aborted: read failed: \"%s\"", fr->fs_path, strerror(errno));
- state = STATE_ERROR;
- break;
- }
+ ap_log_rerror(FCGI_LOG_ERR, r, "FastCGI: comm with server "
+- "\"%s\" aborted: read failed", fr->fs_path);
++ "\"%s\" aborted: read failed: \"%s\"", fr->fs_path, strerror(errno));
+ state = STATE_ERROR;
+ break;
+ }
diff --git a/www/mod_fastcgi/pkg-descr b/www/mod_fastcgi/pkg-descr
index a2d5aa49d353..569fe93cdabd 100644
--- a/www/mod_fastcgi/pkg-descr
+++ b/www/mod_fastcgi/pkg-descr
@@ -4,4 +4,4 @@ FastCGI is a language independent, scalable, open extension to CGI that
provides high performance without the limitations of server specific APIs.
See the docs for more details.
-WWW: http://www.fastcgi.com/
+WWW: https://github.com/FastCGI-Archives/mod_fastcgi