git: ea22326bc83a - main - databases/hiredis: update to version 1.0.2

From: Jimmy Olgeni <olgeni_at_FreeBSD.org>
Date: Fri, 29 Apr 2022 19:36:28 UTC
The branch main has been updated by olgeni:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ea22326bc83adc9044979bdb6887270ecc57e718

commit ea22326bc83adc9044979bdb6887270ecc57e718
Author:     Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2022-04-29 13:59:14 +0000
Commit:     Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2022-04-29 19:35:58 +0000

    databases/hiredis: update to version 1.0.2
    
    PR:             263647
    Reported by:    Sascha Biberhofer
    Security:       CVE-2021-32765
---
 databases/hiredis/Makefile  | 10 ++++++++--
 databases/hiredis/distinfo  |  5 +++--
 databases/hiredis/pkg-plist |  8 +++++++-
 3 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/databases/hiredis/Makefile b/databases/hiredis/Makefile
index f5b3e4ee0ad0..a25bad807669 100644
--- a/databases/hiredis/Makefile
+++ b/databases/hiredis/Makefile
@@ -1,7 +1,7 @@
 # Created by: Grzegorz Blach <gblach@FreeBSD.org>
 
 PORTNAME=	hiredis
-PORTVERSION=	0.13.3
+PORTVERSION=	1.0.2
 DISTVERSIONPREFIX=v
 CATEGORIES=	databases
 
@@ -18,13 +18,19 @@ USE_LDCONFIG=	yes
 
 CPE_VENDOR=	redislabs
 
+OPTIONS_DEFINE=		OPENSSL
+OPTIONS_DEFAULT=	OPENSSL
+OPENSSL_MAKE_ARGS=	USE_SSL=1
+
 post-patch:
 	@${REINPLACE_CMD} \
-		-e '/^REAL_/s/ \$$(ARCH)//' \
 		-e 's|\$$(INSTALL_LIBRARY_PATH)/\$$(PKGCONF_PATH)|\$$(DESTDIR)\$$(PREFIX)/libdata/\$$(PKGCONF_PATH)|' \
 		${WRKSRC}/Makefile
 
 post-build:
 	@${STRIP_CMD} ${WRKSRC}/libhiredis.so
 
+do-test:
+	cd ${WRKSRC} && ${MAKE_CMD} test
+
 .include <bsd.port.mk>
diff --git a/databases/hiredis/distinfo b/databases/hiredis/distinfo
index b8cf24490d0b..396712ba7db9 100644
--- a/databases/hiredis/distinfo
+++ b/databases/hiredis/distinfo
@@ -1,2 +1,3 @@
-SHA256 (redis-hiredis-v0.13.3_GH0.tar.gz) = 717e6fc8dc2819bef522deaca516de9e51b9dfa68fe393b7db5c3b6079196f78
-SIZE (redis-hiredis-v0.13.3_GH0.tar.gz) = 58291
+TIMESTAMP = 1651162224
+SHA256 (redis-hiredis-v1.0.2_GH0.tar.gz) = e0ab696e2f07deb4252dda45b703d09854e53b9703c7d52182ce5a22616c3819
+SIZE (redis-hiredis-v1.0.2_GH0.tar.gz) = 98139
diff --git a/databases/hiredis/pkg-plist b/databases/hiredis/pkg-plist
index f80650b00bbf..03915349befa 100644
--- a/databases/hiredis/pkg-plist
+++ b/databases/hiredis/pkg-plist
@@ -6,11 +6,17 @@ include/hiredis/adapters/libevent.h
 include/hiredis/adapters/libuv.h
 include/hiredis/adapters/macosx.h
 include/hiredis/adapters/qt.h
+include/hiredis/alloc.h
 include/hiredis/async.h
 include/hiredis/hiredis.h
+include/hiredis/hiredis_ssl.h
 include/hiredis/read.h
 include/hiredis/sds.h
 lib/libhiredis.a
 lib/libhiredis.so
-lib/libhiredis.so.0.13
+lib/libhiredis.so.1.0.0
+lib/libhiredis_ssl.a
+lib/libhiredis_ssl.so
+lib/libhiredis_ssl.so.1.0.0
 libdata/pkgconfig/hiredis.pc
+libdata/pkgconfig/hiredis_ssl.pc