From nobody@FreeBSD.org  Sun Sep  1 22:27:15 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 13291311
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Sep 2013 22:27:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id E54C02907
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Sep 2013 22:27:14 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r81MRE4d027177
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 Sep 2013 22:27:14 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r81MRDIW027159;
	Sun, 1 Sep 2013 22:27:13 GMT
	(envelope-from nobody)
Message-Id: <201309012227.r81MRDIW027159@oldred.freebsd.org>
Date: Sun, 1 Sep 2013 22:27:13 GMT
From: Mamoru Sakaue <sakaue.mamoru@samurai.mwghennn.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Patch to IPv6+SSL in sysutils/ucspi-tcp
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181734
>Category:       ports
>Synopsis:       Patch to IPv6+SSL in sysutils/ucspi-tcp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    garga
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 01 22:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun Sep 01 22:30:09 UTC 2013
>Originator:     Mamoru Sakaue
>Release:        8.4-RELEASE
>Organization:
MwGhennndo
>Environment:
FreeBSD Grubstake.EmpireNmw 8.4-RELEASE-p3 FreeBSD 8.4-RELEASE-p3 #0: Wed Aug 21 19:17:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
IPV6 and SSL options of sysutils/ucspi-tcp have been incompatible with each other because of the confliction of patches applied to them. In the world, there is another version of the SSL patch to apply after the IPv6 patch, however, it has not been employed in the FreeBSD port yet. This report proposes a modification to fix this problem.
>How-To-Repeat:
The latest version (ucspi-tcp-0.88_2) is set to be BROKEN if both IPV6 and SSL options are set.
>Fix:
Apply the attached patch.

Changes are made so that ucspi-tcp-ipv6-ssl-20061230.patch is employed instead of ucspi-tcp-ssl-20050405.patch.gz when both IPV6 and SSL options are set. All of fetch, build, installation and work processes are confirmed to be successful.

The version of the port is untouched. Please update to a proper one.

Patch attached with submission follows:

diff -ruN /usr/ports/sysutils/ucspi-tcp.orig/Makefile /usr/ports/sysutils/ucspi-tcp/Makefile
--- /usr/ports/sysutils/ucspi-tcp.orig/Makefile	2013-08-27 03:47:29.000000000 +0900
+++ /usr/ports/sysutils/ucspi-tcp/Makefile	2013-08-27 04:32:21.000000000 +0900
@@ -21,7 +21,6 @@
 RBL2SMTPD_DESC=	Don't drop connection, pass envvar to smtpd
 LIMITS_DESC=	Implement per-connection and other limits
 
-
 ALL_TARGET=	prog install instcheck
 
 SCRIPTS_ENV=	BINOWN="${BINOWN}" \
@@ -77,7 +76,7 @@
 PATCHFILES+=	ucspi-rss.diff:rss
 .endif
 
-.if ${PORT_OPTIONS:MSSL}
+.if ${PORT_OPTIONS:MSSL} && !${PORT_OPTIONS:MIPV6}
 # we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
 .include "${PORTSDIR}/Mk/bsd.openssl.mk"
 PATCH_SITES+=	http://www.nrg4u.com/qmail/:ssl
@@ -94,18 +93,19 @@
 .endif
 
 .if ${PORT_OPTIONS:MIPV6}
-# Neither can IPv6 and SSL
+PATCH_SITES+=	http://www.fefe.de/ucspi/:ipv6
+PATCHFILES+=	ucspi-tcp-0.88-ipv6.diff19.bz2:ipv6
+
 . if ${PORT_OPTIONS:MSSL}
-BROKEN=	SSL and IPv6 options cannot coexist, please choose one of them
+.include "${PORTSDIR}/Mk/bsd.openssl.mk"
+PATCH_SITES+=	http://manuel.mausz.at/coding/patches/ucspi-tcp/gentoo/:ipv6ssl
+PATCHFILES+=	ucspi-tcp-ipv6-ssl-20061230.patch:ipv6ssl
 . endif
 
 # Same for IPv6 and LIMITS
 . if ${PORT_OPTIONS:MLIMITS}
 BROKEN=	IPv6 and LIMITS options cannot coexist, please choose one of them
 . endif
-
-PATCH_SITES+=	http://www.fefe.de/ucspi/:ipv6
-PATCHFILES+=	ucspi-tcp-0.88-ipv6.diff19.bz2:ipv6
 .endif
 
 PATCH_SITES+=		${MASTER_SITE_LOCAL:S/$/:rss,ssl,rbl2smtpd/}
diff -ruN /usr/ports/sysutils/ucspi-tcp.orig/distinfo /usr/ports/sysutils/ucspi-tcp/distinfo
--- /usr/ports/sysutils/ucspi-tcp.orig/distinfo	2013-08-27 03:47:35.000000000 +0900
+++ /usr/ports/sysutils/ucspi-tcp/distinfo	2013-08-27 03:55:07.000000000 +0900
@@ -12,3 +12,5 @@
 SIZE (tcpserver-limits-2006-01-26.diff) = 15523
 SHA256 (ucspi-tcp-0.88-ipv6.diff19.bz2) = 35952cd290d714452c840580126004cbae8db65b1632df67ac9c8fad7d1f9ace
 SIZE (ucspi-tcp-0.88-ipv6.diff19.bz2) = 22632
+SHA256 (ucspi-tcp-ipv6-ssl-20061230.patch) = e8019f6af54d5a3601097d47d697a78863975c77d061837c37afe4678f805980
+SIZE (ucspi-tcp-ipv6-ssl-20061230.patch) = 14191


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Sep 1 22:30:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181734 
>Unformatted:
