git: e73ac7ce72be - main - security/rhash: non-functional changes to prepare for update

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Sun, 28 Dec 2025 13:18:33 UTC
The branch main has been updated by danfe:

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

commit e73ac7ce72be2d1714868d3e5ffc1a81da05cf8d
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-12-28 13:17:34 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-12-28 13:17:34 +0000

    security/rhash: non-functional changes to prepare for update
    
    - Chase HTTP/2 301 redirection in the WWW address
    - Move USES et al. block above HAS_CONFIGURE where it should
      be normally found
    - Reinstate MAKE_ARGS lost in r531582 (now commit 37cd5bfde4ba)
      and drop manual stripping in the `post-install' target
    - Replace `do-test' target with equivalent TEST_TARGET knob
    
    PR:     283630, 290603
---
 security/rhash/Makefile | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/security/rhash/Makefile b/security/rhash/Makefile
index b46de32c77a0..1186d9c83e7c 100644
--- a/security/rhash/Makefile
+++ b/security/rhash/Makefile
@@ -12,21 +12,23 @@ PATCHFILES+=	b8c91ea6551e99e10352386cd46ea26973bb4a4d.patch:-p1
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Utility and library for computing and checking of file hashes
-WWW=		https://rhash.sourceforge.net/
+WWW=		https://rhash.sourceforge.io/
 
 LICENSE=	BSD0CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+USES=		cpe
+CPE_VENDOR=	${PORTNAME}_project
+USE_LDCONFIG=	yes
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix="${PREFIX}" \
 		--pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
 		--enable-lib-static --enable-openssl-runtime \
 		--extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}"
+MAKE_ARGS=	INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+		INSTALL_SHARED="${INSTALL_LIB}"
 INSTALL_TARGET=	install install-lib-so-link install-pkg-config
-
-USES=		cpe
-CPE_VENDOR=	${PORTNAME}_project
-USE_LDCONFIG=	yes
+TEST_TARGET=	test-full
 
 WRKSRC=		${WRKDIR}/RHash-${PORTVERSION}
 
@@ -43,14 +45,8 @@ post-patch:
 	@${REINPLACE_CMD} -e '/BYTE_ORDER/s,__,_,g' \
 		${WRKSRC}/librhash/byte_order.h
 
-post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rhash ${STAGEDIR}${PREFIX}/lib/librhash.so
-
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
-do-test:
-	cd ${WRKSRC}/tests && ${SH} test_rhash.sh --full --shared ../rhash
-
 .include <bsd.port.mk>