Skip to content

Commit

Permalink
Update to 1.7.22.
Browse files Browse the repository at this point in the history
Take maintainer with permission.

OK sebastia@, sthen@.
  • Loading branch information
stu committed Jun 8, 2022
1 parent e39da46 commit 4d4448e
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 112 deletions.
48 changes: 29 additions & 19 deletions security/tcltls/Makefile
Original file line number Diff line number Diff line change
@@ -1,47 +1,57 @@
BROKEN= Needs update to less outdated version and checking of dependent ports

COMMENT= OpenSSL Tcl extension

VERSION= 1.6
VERSION= 1.7.22

DISTNAME= tls${VERSION}-src
PKGNAME= tcltls-${VERSION}
REVISION= 4
DISTNAME= tcltls-${VERSION}

CATEGORIES= security

HOMEPAGE= http://tls.sourceforge.net/
HOMEPAGE= http://core.tcl-lang.org/tcltls/

MAINTAINER= Sebastian Reitenbach <[email protected]>
MAINTAINER= Stuart Cassoff <[email protected]>

# BSD
PERMIT_PACKAGE= Yes

WANTLIB= ssl crypto

MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tls/}
MASTER_SITES= ${HOMEPAGE:=uv/}

MODULES= lang/tcl

MODTCL_VERSION= 8.6
RUN_DEPENDS= ${MODTCL_RUN_DEPENDS}
BUILD_DEPENDS= ${RUN_DEPENDS}

WRKDIST= ${WRKDIR}/tls${VERSION}
FAKE_FLAGS = PACKAGE_INSTALL_DIR='$$(TCL_PACKAGE_PATH)/tcltls' \
INSTALL_PROGRAM='$$(INSTALL_DATA)'

TEST_FLAGS = TESTFLAGS='${TESTFLAGS}'
SEPARATE_BUILD =Yes
CONFIGURE_STYLE=gnu

CONFIGURE_ARGS= --libdir=${MODTCL_TCLDIR} \
--with-tcl=${MODTCL_LIBDIR} \
--with-tclinclude=${MODTCL_INCDIR} \
--with-ssl-dir=/usr \
--includedir=${PREFIX}/include/tcltls
--includedir=${PREFIX}/include/tcltls \
--disable-rpath \
--enable-deterministic \
--enable-ssl-fastpath

# Tcltls configure will always choose tclsh8.6 (if installed) over tclsh8.5.
# Ensure that the tclsh chosen matches MODTCL_VERSION.
CONFIGURE_ENV += TCLSH_NATIVE=${MODTCL_BIN}

FAKE_FLAGS = PKG_DIR='$$(PACKAGE_NAME)' INSTALL_PROGRAM='$$(INSTALL_DATA)'
INSTALL_TARGET= install-binaries
TEST_TARGET= test
CFLAGS += -DNO_SSL2 -DNO_SSL3
SUBST_VARS= VER

VER= ${VERSION:S/.//g}
# Use TESTFLAGS to control the Tcltls tests
TESTFLAGS =

# --enable-ssl-fastpath is the preferred option
# but these tests will fail without it.
# tlsIO-9.2 tlsIO-2.11 tlsIO-12.3
# To be revisited.
#
# Use premade DH primes instead of generating new; builds faster.
# --enable-deterministic

post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tcltls/
Expand Down
4 changes: 2 additions & 2 deletions security/tcltls/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (tls1.6-src.tar.gz) = rexQFDqa1jSmcdJPfHu/JFVIfrXxLSkPQXl8MqmLk/M=
SIZE (tls1.6-src.tar.gz) = 168043
SHA256 (tcltls-1.7.22.tar.gz) = 6E4reideyCxKqp0bH5eG2+Q1jIFekXU5/+f2Z/9Lw7Q=
SIZE (tcltls-1.7.22.tar.gz) = 165206
12 changes: 0 additions & 12 deletions security/tcltls/patches/patch-configure

This file was deleted.

39 changes: 0 additions & 39 deletions security/tcltls/patches/patch-tests_ciphers_test

This file was deleted.

20 changes: 20 additions & 0 deletions security/tcltls/patches/patch-tlsBIO_c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Found in the Debian port:
http://deb.debian.org/debian/pool/main/t/tcltls/tcltls_1.7.22-2.debian.tar.xz

Index: tlsBIO.c
--- tlsBIO.c.orig
+++ tlsBIO.c
@@ -231,9 +231,12 @@ static long BioCtrl(BIO *bio, int cmd, long num, void
switch (cmd) {
case BIO_CTRL_RESET:
dprintf("Got BIO_CTRL_RESET");
- num = 0;
+ ret = 0;
+ break;
case BIO_C_FILE_SEEK:
dprintf("Got BIO_C_FILE_SEEK");
+ ret = 0;
+ break;
case BIO_C_FILE_TELL:
dprintf("Got BIO_C_FILE_TELL");
ret = 0;
12 changes: 12 additions & 0 deletions security/tcltls/patches/patch-tlsInt_h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Index: tlsInt.h
--- tlsInt.h.orig
+++ tlsInt.h
@@ -54,7 +54,7 @@
* Determine if we should use the pre-OpenSSL 1.1.0 API
*/
#undef TCLTLS_OPENSSL_PRE_1_1
-#if (defined(LIBRESSL_VERSION_NUMBER)) || OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
# define TCLTLS_OPENSSL_PRE_1_1_API 1
#endif

36 changes: 0 additions & 36 deletions security/tcltls/patches/patch-tlsX509_c

This file was deleted.

7 changes: 3 additions & 4 deletions security/tcltls/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
lib/tcl/tls/
lib/tcl/tls/libtls${VER}.so
lib/tcl/tls/pkgIndex.tcl
lib/tcl/tls/tls.tcl
lib/tcl/tcltls/
lib/tcl/tcltls/pkgIndex.tcl
@so lib/tcl/tcltls/tcltls.so
share/doc/tcltls/
share/doc/tcltls/tls.htm

0 comments on commit 4d4448e

Please sign in to comment.