mod_fcgi svn snapshot
Hanno Böck

Hanno Böck commited on 2009-12-21 15:34:56
Zeige 4 geänderte Dateien mit 77 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,4 @@
1
+AUX 2.2/20_mod_fcgid.conf 165 RMD160 3eb1141ad06aafd37f17b9d6fe93699555afdc48 SHA1 f261d61fc79ddc39cdd9722165a8db133378edeb SHA256 5b1b5584360b3811241459c435260cd2af8aa2a612f940e376b6aefdbca283ff
2
+AUX mod_fcgid-2.3.4-upload-corruption.patch 1697 RMD160 6a335e500b22ca49ebaf1696803e941f60082334 SHA1 fae780af78b4ec8341f243b24c51a3c3c310fdca SHA256 8cdc220d26409f4c77927043b736187f6a1e5d9405052fefefb52d80e3055073
3
+DIST mod_fcgid-2.3.5_pre20091221.tar.bz2 72893 RMD160 ec4e6427fa162600df650ef02d42cabd7612d0bd SHA1 2ff8ccb2431cfaf09c989effdc17317900c85381 SHA256 89619c4c0452fe8190ca9b73abf6cda9b8471c8b1ffc92a8af4d41b86e958fad
4
+EBUILD mod_fcgid-2.3.5_pre20091221.ebuild 827 RMD160 ad8c83b05a258341525b7c488148069396db22c4 SHA1 1dc518e3397fff023d0994783655e15fc6ce4fcb SHA256 ae0e6a3ecc845665eda529e8afef0f6e803c51ade014ac81c895a90b8435ed7a
... ...
@@ -0,0 +1,7 @@
1
+<IfDefine FCGID>
2
+LoadModule fcgid_module modules/mod_fcgid.so
3
+SocketPath /var/run/fcgidsock
4
+SharememPath /var/run/fcgid_shm
5
+</IfDefine>
6
+
7
+# vim: ts=4 filetype=apache
... ...
@@ -0,0 +1,39 @@
1
+--- trunk/modules/fcgid/fcgid_bridge.c	2009/10/19 22:03:07	826828
2
++++ trunk/modules/fcgid/fcgid_bridge.c	2009/10/19 22:03:30	826829
3
+@@ -446,7 +446,6 @@
4
+     fcgid_server_conf *sconf = ap_get_module_config(r->server->module_config,
5
+                                                     &fcgid_module);
6
+     int seen_eos;
7
+-    int need_truncate = 1;
8
+ 
9
+     /* Stdin header and body */
10
+     /* XXX HACK: I have to read all the request into memory before sending it 
11
+@@ -526,6 +525,15 @@
12
+                     apr_pool_userdata_get(&tmp, fd_key,
13
+                                           r->connection->pool);
14
+                     fd = tmp;
15
++
16
++                    if (fd != NULL) {
17
++                        if ((rv = apr_file_trunc(fd, 0)) != APR_SUCCESS) {
18
++                            ap_log_rerror(APLOG_MARK, APLOG_WARNING, rv, r,
19
++                                          "mod_fcgid: can't truncate existing "
20
++                                          "temporary file");
21
++                            return HTTP_INTERNAL_SERVER_ERROR;
22
++                        }
23
++                    }
24
+                 }
25
+ 
26
+                 if (fd == NULL) {
27
+@@ -552,11 +560,8 @@
28
+                     apr_pool_userdata_set((const void *) fd, fd_key,
29
+                                           apr_pool_cleanup_null,
30
+                                           r->connection->pool);
31
+-                } else if (need_truncate) {
32
+-                    need_truncate = 0;
33
+-                    apr_file_trunc(fd, 0);
34
+-                    cur_pos = 0;
35
+                 }
36
++
37
+                 /* Write request to tmp file */
38
+                 if ((rv =
39
+                      apr_file_write_full(fd, (const void *) data, len,
... ...
@@ -0,0 +1,27 @@
1
+# Copyright 1999-2009 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_fcgid/mod_fcgid-2.3.4.ebuild,v 1.2 2009/11/30 15:49:16 scarabeus Exp $
4
+
5
+inherit apache-module eutils multilib
6
+
7
+DESCRIPTION="mod_fcgid is a binary-compatible alternative to mod_fastcgi with better process management."
8
+HOMEPAGE="http://fastcgi.coremail.cn/"
9
+SRC_URI="http://websiterra.com/friends/apache/httpd/mod_fcgid/${P}.tar.bz2"
10
+
11
+LICENSE="GPL-2"
12
+SLOT="0"
13
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
14
+IUSE=""
15
+
16
+APACHE2_MOD_CONF="2.2/20_${PN}"
17
+APACHE2_MOD_DEFINE="FCGID"
18
+
19
+DOCFILES="AUTHOR ChangeLog"
20
+
21
+need_apache2_2
22
+
23
+src_compile () {
24
+	./configure.apxs || die "apxs configure failed!"
25
+	make || die "make failed"
26
+	ln -sf modules/fcgid/.libs .libs || die "symlink creation failed"
27
+}
0 28