From owner-svn-ports-all@freebsd.org Sun Sep 11 21:55:30 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CECA2BD625E; Sun, 11 Sep 2016 21:55:30 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85B13AF; Sun, 11 Sep 2016 21:55:30 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u8BLtTxU092773; Sun, 11 Sep 2016 21:55:29 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u8BLtT5n092771; Sun, 11 Sep 2016 21:55:29 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201609112155.u8BLtT5n092771@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Sun, 11 Sep 2016 21:55:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421879 - in head/devel/tcl-trf: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2016 21:55:30 -0000 Author: marino Date: Sun Sep 11 21:55:29 2016 New Revision: 421879 URL: https://svnweb.freebsd.org/changeset/ports/421879 Log: devel/tcl-trf: Add SSL flags and allow building with LibreSSL Approved by: SSL blanket Modified: head/devel/tcl-trf/Makefile head/devel/tcl-trf/files/patch-sha Modified: head/devel/tcl-trf/Makefile ============================================================================== --- head/devel/tcl-trf/Makefile Sun Sep 11 21:52:17 2016 (r421878) +++ head/devel/tcl-trf/Makefile Sun Sep 11 21:55:29 2016 (r421879) @@ -44,7 +44,9 @@ post-patch: # # -DTRF_USE_MD # -USE_OPENSSL= yes +USES+= ssl +CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} +CFLAGS+= -I${OPENSSLINC} .endif do-install: Modified: head/devel/tcl-trf/files/patch-sha ============================================================================== --- head/devel/tcl-trf/files/patch-sha Sun Sep 11 21:52:17 2016 (r421878) +++ head/devel/tcl-trf/files/patch-sha Sun Sep 11 21:55:29 2016 (r421879) @@ -1,20 +1,27 @@ ---- generic/sha.c 2009-07-12 21:34:41.000000000 -0400 -+++ generic/sha.c 2009-07-12 23:11:26.000000000 -0400 -@@ -29,12 +29,5 @@ +--- generic/sha.c.orig 2009-06-18 04:54:44 UTC ++++ generic/sha.c +@@ -27,15 +27,11 @@ + * CVS: $Id: sha.c,v 1.4 2007/10/05 23:12:21 andreas_kupries Exp $ + */ - #include "transformInt.h" +-#include "transformInt.h" -#include "sha/sha.h" -- ++#include ++#ifndef OPENSSL_NO_SHA0 + -#ifdef WORDS_BIGENDIAN -#undef LITTLE_ENDIAN -#else -#undef LITTLE_ENDIAN -#define LITTLE_ENDIAN -#endif ++#include "transformInt.h" +#include /* -@@ -46,30 +39,8 @@ + * Generator description +@@ -45,32 +41,10 @@ + * message digest. */ -#define DIGEST_SIZE (SHA_DIGESTSIZE) @@ -47,7 +54,9 @@ - /* * Generator definition. -@@ -80,8 +51,8 @@ + */ +@@ -79,10 +53,10 @@ static Trf_MessageDigestDescription mdDe + "sha", sizeof (CTX_TYPE), DIGEST_SIZE, - MDsha_Start, @@ -60,7 +69,9 @@ + (Trf_MDFinal *)SHA_Final, NULL }; -@@ -111,181 +82,2 @@ + +@@ -110,182 +84,5 @@ Tcl_Interp* interp; + { return Trf_RegisterMessageDigest (interp, &mdDescription); } - @@ -118,7 +129,7 @@ -unsigned int character; -{ - sha_trf_info* s = (sha_trf_info*) context; -- + - s->buf [s->count] = character; - s->count ++; - @@ -228,7 +239,7 @@ - -#ifndef WORDS_BIGENDIAN - Trf_FlipRegisterLong (s->s.digest, SHA_DIGESTSIZE); --#endif + #endif - - memcpy (digest, s->s.digest, SHA_DIGESTSIZE); -}