ports/117184: [UPDATE] www/mod_fcgid: Update to 2.2

Andrey Slusar anray at FreeBSD.org
Sun Oct 14 14:30:01 UTC 2007


>Number:         117184
>Category:       ports
>Synopsis:       [UPDATE] www/mod_fcgid: Update to 2.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 14 14:30:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 7.0-PRERELEASE i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Sat Oct 13 12:12:40 EEST 2007 anray at santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
	- Update to version 2.2
>How-To-Repeat:
	
>Fix:
--- mod_fcgid.diff begins here ---
Index: ports/www/mod_fcgid/Makefile
===================================================================
RCS file: /home/pcvs/ports/www/mod_fcgid/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- ports/www/mod_fcgid/Makefile	30 Sep 2007 11:25:51 -0000	1.12
+++ ports/www/mod_fcgid/Makefile	14 Oct 2007 13:56:06 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	mod_fcgid
-PORTVERSION=	2.1
-PORTREVISION=	2
+PORTVERSION=	2.2
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
 MASTER_SITE_SUBDIR=	${PORTNAME:S/_/-/}
Index: ports/www/mod_fcgid/distinfo
===================================================================
RCS file: /home/pcvs/ports/www/mod_fcgid/distinfo,v
retrieving revision 1.7
diff -u -r1.7 distinfo
--- ports/www/mod_fcgid/distinfo	11 Jun 2007 12:07:54 -0000	1.7
+++ ports/www/mod_fcgid/distinfo	14 Oct 2007 13:56:06 -0000
@@ -1,3 +1,3 @@
-MD5 (mod_fcgid.2.1.tar.gz) = 0bc036276e378463c80617ff57e853dc
-SHA256 (mod_fcgid.2.1.tar.gz) = 9d847f66f8067c5b8de06088a04356d22cee9ced2db7d04be6d6a7613c6b83df
-SIZE (mod_fcgid.2.1.tar.gz) = 54359
+MD5 (mod_fcgid.2.2.tar.gz) = ce7d7b16e69643dbd549d43d85025983
+SHA256 (mod_fcgid.2.2.tar.gz) = 7a0985a120dceb4c6974e8bf216752b0b763ae949f5dfbbf93cc350510e4c80e
+SIZE (mod_fcgid.2.2.tar.gz) = 56954
Index: ports/www/mod_fcgid/files/patch-arch-unix-fcgid_proctbl_unix.c
===================================================================
RCS file: ports/www/mod_fcgid/files/patch-arch-unix-fcgid_proctbl_unix.c
diff -N ports/www/mod_fcgid/files/patch-arch-unix-fcgid_proctbl_unix.c
--- ports/www/mod_fcgid/files/patch-arch-unix-fcgid_proctbl_unix.c	28 Jun 2007 18:47:54 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,98 +0,0 @@
---- arch/unix/fcgid_proctbl_unix.c.orig	Fri Feb 16 04:34:41 2007
-+++ arch/unix/fcgid_proctbl_unix.c	Tue Feb 27 18:33:28 2007
-@@ -1,4 +1,5 @@
- #include "fcgid_proctbl.h"
-+#include "apr_version.h"
- #include "apr_shm.h"
- #include "apr_global_mutex.h"
- #include "fcgid_global.h"
-@@ -17,6 +18,89 @@
- static fcgid_share *_global_memory = NULL;
- static fcgid_global_share *g_global_share = NULL;	/* global information */
- static size_t g_table_size = FCGID_PROC_TABLE_SIZE;
-+
-+/* apr version 0.x not support apr_shm_remove, I have to copy it from apr version 1.x */
-+#if (APR_MAJOR_VERSION < 1)
-+#ifdef HAVE_SYS_MMAN_H
-+#include <sys/mman.h>
-+#endif
-+#ifdef HAVE_SYS_IPC_H
-+#include <sys/ipc.h>
-+#endif
-+#ifdef HAVE_SYS_MUTEX_H
-+#include <sys/mutex.h>
-+#endif
-+#ifdef HAVE_SYS_SHM_H
-+#include <sys/shm.h>
-+#endif
-+#if !defined(SHM_R)
-+#define SHM_R 0400
-+#endif
-+#if !defined(SHM_W)
-+#define SHM_W 0200
-+#endif
-+#ifdef HAVE_SYS_FILE_H
-+#include <sys/file.h>
-+#endif
-+
-+static apr_status_t apr_shm_remove(const char *filename, apr_pool_t * pool)
-+{
-+#if APR_USE_SHMEM_SHMGET
-+	apr_status_t status;
-+	apr_file_t *file;
-+	key_t shmkey;
-+	int shmid;
-+#endif
-+
-+#if APR_USE_SHMEM_MMAP_TMP
-+	return apr_file_remove(filename, pool);
-+#endif
-+#if APR_USE_SHMEM_MMAP_SHM
-+	if (shm_unlink(filename) == -1) {
-+		return errno;
-+	}
-+	return APR_SUCCESS;
-+#endif
-+#if APR_USE_SHMEM_SHMGET
-+	/* Presume that the file already exists; just open for writing */
-+	status = apr_file_open(&file, filename, APR_WRITE,
-+						   APR_OS_DEFAULT, pool);
-+	if (status) {
-+		return status;
-+	}
-+
-+	/* ftok() (on solaris at least) requires that the file actually
-+	 * exist before calling ftok(). */
-+	shmkey = ftok(filename, 1);
-+	if (shmkey == (key_t) - 1) {
-+		goto shm_remove_failed;
-+	}
-+
-+	apr_file_close(file);
-+
-+	if ((shmid = shmget(shmkey, 0, SHM_R | SHM_W)) < 0) {
-+		goto shm_remove_failed;
-+	}
-+
-+	/* Indicate that the segment is to be destroyed as soon
-+	 * as all processes have detached. This also disallows any
-+	 * new attachments to the segment. */
-+	if (shmctl(shmid, IPC_RMID, NULL) == -1) {
-+		goto shm_remove_failed;
-+	}
-+	return apr_file_remove(filename, pool);
-+
-+  shm_remove_failed:
-+	status = errno;
-+	/* ensure the file has been removed anyway. */
-+	apr_file_remove(filename, pool);
-+	return status;
-+#endif
-+
-+	/* No support for anonymous shm */
-+	return APR_ENOTIMPL;
-+}
-+#endif							/* APR_MAJOR_VERSION<1 */
- 
- apr_status_t
- proctable_post_config(server_rec * main_server, apr_pool_t * configpool)
--- mod_fcgid.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list