head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.8 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.6 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.4 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.2 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.5.0.4 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.2 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.4.0.4 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.2 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.3.0.6 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.4 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.2 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.2.0.10 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.8 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.6 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.4 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.2 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.1.0.2 pkgsrc-2022Q1-base:1.1; locks; strict; comment @# @; 1.6 date 2025.05.14.05.22.59; author adam; state Exp; branches; next 1.5; commitid rDc9G14SumojMPUF; 1.5 date 2024.10.14.13.04.00; author adam; state Exp; branches; next 1.4; commitid uBh3CvurxBDQ8DtF; 1.4 date 2024.05.14.14.37.48; author nia; state Exp; branches; next 1.3; commitid sqypATReHud5AY9F; 1.3 date 2023.07.18.06.13.51; author adam; state Exp; branches; next 1.2; commitid UvOEv63nXNmZsfxE; 1.2 date 2022.06.15.08.54.58; author adam; state Exp; branches; next 1.1; commitid SLr7xhEuRQQr97ID; 1.1 date 2022.01.10.00.40.47; author tnn; state Exp; branches; next ; commitid UJourXLRNBkSq1oD; desc @@ 1.6 log @rhash: updated to 1.4.6 1.4.6 Added BLAKE3 hash support (use new --blake3 flag) Faster file reading during hash computation Improved SHA1/SHA256 performance using Intel SHA CPU extensions Resolved build issues with GCC 7 and GCC 15 Updated translations @ text @$NetBSD: patch-librhash_Makefile,v 1.5 2024/10/14 13:04:00 adam Exp $ libtoolize. --- librhash/Makefile.orig 2025-05-13 20:58:34.000000000 +0000 +++ librhash/Makefile @@@@ -4,7 +4,7 @@@@ include config.mak HEADERS = algorithms.h byte_order.h plug_openssl.h rhash.h rhash_torrent.h aich.h blake2b.h blake2s.h blake3.h crc32.h ed2k.h edonr.h hex.h md4.h md5.h sha1.h sha_ni.h sha256.h sha512.h sha3.h ripemd-160.h gost12.h gost94.h has160.h snefru.h tiger.h tth.h torrent.h ustd.h util.h whirlpool.h SOURCES = algorithms.c byte_order.c plug_openssl.c rhash.c rhash_torrent.c aich.c blake2b.c blake2s.c blake3.c crc32.c ed2k.c edonr.c hex.c md4.c md5.c sha1.c sha_ni.c sha256.c sha512.c sha3.c ripemd-160.c gost12.c gost94.c has160.c snefru.c tiger.c tiger_sbox.c tth.c torrent.c util.c whirlpool.c whirlpool_sbox.c -OBJECTS = $(SOURCES:.c=.o) +OBJECTS = $(SOURCES:.c=.lo) LIB_HEADERS = rhash.h rhash_torrent.h TEST_STATIC = test_static$(EXEC_EXT) TEST_SHARED = test_shared$(EXEC_EXT) @@@@ -26,10 +26,7 @@@@ install-lib-static: $(LIBRHASH_STATIC) install-lib-shared: $(LIBRHASH_SHARED) $(EXTRA_INSTALL_LIBSHARED) $(INSTALL) -d $(SO_DIR) - $(INSTALL_SHARED) $(LIBRHASH_SHARED) $(SO_DIR)/ - test "x$(LIBRHASH_SO_MAJ)" = "x$(LIBRHASH_SHARED)" || ( \ - rm -f $(LIBDIR)/$(LIBRHASH_SO_MAJ) && \ - ln -s $(LIBRHASH_SHARED) $(LIBDIR)/$(LIBRHASH_SO_MAJ) ) + $(LIBTOOL) --mode=install --tag=CC $(INSTALL_SHARED) $(LIBRHASH_SHARED) $(SO_DIR)/ install-implib: $(INSTALL) -d $(LIBDIR) @@@@ -63,119 +60,10 @@@@ uninstall-lib-headers: #%.o: %.c # $(CC) -c $(CFLAGS) $< -o $@@ -# NOTE: dependences were generated by 'gcc -MM -DUSE_OPENSSL *.c' -# we are using plain old makefile style to support BSD make -aich.o: aich.c aich.h algorithms.h rhash.h byte_order.h ustd.h sha1.h \ - util.h - $(CC) -c $(CFLAGS) $< -o $@@ - -algorithms.o: algorithms.c algorithms.h rhash.h byte_order.h ustd.h \ - util.h aich.h sha1.h blake2b.h blake2s.h blake3.h crc32.h ed2k.h md4.h \ - edonr.h gost12.h gost94.h has160.h md5.h ripemd-160.h snefru.h sha_ni.h \ - sha256.h sha512.h sha3.h tiger.h torrent.h tth.h whirlpool.h \ - plug_openssl.h - $(CC) -c $(CFLAGS) $< -o $@@ - -blake2b.o: blake2b.c blake2b.h ustd.h byte_order.h - $(CC) -c $(CFLAGS) $< -o $@@ - -blake2s.o: blake2s.c blake2s.h ustd.h byte_order.h - $(CC) -c $(CFLAGS) $< -o $@@ - -blake3.o: blake3.c blake3.h ustd.h byte_order.h - $(CC) -c $(CFLAGS) $< -o $@@ - -byte_order.o: byte_order.c byte_order.h ustd.h - $(CC) -c $(CFLAGS) $< -o $@@ - -crc32.o: crc32.c byte_order.h ustd.h crc32.h - $(CC) -c $(CFLAGS) $< -o $@@ - -ed2k.o: ed2k.c ed2k.h md4.h ustd.h - $(CC) -c $(CFLAGS) $< -o $@@ - -edonr.o: edonr.c byte_order.h ustd.h edonr.h - $(CC) -c $(CFLAGS) $< -o $@@ - -gost12.o: gost12.c gost12.h ustd.h byte_order.h - $(CC) -c $(CFLAGS) $< -o $@@ - -gost94.o: gost94.c gost94.h ustd.h byte_order.h - $(CC) -c $(CFLAGS) $< -o $@@ - -has160.o: has160.c byte_order.h ustd.h has160.h - $(CC) -c $(CFLAGS) $< -o $@@ - -hex.o: hex.c hex.h ustd.h util.h - $(CC) -c $(CFLAGS) $< -o $@@ - -md4.o: md4.c byte_order.h ustd.h md4.h - $(CC) -c $(CFLAGS) $< -o $@@ - -md5.o: md5.c byte_order.h ustd.h md5.h - $(CC) -c $(CFLAGS) $< -o $@@ - -plug_openssl.o: plug_openssl.c util.h plug_openssl.h algorithms.h rhash.h \ - byte_order.h ustd.h - $(CC) -c $(CFLAGS) $< -o $@@ - -rhash.o: rhash.c rhash.h algorithms.h byte_order.h ustd.h hex.h \ - plug_openssl.h torrent.h sha1.h util.h - $(CC) -c $(CFLAGS) $(VERSION_CFLAGS) $< -o $@@ - -rhash_torrent.o: rhash_torrent.c rhash_torrent.h algorithms.h rhash.h \ - byte_order.h ustd.h torrent.h sha1.h - $(CC) -c $(CFLAGS) $< -o $@@ - -ripemd-160.o: ripemd-160.c byte_order.h ustd.h ripemd-160.h - $(CC) -c $(CFLAGS) $< -o $@@ - -sha1.o: sha1.c byte_order.h ustd.h sha1.h - $(CC) -c $(CFLAGS) $< -o $@@ - -sha_ni.o: sha_ni.c sha_ni.h sha1.h ustd.h sha256.h byte_order.h - $(CC) -c $(CFLAGS) $< -o $@@ - -sha256.o: sha256.c byte_order.h ustd.h sha256.h - $(CC) -c $(CFLAGS) $< -o $@@ - -sha3.o: sha3.c byte_order.h ustd.h sha3.h - $(CC) -c $(CFLAGS) $< -o $@@ - -sha512.o: sha512.c byte_order.h ustd.h sha512.h - $(CC) -c $(CFLAGS) $< -o $@@ - -snefru.o: snefru.c byte_order.h ustd.h snefru.h - $(CC) -c $(CFLAGS) $< -o $@@ - -test_lib.o: test_lib.c byte_order.h ustd.h rhash_torrent.h test_utils.h \ - rhash.h test_lib.h util.h - $(CC) -c $(CFLAGS) $< -o $@@ - -test_utils.o: test_utils.c test_utils.h byte_order.h ustd.h rhash.h - $(CC) -c $(CFLAGS) $< -o $@@ - -tiger.o: tiger.c byte_order.h ustd.h tiger.h - $(CC) -c $(CFLAGS) $< -o $@@ - -tiger_sbox.o: tiger_sbox.c byte_order.h ustd.h - $(CC) -c $(CFLAGS) $< -o $@@ - -torrent.o: torrent.c torrent.h algorithms.h rhash.h byte_order.h ustd.h \ - sha1.h hex.h util.h - $(CC) -c $(CFLAGS) $< -o $@@ - -tth.o: tth.c tth.h ustd.h tiger.h byte_order.h - $(CC) -c $(CFLAGS) $< -o $@@ - -util.o: util.c util.h - $(CC) -c $(CFLAGS) $< -o $@@ - -whirlpool.o: whirlpool.c byte_order.h ustd.h whirlpool.h - $(CC) -c $(CFLAGS) $< -o $@@ +.SUFFIXES: .lo -whirlpool_sbox.o: whirlpool_sbox.c byte_order.h ustd.h - $(CC) -c $(CFLAGS) $< -o $@@ +.c.lo: + $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CFLAGS) $(VERSION_CFLAGS) $< -o $@@ # build shared library $(EXPORTS_FILE): $(LIB_HEADERS) @@@@ -189,8 +77,8 @@@@ $(LIBRHASH_SOLINK): rm -f $(LIBRHASH_SOLINK) ln -s $(LIBRHASH_SO_MAJ) $(LIBRHASH_SOLINK) -$(LIBRHASH_SHARED): $(SOURCES) $(EXPORTS_TARGET) $(SOLINK_TARGET) - $(CC) $(SHARED_CFLAGS) $(VERSION_CFLAGS) $(SOURCES) $(SHARED_LDFLAGS) -o $@@ +$(LIBRHASH_SHARED): $(OBJECTS) + $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(OBJECTS) -rpath $(PREFIX)/lib -version-info 1:0 -o $@@ # build static library $(LIBRHASH_STATIC): $(OBJECTS) @ 1.5 log @rhash: updated to 1.4.5 Version 1.4.5 * Support --one-hash formatting option * Bugfix: Show correct config directory in the manpage * Bugfix: Updating must continue after a file access error * Bugfix: Show correct size and time for Windows symlinks * Bugfix: Fix building with glibc < 2.15 * Bugfix: Fix building on Solaris * Bugfix: Enable large file support on 32-bit targets * Bugfix: Fix building on Unix * Bugfix: Fix dynamic library symlink on macOS * Bugfix: Fix runtime error on WinXP * Bugfix: Fix dynamic library symlink on *BSD @ text @d1 1 a1 1 $NetBSD: patch-librhash_Makefile,v 1.4 2024/05/14 14:37:48 nia Exp $ d5 1 a5 1 --- librhash/Makefile.orig 2024-10-13 23:43:50.000000000 +0000 d9 2 a10 2 HEADERS = algorithms.h byte_order.h plug_openssl.h rhash.h rhash_torrent.h aich.h blake2b.h blake2s.h crc32.h ed2k.h edonr.h hex.h md4.h md5.h sha1.h sha256.h sha512.h sha3.h ripemd-160.h gost12.h gost94.h has160.h snefru.h tiger.h tth.h torrent.h ustd.h util.h whirlpool.h SOURCES = algorithms.c byte_order.c plug_openssl.c rhash.c rhash_torrent.c aich.c blake2b.c blake2s.c crc32.c ed2k.c edonr.c hex.c md4.c md5.c sha1.c sha256.c sha512.c sha3.c ripemd-160.c gost12.c gost94.c has160.c snefru.c tiger.c tiger_sbox.c tth.c torrent.c util.c whirlpool.c whirlpool_sbox.c d28 1 a28 1 @@@@ -63,111 +60,10 @@@@ uninstall-lib-headers: d39 4 a42 3 - aich.h sha1.h blake2b.h blake2s.h crc32.h ed2k.h md4.h edonr.h gost12.h \ - gost94.h has160.h md5.h ripemd-160.h snefru.h sha256.h sha512.h sha3.h \ - tiger.h torrent.h tth.h whirlpool.h d51 3 d84 2 a85 1 -plug_openssl.o: plug_openssl.c d102 3 d151 1 a151 1 @@@@ -181,8 +77,8 @@@@ $(LIBRHASH_SOLINK): @ 1.4 log @rhash: libtoolize, other portability improvements @ text @d1 1 a1 1 $NetBSD: patch-librhash_Makefile,v 1.3 2023/07/18 06:13:51 adam Exp $ d5 1 a5 1 --- librhash/Makefile.orig 2023-07-14 13:06:29.000000000 +0000 d21 1 a21 1 - test "x$(LIBRHASH_SO_MAJ)" != "x$(LIBRHASH_SHARED)" && \ d23 1 a23 1 - ln -s $(LIBRHASH_SHARED) $(LIBDIR)/$(LIBRHASH_SO_MAJ) d28 4 a31 8 @@@@ -59,115 +56,10 @@@@ install-lib-headers: uninstall-lib-headers: for f in $(LIB_HEADERS); do rm -f "$(INCDIR)/$$f"; done -# not using GNU make extensions for compatibility with Unix/*BSD make -#%.o: %.c -# $(CC) -c $(CFLAGS) $< -o $@@ - d34 2 a35 1 -aich.o: aich.c byte_order.h ustd.h algorithms.h rhash.h aich.h sha1.h d38 4 a41 4 -algorithms.o: algorithms.c byte_order.h ustd.h rhash.h algorithms.h \ - aich.h sha1.h crc32.h ed2k.h md4.h edonr.h gost12.h gost94.h has160.h \ - md5.h ripemd-160.h snefru.h sha256.h sha512.h sha3.h tiger.h torrent.h \ - tth.h whirlpool.h d71 1 a71 1 -hex.o: hex.c hex.h ustd.h d80 1 a80 2 -plug_openssl.o: plug_openssl.c algorithms.h rhash.h byte_order.h ustd.h \ - plug_openssl.h d83 2 a84 2 -rhash.o: rhash.c byte_order.h ustd.h algorithms.h rhash.h torrent.h \ - sha1.h plug_openssl.h util.h hex.h d87 2 a88 2 -rhash_torrent.o: rhash_torrent.c algorithms.h rhash.h byte_order.h ustd.h \ - torrent.h sha1.h rhash_torrent.h d113 1 a113 1 -test_utils.o: test_utils.c byte_order.h ustd.h rhash.h test_utils.h d122 2 a123 2 -torrent.o: torrent.c byte_order.h ustd.h algorithms.h rhash.h hex.h \ - torrent.h sha1.h d126 1 a126 1 -tth.o: tth.c byte_order.h ustd.h tth.h tiger.h d143 1 a143 1 @@@@ -181,8 +73,8 @@@@ $(LIBRHASH_SOLINK): @ 1.3 log @rhash: updated to 1.4.4 RHash v1.4.4 New option --unverified to print unverified files New option --missing to print missing files New printf-format directive '%d' to print file directory Print the algorithms being calculated on -vv Renamed --maxdepth option to --max-depth Support leading and trailing spaces in a file names Support escaping of special characters in file paths Change the simple file format to fit the sfv format LibRHash: Remove obsolete rhash_timer functions (API breaking change) Bugfix: Fix slash usage with wilcards on Windows @ text @d1 1 a1 1 $NetBSD: patch-librhash_Makefile,v 1.2 2022/06/15 08:54:58 adam Exp $ d3 1 a3 1 Make ar(1) flags compatible with SunOS d7 149 a155 1 @@@@ -187,7 +187,7 @@@@ $(LIBRHASH_SHARED): $(SOURCES) $(EXPORTS a157 6 rm -f $@@ - $(AR) -cqs $@@ $(OBJECTS) + $(AR) -crs $@@ $(OBJECTS) # test targets $(TEST_SHARED): $(LIBRHASH_SHARED) test_lib.o test_utils.o @ 1.2 log @rhash: updated to 1.4.3 RHash v1.4.3 Allow simultaneous usage of --update and --check options Honor --lowercase option while --embed-crc is in action Improve ripemd160 performance Support --brief option to show verification report without header and footer Support --ignore-missing option, to ignore missing files in --check mode Add --bt-transmission option to create Transmission compatible torrent files Honor hash file extension in --update mode LibRHash: add rhash_import() and rhash_export() functions Support runtime loading of OpenSSL 3.0 Bugfix: Show total speed in the update mode Bugfix: fix building of the LibRHash static library on Solaris Bugfix: hash options were sometimes ignored in the --check mode Bugfix: star character at the start of filepath must be ignored @ text @d1 1 a1 1 $NetBSD: patch-librhash_Makefile,v 1.1 2022/01/10 00:40:47 tnn Exp $ d5 1 a5 1 --- librhash/Makefile.orig 2022-06-14 20:25:13.000000000 +0000 d7 1 a7 1 @@@@ -181,7 +181,7 @@@@ $(LIBRHASH_SHARED): $(SOURCES) $(EXPORTS d15 1 a15 1 $(TEST_SHARED): $(LIBRHASH_SHARED) test_lib.o @ 1.1 log @rhash: fix build on SunOS @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- librhash/Makefile.orig 2021-07-14 20:55:34.000000000 +0000 d7 1 a7 2 @@@@ -180,7 +180,7 @@@@ $(LIBRHASH_SHARED): $(SOURCES) $(EXPORTS d10 3 a12 2 - $(AR) cqs $@@ $(OBJECTS) + $(AR) crs $@@ $(OBJECTS) d15 1 a15 1 $(TEST_SHARED): $(LIBRHASH_SHARED) test_hashes.o @