head 1.5; access; symbols pkgsrc-2026Q3:1.4.0.60 pkgsrc-2026Q3-base:1.4 pkgsrc-2026Q2:1.4.0.58 pkgsrc-2026Q2-base:1.4 pkgsrc-2026Q1:1.4.0.56 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.54 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.52 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.50 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.48 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.46 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.44 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.42 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.40 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.38 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.36 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.34 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.32 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.30 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.28 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.26 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.24 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.22 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.20 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.18 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.16 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.14 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.12 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.10 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.6 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.8 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.4 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.2 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.2.0.4 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.2 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.1.0.42 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.40 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.38 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.36 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.34 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.30 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.28 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.26 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.24 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.22 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.20 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.18 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.16 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.14 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.12 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.10 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.8 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.6 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.4 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.2; locks; strict; comment @ * @; 1.5 date 2026.10.31.20.45.42; author hauke; state dead; branches; next 1.4; commitid XMWQFgRCfMiGFF1H; 1.4 date 2019.05.09.09.37.36; author hauke; state Exp; branches; next 1.3; commitid oSMXPBY6BhKSNvmB; 1.3 date 2019.05.03.11.04.34; author hauke; state Exp; branches; next 1.2; commitid 3ZuERMVL2ct0tKlB; 1.2 date 2018.12.18.14.16.18; author hauke; state Exp; branches; next 1.1; commitid c5W902nRC8dETh4B; 1.1 date 2014.01.08.11.54.04; author hauke; state Exp; branches 1.1.2.1; next ; commitid ptD62ZWvIhxw7jkx; 1.1.2.1 date 2014.01.08.11.54.04; author tron; state dead; branches; next 1.1.2.2; commitid UQbNiIoeMpZZslkx; 1.1.2.2 date 2014.01.08.18.53.27; author tron; state Exp; branches; next ; commitid UQbNiIoeMpZZslkx; desc @@ 1.5 log @sysutils/radmind -- update to v1.15.0 1.15.0 - 2026-10-22 Added fsdiff -E generates shell-safe transcript paths and link targets: spaces are encoded as \ rather than \b. Readers now also accept \ , so transcripts can be copied into shell commands without changing their paths. fsdiff -t omits differences for files whose only changed attribute is the modification timestamp, allowing smaller transcripts when timestamps are not significant. rash -C generate prints a SHA-1 checksum for the difference transcript of applied changes. rash -C verifies that checksum in auto mode and warns about a mismatch in update and force modes. contrib/specialist helps generate special-file transcript entries from a path list or an existing transcript. Docker image, multi-architecture (including ARM64), Docker Compose, macOS package, Ubuntu binary, Homebrew, and GitHub release build workflows. bootstrap.sh prepares a source checkout for the ./configure && make build workflow. Changed Updated the bundled libsnet dependency and moved its source to the GitHub-hosted project. Modernized TLS support for OpenSSL 1.1 and later, while retaining compatibility shims for older OpenSSL releases. Configuration now detects the current OpenSSL version symbol. Improved macOS support: APFS resource-fork writes work even when the target has no existing resource fork; builds and packages support current macOS environments; and the macOS installer now uses pkgbuild/productbuild. The build supports parallel make, has corrected program prerequisites, and produces uniquely named distribution archives. --with-pam accepts a path; configure also detects the appropriate makedev(3) header and common Fink installation prefixes. Radmind now uses libsnet as a Git submodule; checkout and build documentation has been updated accordingly. Reworked the project documentation into README.md, with build, Docker, Homebrew, and project-history guidance. Fixed Eliminated EVP digest-context leaks and double frees in transfer operations, along with several other memory and file-handle leaks. Prevented a base64 encode/decode buffer overrun and corrected Finder-info encoding length handling. Fixed OpenSSL API deprecation and opaque-structure build failures, including FreeBSD and Apple-system-OpenSSL compatibility. Fixed potential path-buffer overflow when processing file_root. Fixed 64-bit time_t support on NetBSD and formatting of custom file mode, user, and group metadata. lapply -F now warns rather than fails when a file to remove is already absent; it also handles APFS resource forks correctly. fsdiff -1 - applies exclusions to stdin paths, skips missing stdin paths with a warning, and has more robust relative/absolute path canonicalization. Special-file metadata lookup now checks a per-file transcript, the special directory transcript, and the default special transcript, with clearer diagnostics and safe path handling. Improved configuration parsing: allocation failures are checked, nested @@include depth is counted correctly, and rejected hosts report the configuration file involved. t2pkg no longer relies on unnecessary realpath calls; existing output directories are accepted. The lcreate manual page was also corrected. Notes The default transcript space encoding remains \b for compatibility with older Radmind readers. Use fsdiff -E only where consumers support \ . Development infrastructure, CI maintenance, formatting cleanup, and release automation changes are included in this release but do not alter Radmind's runtime protocol. @ text @$NetBSD: patch-retr.c,v 1.4 2019/05/09 09:37:36 hauke Exp $ Remove stale extern declaration Move to openssl 1.1 api --- retr.c.orig 2010-12-13 03:42:49.000000000 +0000 +++ retr.c @@@@ -31,6 +31,7 @@@@ #include +#include "openssl_compat.h" #include "applefile.h" #include "connect.h" #include "cksum.h" @@@@ -47,7 +48,6 @@@@ extern int verbose; extern int showprogress; extern int dodots; extern int cksum; -extern int errno; extern int create_prefix; extern SSL_CTX *ctx; @@@@ -74,7 +74,7 @@@@ retr( SNET *sn, char *pathdesc, char *pa char buf[ 8192 ]; ssize_t rr; extern EVP_MD *md; - EVP_MD_CTX mdctx; + EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); unsigned char md_value[ EVP_MAX_MD_SIZE ]; char cksum_b64[ SZ_BASE64_E( EVP_MAX_MD_SIZE ) ]; @@@@ -84,7 +84,7 @@@@ retr( SNET *sn, char *pathdesc, char *pa fprintf( stderr, "%s\n", pathdesc ); return( 1 ); } - EVP_DigestInit( &mdctx, md ); + EVP_DigestInit( mdctx, md ); } if ( verbose ) printf( ">>> RETR %s\n", pathdesc ); @@@@ -165,7 +165,7 @@@@ retr( SNET *sn, char *pathdesc, char *pa goto error2; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rr ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rr ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } size -= rr; @@@@ -197,8 +197,9 @@@@ retr( SNET *sn, char *pathdesc, char *pa /* cksum file */ if ( cksum ) { - EVP_DigestFinal( &mdctx, md_value, &md_len ); + EVP_DigestFinal( mdctx, md_value, &md_len ); base64_e( md_value, md_len, cksum_b64 ); + EVP_MD_CTX_free(mdctx); if ( strcmp( trancksum, cksum_b64 ) != 0 ) { fprintf( stderr, "line %d: checksum in transcript does not match " "checksum from server\n", linenum ); @@@@ -246,7 +247,7 @@@@ retr_applefile( SNET *sn, char *pathdesc struct as_entry ae_ents[ 3 ]; struct timeval tv; extern EVP_MD *md; - EVP_MD_CTX mdctx; + EVP_MD_CTX *mdctx; unsigned char md_value[ EVP_MAX_MD_SIZE ]; char cksum_b64[ SZ_BASE64_E( EVP_MAX_MD_SIZE ) ]; @@@@ -256,7 +257,7 @@@@ retr_applefile( SNET *sn, char *pathdesc fprintf( stderr, "%s\n", pathdesc ); return( 1 ); } - EVP_DigestInit( &mdctx, md ); + EVP_DigestInit( mdctx, md ); } if ( verbose ) printf( ">>> RETR %s\n", pathdesc ); @@@@ -316,7 +317,7 @@@@ retr_applefile( SNET *sn, char *pathdesc return( -1 ); } if ( cksum ) { - EVP_DigestUpdate( &mdctx, (char *)&ah, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, (char *)&ah, (unsigned int)rc ); } /* name temp file */ @@@@ -373,7 +374,7 @@@@ retr_applefile( SNET *sn, char *pathdesc /* Should we check for valid ae_ents here? YES! */ if ( cksum ) { - EVP_DigestUpdate( &mdctx, (char *)&ae_ents, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, (char *)&ae_ents, (unsigned int)rc ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } @@@@ -398,7 +399,7 @@@@ retr_applefile( SNET *sn, char *pathdesc goto error2; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, finfo, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, finfo, (unsigned int)rc ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } size -= rc; @@@@ -448,7 +449,7 @@@@ retr_applefile( SNET *sn, char *pathdesc goto error3; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rc ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } if ( showprogress ) { @@@@ -482,7 +483,7 @@@@ retr_applefile( SNET *sn, char *pathdesc } if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rc ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout); } if ( showprogress ) { @@@@ -523,8 +524,9 @@@@ retr_applefile( SNET *sn, char *pathdesc if ( verbose ) printf( "<<< .\n" ); if ( cksum ) { - EVP_DigestFinal( &mdctx, md_value, &md_len ); + EVP_DigestFinal( mdctx, md_value, &md_len ); base64_e(( char*)&md_value, md_len, cksum_b64 ); + EVP_MD_CTX_free(mdctx); if ( strcmp( trancksum, cksum_b64 ) != 0 ) { fprintf( stderr, "line %d: checksum in transcript does not match " "checksum from server\n", linenum ); @ 1.4 log @Re-add a patch that had gone missing, removing a stale external declaration. @ text @d1 1 a1 1 $NetBSD: patch-retr.c,v 1.3 2019/05/03 11:04:34 hauke Exp $ @ 1.3 log @Add openssl 1.1 support, while maintaining compatibility to 1.0, from upstream with minor changes. @ text @d1 1 a1 1 $NetBSD: patch-retr.c,v 1.2 2018/12/18 14:16:18 hauke Exp $ d7 1 a7 1 --- retr.c.orig 2019-05-02 14:26:24.815072747 +0000 d17 9 a25 1 @@@@ -73,7 +74,7 @@@@ retr( SNET *sn, char *pathdesc, char *pa d34 1 a34 1 @@@@ -83,7 +84,7 @@@@ retr( SNET *sn, char *pathdesc, char *pa d43 1 a43 1 @@@@ -164,7 +165,7 @@@@ retr( SNET *sn, char *pathdesc, char *pa d52 1 a52 1 @@@@ -196,8 +197,9 @@@@ retr( SNET *sn, char *pathdesc, char *pa d63 1 a63 1 @@@@ -245,7 +247,7 @@@@ retr_applefile( SNET *sn, char *pathdesc d72 1 a72 1 @@@@ -255,7 +257,7 @@@@ retr_applefile( SNET *sn, char *pathdesc d81 1 a81 1 @@@@ -315,7 +317,7 @@@@ retr_applefile( SNET *sn, char *pathdesc d90 1 a90 1 @@@@ -372,7 +374,7 @@@@ retr_applefile( SNET *sn, char *pathdesc d99 1 a99 1 @@@@ -397,7 +399,7 @@@@ retr_applefile( SNET *sn, char *pathdesc d108 1 a108 1 @@@@ -447,7 +449,7 @@@@ retr_applefile( SNET *sn, char *pathdesc d117 1 a117 1 @@@@ -481,7 +483,7 @@@@ retr_applefile( SNET *sn, char *pathdesc d126 1 a126 1 @@@@ -522,8 +524,9 @@@@ retr_applefile( SNET *sn, char *pathdesc @ 1.2 log @Newer Linuxen (Arch here) have moved makedev(3) from to a Linux-only . Conditionally #include that in transcript.c and update.c. While here, comment the patches. @ text @d1 1 a1 1 $NetBSD: patch-retr.c,v 1.1 2014/01/08 11:54:04 hauke Exp $ d5 3 a7 1 --- retr.c.orig 2010-12-13 03:42:49.000000000 +0000 d9 111 a119 7 @@@@ -47,7 +47,6 @@@@ extern int verbose; extern int showprogress; extern int dodots; extern int cksum; -extern int errno; extern int create_prefix; extern SSL_CTX *ctx; d121 8 @ 1.1 log @Back-port and complete the fixes from radmind HEAD to support 64 bit time_t on NetBSD 6+. The configure patch had to be generated with autoconf downgraded to 2.61 - leave it to autohell to ruin your day... While we are here, shake, rattle & roll the patches. The resulting gyrations finally fix PR pkg/46555 @ text @d1 3 a3 1 $NetBSD$ @ 1.1.2.1 log @file patch-retr.c was added on branch pkgsrc-2013Q4 on 2014-01-08 18:53:27 +0000 @ text @d1 12 @ 1.1.2.2 log @Pullup ticket #4289 - requested by hauke sysutils/radmind: bug fix patch Revisions pulled up: - sysutils/radmind/Makefile 1.33-1.34 - sysutils/radmind/distinfo 1.19 - sysutils/radmind/patches/patch-Makefile.in 1.1 - sysutils/radmind/patches/patch-aa deleted - sysutils/radmind/patches/patch-ab deleted - sysutils/radmind/patches/patch-ac deleted - sysutils/radmind/patches/patch-ae deleted - sysutils/radmind/patches/patch-command.c 1.1 - sysutils/radmind/patches/patch-command.h 1.1 - sysutils/radmind/patches/patch-config.h.in 1.1 - sysutils/radmind/patches/patch-configure 1.1 - sysutils/radmind/patches/patch-configure.ac 1.1 - sysutils/radmind/patches/patch-ktcheck.c 1.1 - sysutils/radmind/patches/patch-largefile.h 1.1 - sysutils/radmind/patches/patch-lcksum.c 1.1 - sysutils/radmind/patches/patch-libsnet_snet.c 1.1 - sysutils/radmind/patches/patch-ra.sh 1.1 - sysutils/radmind/patches/patch-retr.c 1.1 - sysutils/radmind/patches/patch-transcript.c 1.1 - sysutils/radmind/patches/patch-update.c 1.1 --- Module Name: pkgsrc Committed By: hauke Date: Wed Jan 8 11:54:04 UTC 2014 Modified Files: pkgsrc/sysutils/radmind: Makefile distinfo Added Files: pkgsrc/sysutils/radmind/patches: patch-Makefile.in patch-command.c patch-command.h patch-config.h.in patch-configure patch-configure.ac patch-ktcheck.c patch-largefile.h patch-lcksum.c patch-libsnet_snet.c patch-ra.sh patch-retr.c patch-transcript.c patch-update.c Removed Files: pkgsrc/sysutils/radmind/patches: patch-aa patch-ab patch-ac patch-ae Log Message: Back-port and complete the fixes from radmind HEAD to support 64 bit time_t on NetBSD 6+. The configure patch had to be generated with autoconf downgraded to 2.61 - leave it to autohell to ruin your day... While we are here, shake, rattle & roll the patches. The resulting gyrations finally fix PR pkg/46555 --- Module Name: pkgsrc Committed By: hauke Date: Wed Jan 8 12:11:40 UTC 2014 Modified Files: pkgsrc/sysutils/radmind: Makefile Log Message: The package's build system does not ensure libsnet is built before linking to it, so mark unsafe for parallel makes. @ text @a0 12 $NetBSD$ --- retr.c.orig 2010-12-13 03:42:49.000000000 +0000 +++ retr.c @@@@ -47,7 +47,6 @@@@ extern int verbose; extern int showprogress; extern int dodots; extern int cksum; -extern int errno; extern int create_prefix; extern SSL_CTX *ctx; @