git: ab02d0aaf390 - main - security/rhash: cleanup the port and improve `do-test' target

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Fri, 01 Aug 2025 12:21:01 UTC
The branch main has been updated by danfe:

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

commit ab02d0aaf3904ae246e9506b479692bafaf10e21
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-08-01 12:20:06 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-08-01 12:20:06 +0000

    security/rhash: cleanup the port and improve `do-test' target
    
    Test the newly built program rather than what's currently installed.
    While here, drop no longer needed `--mandir' from the CONFIGURE_ARGS
    and sort the `pkg-plist' after manpages were moved.
    
    PR:             283630
    Submitted by:   tijl
---
 security/rhash/Makefile  |  4 ++--
 security/rhash/pkg-plist | 20 ++++++++++----------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/security/rhash/Makefile b/security/rhash/Makefile
index 796bd8f2a7ad..b85582372b45 100644
--- a/security/rhash/Makefile
+++ b/security/rhash/Makefile
@@ -18,7 +18,7 @@ LICENSE=	BSD0CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 HAS_CONFIGURE=	yes
-CONFIGURE_ARGS=	--prefix="${PREFIX}" --mandir="${PREFIX}/share/man" \
+CONFIGURE_ARGS=	--prefix="${PREFIX}" \
 		--pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
 		--enable-lib-static --enable-openssl-runtime \
 		--extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}"
@@ -48,6 +48,6 @@ post-install-DOCS-on:
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 do-test:
-	cd ${WRKSRC}/tests && ${SH} test_rhash.sh --full --shared
+	cd ${WRKSRC}/tests && ${SH} test_rhash.sh --full --shared ../rhash
 
 .include <bsd.port.mk>
diff --git a/security/rhash/pkg-plist b/security/rhash/pkg-plist
index bae5e44582f9..f123ab859be0 100644
--- a/security/rhash/pkg-plist
+++ b/security/rhash/pkg-plist
@@ -18,6 +18,16 @@ lib/librhash.so
 lib/librhash.so.1
 lib/librhash.so.1.4.4
 libdata/pkgconfig/librhash.pc
+%%NLS%%share/locale/ca/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/de/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/en_AU/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/es/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/it/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/rhash.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/rhash.mo
 share/man/man1/ed2k-link.1.gz
 share/man/man1/edonr256-hash.1.gz
 share/man/man1/edonr512-hash.1.gz
@@ -30,13 +40,3 @@ share/man/man1/sfv-hash.1.gz
 share/man/man1/tiger-hash.1.gz
 share/man/man1/tth-hash.1.gz
 share/man/man1/whirlpool-hash.1.gz
-%%NLS%%share/locale/ca/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/de/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/en_AU/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/es/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/fr/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/gl/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/it/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/ro/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/ru/LC_MESSAGES/rhash.mo
-%%NLS%%share/locale/uk/LC_MESSAGES/rhash.mo