Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2014 11:41:47 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351204 - in head/www/aws: . files
Message-ID:  <201404131141.s3DBfmwo009239@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Apr 13 11:41:47 2014
New Revision: 351204
URL: http://svnweb.freebsd.org/changeset/ports/351204
QAT: https://qat.redports.org/buildarchive/r351204/

Log:
  www/aws: Fix usage of aws in jailed environment
  
  AWS has a sanity check that assumes that binding to the standard loopback
  address of 127.0.0.1 is always possible, but this is not a good assumption
  inside a FreeBSD jail.  The result is that connection is success because
  it adjusts the 127.0.0.1 address correctly on the fly, but the sanity
  check is no longer valid.  The provided patch changes the sanity check to
  get the address rather than assuming 127.0.0.1.
  
  PR:		ports/188342
  submitted by:	Natacha Porte
  Approved by:	maintainer (myself)

Added:
  head/www/aws/files/patch-src_core_aws-net.adb   (contents, props changed)
Modified:
  head/www/aws/Makefile

Modified: head/www/aws/Makefile
==============================================================================
--- head/www/aws/Makefile	Sun Apr 13 11:40:10 2014	(r351203)
+++ head/www/aws/Makefile	Sun Apr 13 11:41:47 2014	(r351204)
@@ -3,7 +3,7 @@
 
 PORTNAME=	aws
 PORTVERSION=	3.1.0.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	http://downloads.dragonlace.net/src/
 
@@ -13,15 +13,14 @@ COMMENT=	Adacore Ada Web Server and fram
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-BUILD_DEPENDS=	gprbuild>=20120510:${PORTSDIR}/devel/gprbuild \
+BUILD_DEPENDS=	gprbuild:${PORTSDIR}/devel/gprbuild \
 		xmlada>=3.2:${PORTSDIR}/textproc/xmlada \
 		gnatpython>=20101207:${PORTSDIR}/devel/gnatpython
 
 USE_PYTHON=	yes
-USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
 NO_MTREE=	yes
-USES=		ada gmake
+USES=		ada gmake tar:bzip2
 DOTBUILD=	release
 ADDL_RPATH=	${LOCALBASE}/lib:${LOCALBASE}/lib/aws/native/relocatable
 

Added: head/www/aws/files/patch-src_core_aws-net.adb
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/aws/files/patch-src_core_aws-net.adb	Sun Apr 13 11:41:47 2014	(r351204)
@@ -0,0 +1,10 @@
+--- src/core/aws-net.adb.orig	2014-04-03 07:44:04.691630539 +0200
++++ src/core/aws-net.adb	2014-04-03 15:48:00.868957657 +0200
+@@ -439,7 +439,7 @@
+ 
+          --  to be shure that it is S1 and S2 connected together
+ 
+-         exit when Peer_Addr (STC (S2)) = Local_Host
++         exit when Peer_Addr (STC (S2)) = Get_Addr (STC (S1))
+            and then Peer_Port (STC (S2)) = Get_Port (STC (S1))
+            and then Peer_Port (STC (S1)) = Get_Port (STC (S2));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404131141.s3DBfmwo009239>