www/155580: [patch] www/mod_jail update to 0.5.1

Ethan Fouts freebsd.ports at efplace.com
Tue Mar 15 16:30:13 UTC 2011


>Number:         155580
>Category:       www
>Synopsis:       [patch] www/mod_jail update to 0.5.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 15 16:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ethan Fouts
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD srv0.efplace.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
This is a update from (0.4) to (0.5.1)

Works with Apache 2.2, have not tested on 1.3 or 2.0

Appears the authors website for this port has changed to: http://code.google.com/p/mod-jail/

To apply patch:
cd /usr/ports/www && patch -p0 -i /path/to/patch.txt
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ur mod_jail.orig/Makefile mod_jail/Makefile
--- mod_jail.orig/Makefile	2011-03-15 07:35:01.000000000 -0700
+++ mod_jail/Makefile	2011-03-15 08:16:14.000000000 -0700
@@ -6,21 +6,22 @@
 #
 
 PORTNAME=	mod_jail
-PORTVERSION=	0.4
-PORTREVISION=	2
+PORTVERSION=	0.5.1
+PORTREVISION=	0
 CATEGORIES=	www
-MASTER_SITES=	http://igorpopov.newmail.ru/
+MASTER_SITES=	http://mod-jail.googlecode.com/files/
 
 MAINTAINER=	apache at FreeBSD.org
 COMMENT=	Apache 1.3.x/2.0.xx module to enable an easy alternative to mod_chroot
 
 MAKE_JOBS_SAFE=  yes
 
-WRKSRC=		${WRKDIR}/mod_jail
+WRKSRC=		${WRKDIR}/mod_jail-0.5.1
 USE_APACHE=	1.3+
 AP_FAST_BUILD=	YES
 AP_GENPLIST=	YES
 
+NOPORTDOCS=	YES
 PORTDOCS=	changelog.html documentation.html download.html \
 		index.html
 
diff -ur mod_jail.orig/distinfo mod_jail/distinfo
--- mod_jail.orig/distinfo	2011-03-15 07:35:01.000000000 -0700
+++ mod_jail/distinfo	2011-03-15 07:44:27.000000000 -0700
@@ -1,3 +1,3 @@
-MD5 (mod_jail-0.4.tar.gz) = 188fb307e67428b05292dd73b9d6db2e
-SHA256 (mod_jail-0.4.tar.gz) = 85291f40c0d5d19a8ac68196c679969c2617858d46839a6400a735e2b4a873eb
-SIZE (mod_jail-0.4.tar.gz) = 14624
+MD5 (mod_jail-0.5.1.tar.gz) = 92562cf669641e14eb25b9caa4bd0734
+SHA256 (mod_jail-0.5.1.tar.gz) = 752822e2a512a7cf2d374cd4e7a0675c744248094b0392cc20fde969828cdd58
+SIZE (mod_jail-0.5.1.tar.gz) = 12000
diff -ur mod_jail.orig/files/patch-mod_jail.c mod_jail/files/patch-mod_jail.c
--- mod_jail.orig/files/patch-mod_jail.c	2011-03-15 07:35:01.000000000 -0700
+++ mod_jail/files/patch-mod_jail.c	2011-03-15 07:50:34.000000000 -0700
@@ -1,54 +1,11 @@
---- ./mod_jail.c.orig	2007-02-15 12:37:06.000000000 +0000
-+++ ./mod_jail.c	2008-12-28 15:39:43.000000000 +0000
-@@ -130,7 +130,11 @@
-     p_jail_cfg_t cfg = (p_jail_cfg_t) ap_pcalloc(p, sizeof(jail_cfg_t));
- 
-     cfg->jail_scrlevel = 3; /* good default value */
-+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
-     cfg->jail.version = 0;
-+#else
-+    cfg->jail.version = JAIL_API_VERSION;
-+#endif
-     return (void *)cfg;
- }
- 	
-@@ -190,7 +194,13 @@
-     if (!inet_aton(arg, &in)) {
- 	return "could not make sense of jail ip address";
+--- mod_jail.c.orig	2009-09-24 02:05:27.000000000 -0700
++++ mod_jail.c	2010-10-20 15:16:31.000000000 -0700
+@@ -391,7 +391,7 @@
+     if (p_addr == NULL) {
+         return NULL;
      }
-+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
-     cfg->jail.ip_number = ntohl(in.s_addr);
-+#else
-+    cfg->jail.ip4s = 1;
-+    cfg->jail.ip4 = ap_pcalloc(cmd->pool, sizeof(struct in_addr));
-+    cfg->jail.ip4[0].s_addr = in.s_addr;
-+#endif
- 
-     return NULL;
- }
-@@ -321,7 +331,11 @@
- 	return NULL;
-     }
-     cfg->jail_scrlevel = 3; /* good default value */
-+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
-     cfg->jail.version = 0;
-+#else
-+    cfg->jail.version = JAIL_API_VERSION;
-+#endif
-     return (void*)cfg;
- }
- 	
-@@ -378,7 +392,13 @@
-     if (!inet_aton(arg, &in)) {
- 	return "could not make sense of jail ip address";
-     }
-+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
-     cfg->jail.ip_number = ntohl(in.s_addr);
-+#else
-+    cfg->jail.ip4s = 1;
-+    cfg->jail.ip4 = ap_pcalloc(cmd->pool, sizeof(struct in_addr));
-+    cfg->jail.ip4[0].s_addr = in.s_addr;
-+#endif
- 
-     return NULL;
- }
+-    addr->s_addr = htonl(INADDR_LOOPBACK);
++    p_addr->s_addr = htonl(INADDR_LOOPBACK);
+     cfg->jail = (struct jail) {
+ 	.version = JAIL_API_VERSION,
+ 	.path = NULL,
diff -ur mod_jail.orig/pkg-descr mod_jail/pkg-descr
--- mod_jail.orig/pkg-descr	2011-03-15 07:35:01.000000000 -0700
+++ mod_jail/pkg-descr	2011-03-15 08:14:20.000000000 -0700
@@ -1,6 +1,7 @@
-mod_jail is Apache 1.3.xx/2.0.xx module, that makes running Apache in a secure jail
+mod_jail is Apache 1.3.xx/2.0.xx/2.2.xx module, that makes running Apache in a secure jail
 prison easy, so it is intended to run on FreeBSD only. It is similar to
 mod_chroot, but uses FreeBSD's specific system call - jail. Also mod_jail make
 it possible to change securelevel into jail prison.
 
-WWW: http://igorpopov.newmail.ru/mod_jail/
+WWW: http://code.google.com/p/mod-jail/
+ORIG WWW: http://igorpopov.newmail.ru/mod_jail/


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


More information about the freebsd-www mailing list