From 51b906b083febd50a4cfbb5e4278a59d95b50216 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Thu, 12 Jun 2025 17:38:36 +0000 Subject: sysutils/bacula15-server: Add support for zstd compression You'll know you have zstd enabled if you find something like this: $ ldd /usr/local/sbin/bextract | grep zstd libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0xbab736bf000) $ ldd /usr/local/sbin/bacula-fd | grep std libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0x3e701988b000) * add libzstd.so:archivers/zstd to LIB_DEPENDS * apply upstream patches to configure and autoconf/configure Those patches are: * files/patch-configure https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/358e838a bring in some unset fixes, locally adjusted back to 15.0.2 * files/patch-autoconf_configure.in https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/commit/8d9669fb fix detection of zstd Upstream discussion: https://sourceforge.net/p/bacula/mailman/bacula-users/?viewmonth=202506 While here, comply with portlint for S3_LIB_DEPENDS PR: 287403 Sponsored by: BSDCan 2025 FreeBSD Dev Summit --- .../files/patch-autoconf_configure.in | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sysutils/bacula15-server/files/patch-autoconf_configure.in (limited to 'sysutils/bacula15-server/files/patch-autoconf_configure.in') diff --git a/sysutils/bacula15-server/files/patch-autoconf_configure.in b/sysutils/bacula15-server/files/patch-autoconf_configure.in new file mode 100644 index 000000000000..23cc3ecc68c5 --- /dev/null +++ b/sysutils/bacula15-server/files/patch-autoconf_configure.in @@ -0,0 +1,23 @@ +--- autoconf/configure.in.orig 2024-03-22 09:48:41 UTC ++++ autoconf/configure.in +@@ -982,8 +982,10 @@ if test x"${error}" == "x"; then + + if test x"${error}" == "x"; then + support_curl=yes +-fi ++fi + ++unset error ++ + AC_MSG_RESULT([$support_curl]) + if test "$support_curl" = "yes"; then + AC_DEFINE(HAVE_CURL, 1, [Define if CURL library is available]) +@@ -1042,6 +1044,8 @@ fi + ZSTD_LIBS="" + ZSTD_INC="" + fi ++ ++unset error + + AC_MSG_RESULT([$support_zstd]) + if test "$support_zstd" = "yes"; then -- cgit v1.2.3