1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

security/rhash: update RHash to the latest version 1.4.3

After a long long time, the patch* yielding ~1.6x performance boost
of RIPEMD-160 on some CPUs by interleaving the macro/function calls
had been finally integrated upstream, remove it from the port.

Reported by:	portscout

*) https://sourceforge.net/p/rhash/patches/5/
This commit is contained in:
Alexey Dokuchaev 2022-06-18 11:44:54 +00:00
parent bad098784d
commit 593c072323
3 changed files with 4 additions and 39 deletions

View File

@ -1,17 +1,11 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= rhash
PORTVERSION= 1.4.2
PORTVERSION= 1.4.3
CATEGORIES= security
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
PATCH_SITES= https://gitweb.gentoo.org/repo/gentoo.git/plain/app-crypt/rhash/files/:gentoo \
https://raw.githubusercontent.com/gentoo/gentoo/master/app-crypt/rhash/files/:gentoo \
https://sourceforge.net/p/rhash/patches/_discuss/thread/271b85e9/0ac7/attachment/:sf
PATCHFILES= \
rhash-1.3.2.patch:-p1:sf
MAINTAINER= danfe@FreeBSD.org
COMMENT= Utility and library for computing and checking of file hashes

View File

@ -1,5 +1,3 @@
TIMESTAMP = 1626297459
SHA256 (rhash-1.4.2-src.tar.gz) = 600d00f5f91ef04194d50903d3c79412099328c42f28ff43a0bdb777b00bec62
SIZE (rhash-1.4.2-src.tar.gz) = 416853
SHA256 (rhash-1.3.2.patch) = 9aeeb0d89f0203429a6f5433e7dd5fd4b621b34bc42fb6d5d32ede6279c990b0
SIZE (rhash-1.3.2.patch) = 9021
TIMESTAMP = 1655392419
SHA256 (rhash-1.4.3-src.tar.gz) = 1e40fa66966306920f043866cbe8612f4b939b033ba5e2708c3f41be257c8a3e
SIZE (rhash-1.4.3-src.tar.gz) = 429290

View File

@ -1,27 +0,0 @@
--- configure.orig 2021-07-14 20:55:34 UTC
+++ configure
@@ -513,14 +513,9 @@ else
CC_TMP="$CC"
test -n "$OPT_CC" && OTHER_CC= || OTHER_CC="gcc cc"
for CC in "$CC_TMP" $OTHER_CC; do
- cc_name_tmp=
if run_cmd "$CC -v"; then
cc_name_tmp=$($CC -v 2>&1 | tail -n 1 | cut -d ' ' -f 1)
- elif run_cmd "$CC --version"; then
- cc_name_tmp=$($CC --version 2>&1 | head -n 1 | cut -d ' ' -f 1)
- fi
- if test -n "${cc_name_tmp}"; then
- if echo "$cc_name_tmp" | grep -q "gcc"; then
+ if test "$cc_name_tmp" = "gcc"; then
cc_name=$cc_name_tmp
start_check "$CC version"
cc_vendor=gnu
@@ -544,7 +539,7 @@ else
finish_check "$cc_name $cc_version"
break
fi
- if echo "$cc_name_tmp" | grep -q "clang"; then
+ if $CC -v 2>&1 | grep -q "clang"; then
start_check "$CC version"
cc_vendor=clang
cc_version=$($CC -dumpversion 2>&1)