From issei@mikage.t-cnet.or.jp  Mon Aug 24 22:47:15 1998
Received: from ns.mikage.t-cnet.or.jp (ns.mikage.t-cnet.or.jp [210.169.187.130])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA04701
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Aug 1998 22:47:13 -0700 (PDT)
          (envelope-from issei@mikage.t-cnet.or.jp)
Received: from urd.mikage.t-cnet.or.jp (urd.mikage.t-cnet.or.jp [3ffe:505:a:0:2e0:18ff:fe80:2a2d])
	by ns.mikage.t-cnet.or.jp (8.9.1a+IPv6/3.7W) with ESMTP/IPv6 id OAA02021
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Aug 1998 14:46:25 +0900 (JST)
Received: (from issei@localhost)
	by urd.mikage.t-cnet.or.jp (8.9.1a+IPv6/3.7W) id OAA08554;
	Tue, 25 Aug 1998 14:45:28 +0900 (JST)
Message-Id: <199808250545.OAA08554@urd.mikage.t-cnet.or.jp>
Date: Tue, 25 Aug 1998 14:45:28 +0900 (JST)
From: issei@jp.FreeBSD.ORG
Reply-To: issei@jp.FreeBSD.ORG
To: FreeBSD-gnats-submit@freebsd.org
Subject: Update ports: net/SSLtelnet
X-Send-Pr-Version: 3.2

>Number:         7740
>Category:       ports
>Synopsis:       Update ports: net/SSLtelnet
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 24 22:50:00 PDT 1998
>Closed-Date:    Wed Aug 26 02:15:46 PDT 1998
>Last-Modified:  Wed Aug 26 02:16:23 PDT 1998
>Originator:     Issei Suzuki
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
A Site under T-CNET
>Environment:

	

>Description:

Update ports: net/SSLtelnet

1. The net/SSLtelnet in ports-currnet cannot be compiled with SSLeay library using 
   security/rsaref. If you set USA_RESIDENT=YES in /etc/make.conf and compile SSLeay
   library, you will encounter this problem.

2. Change the maintainer's e-mail address from <issei@t-cnet.or.jp> to
   <issei@jp.FreeBSD.ORG>. Only the address has been changed, the maintainer
   is still the same person.

>How-To-Repeat:

	

>Fix:

Apply this patch to net/SSLtelnet in ports-current.	


diff -urN SSLtelnet.old/Makefile SSLtelnet/Makefile
--- SSLtelnet.old/Makefile	Thu Jun  4 12:58:04 1998
+++ SSLtelnet/Makefile	Wed Jul 22 15:19:01 1998
@@ -1,7 +1,7 @@
 # New ports collection makefile for:	SSLtelnet
 # Version required:	0.11
 # Date created:		Mar 29, 1998
-# Whom:			issei@t-cnet.or.jp
+# Whom:			issei@jp.FreeBSD.ORG
 #
 # $Id: Makefile,v 1.2 1998/06/04 03:58:04 vanilla Exp $
 
@@ -9,7 +9,23 @@
 CATEGORIES=		net security
 MASTER_SITES=		ftp://ftp.psy.uq.oz.au/pub/Crypto/SSLapps/
 
-MAINTAINER=		issei@t-cnet.or.jp
+MAINTAINER=		issei@jp.FreeBSD.ORG
+
+.if defined(USA_RESIDENT) && ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
+pre-fetch:
+	@echo
+	@echo You must set variable USA_RESIDENT to YES, if you are USA resident
+	@echo or to NO, if you aren\'t USA resident to build this package.
+	@echo You must also have installed RSAREF if you are USA resident.
+	@false
+.elif defined(USA_RESIDENT)
+.if ${USA_RESIDENT} == YES
+LIB_DEPENDS=		rsaref\\.2\\.:${PORTSDIR}/security/rsaref
+
+pre-configure:
+	${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/Makefile.patch
+.endif
+.endif
 
 BUILD_DEPENDS=		ssleay:${PORTSDIR}/security/SSLeay
 RUN_DEPENDS=		ssleay:${PORTSDIR}/security/SSLeay
diff -urN SSLtelnet.old/files/Makefile.patch SSLtelnet/files/Makefile.patch
--- SSLtelnet.old/files/Makefile.patch	Thu Jan  1 09:00:00 1970
+++ SSLtelnet/files/Makefile.patch	Wed Jul 22 15:24:58 1998
@@ -0,0 +1,11 @@
+--- Makefile.orig	Wed Jul 22 15:23:12 1998
++++ Makefile	Wed Jul 22 15:24:43 1998
+@@ -98,7 +98,7 @@
+ 
+ #BSD386
+ CC = gcc -DTERMCAP $(socksflags)
+-LDADD = -ltermcap $(sockslib) 
++LDADD = -L$(SSLTOP)/lib -lssl -lcrypto -lRSAglue -lrsaref -ltermcap $(sockslib) 
+   
+ all:
+ 	@-mkdir bin 2>/dev/null
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vanilla 
State-Changed-When: Wed Aug 26 02:15:46 PDT 1998 
State-Changed-Why:  
Committed, thanks. 
>Unformatted:
