Does anyone know how to test this beyond "make test"?
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/security/yara/Makefile.inc,v
diff -u -p -r1.17 Makefile.inc
--- Makefile.inc 8 Feb 2026 12:22:40 -0000 1.17
+++ Makefile.inc 10 Feb 2026 11:27:44 -0000
@@ -1,5 +1,3 @@
-VERSION ?= 4.2.2
-
CATEGORIES = security
HOMEPAGE = https://virustotal.github.io/yara/
Index: main/Makefile
===================================================================
RCS file: /cvs/ports/security/yara/main/Makefile,v
diff -u -p -r1.10 Makefile
--- main/Makefile 8 Feb 2026 12:22:40 -0000 1.10
+++ main/Makefile 10 Feb 2026 11:27:44 -0000
@@ -1,13 +1,11 @@
COMMENT = pattern matching swiss knife
-DISTNAME = yara-${VERSION}
-
GH_PROJECT = yara
-REVISION = 1
+GH_TAGNAME = v4.5.5
WANTLIB += c crypto jansson m magic pthread z
-SHARED_LIBS += yara 1.0 # 0.0
+SHARED_LIBS += yara 2.0 # 0.0
CONFIGURE_STYLE = autoreconf
CONFIGURE_ARGS += --enable-cuckoo \
@@ -19,8 +17,8 @@ CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}
LIB_DEPENDS += devel/libmagic \
devel/jansson
-AUTOCONF_VERSION = 2.69
-AUTOMAKE_VERSION = 1.14
+AUTOCONF_VERSION = 2.71
+AUTOMAKE_VERSION = 1.16
AUTORECONF = ./bootstrap.sh
.include <bsd.port.mk>
Index: main/distinfo
===================================================================
RCS file: /cvs/ports/security/yara/main/distinfo,v
diff -u -p -r1.14 distinfo
--- main/distinfo 10 Jul 2022 12:19:03 -0000 1.14
+++ main/distinfo 10 Feb 2026 11:27:44 -0000
@@ -1,2 +1,2 @@
-SHA256 (yara-4.2.2.tar.gz) = IL1WhXxLA3xLqucVh7fSLQt7uwdaevpRa6NdrlD63SU=
-SIZE (yara-4.2.2.tar.gz) = 1287486
+SHA256 (yara-4.5.5.tar.gz) = 044w/ZweHHkh0cRWgmLZT1wta12hOf5JVypD/7xcU/Y=
+SIZE (yara-4.5.5.tar.gz) = 2202497
Index: main/patches/patch-Makefile_am
===================================================================
RCS file: /cvs/ports/security/yara/main/patches/patch-Makefile_am,v
diff -u -p -r1.1 patch-Makefile_am
--- main/patches/patch-Makefile_am 10 Jul 2022 12:19:03 -0000 1.1
+++ main/patches/patch-Makefile_am 10 Feb 2026 11:27:44 -0000
@@ -1,12 +1,16 @@
Index: Makefile.am
--- Makefile.am.orig
+++ Makefile.am
-@@ -15,7 +15,7 @@ AM_CFLAGS+=-g
+@@ -43,12 +43,6 @@ if DEBUG
+ AM_CFLAGS+=-g -fno-omit-frame-pointer
endif
- if OPTIMIZATION
+-if OPTIMIZATION
-AM_CFLAGS+=-O3
-+#AM_CFLAGS+=-O3
- else
- AM_CFLAGS+=-O0
+-else
+-AM_CFLAGS+=-O0
+-endif
+-
endif
+
+ if ADDRESS_SANITIZER
Index: main/patches/patch-configure_ac
===================================================================
RCS file: main/patches/patch-configure_ac
diff -N main/patches/patch-configure_ac
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ main/patches/patch-configure_ac 10 Feb 2026 11:27:44 -0000
@@ -0,0 +1,11 @@
+Index: configure.ac
+--- configure.ac.orig
++++ configure.ac
+@@ -364,6 +364,7 @@ AS_IF([test "x$have_crypto" = "xno"],
+ ])
+
+
++build_authenticode_module=false # uses removed X509at_* API
+
+ AM_CONDITIONAL([GCC], [test "x$GCC" = xyes])
+ AM_CONDITIONAL([PROTOC], [test "x${PROTOC}" != "x"])
Index: main/patches/patch-libyara_Makefile_am
===================================================================
RCS file: main/patches/patch-libyara_Makefile_am
diff -N main/patches/patch-libyara_Makefile_am
--- main/patches/patch-libyara_Makefile_am 10 Jul 2022 12:19:03 -0000
1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-Index: libyara/Makefile.am
---- libyara/Makefile.am.orig
-+++ libyara/Makefile.am
-@@ -107,7 +107,7 @@ AM_CFLAGS+=-g
- endif
-
- if OPTIMIZATION
--AM_CFLAGS+=-O3
-+#AM_CFLAGS+=-O3
- else
- AM_CFLAGS+=-O0
- endif
Index: main/patches/patch-libyara_modules_pe_pe_c
===================================================================
RCS file: /cvs/ports/security/yara/main/patches/patch-libyara_modules_pe_pe_c,v
diff -u -p -r1.1 patch-libyara_modules_pe_pe_c
--- main/patches/patch-libyara_modules_pe_pe_c 29 Aug 2024 20:49:51 -0000
1.1
+++ main/patches/patch-libyara_modules_pe_pe_c 10 Feb 2026 11:27:44 -0000
@@ -3,16 +3,16 @@ This uses the no longer available X509at
Index: libyara/modules/pe/pe.c
--- libyara/modules/pe/pe.c.orig
+++ libyara/modules/pe/pe.c
-@@ -1609,7 +1609,7 @@ static void pe_parse_exports(PE* pe)
+@@ -1735,7 +1735,7 @@ static void pe_parse_exports(PE* pe)
// some features used in pe_parse_certificates, if you are using BoringSSL
// instead of OpenSSL you should define BORINGSSL for YARA to compile
properly,
// but you won't have signature-related features in the PE module.
-#if defined(HAVE_LIBCRYPTO) && !defined(BORINGSSL)
+#if defined(HAVE_LIBCRYPTO) && !defined(BORINGSSL) &&
!defined(LIBRESSL_VERSION_NUMBER)
- //
- // Parse a PKCS7 blob, looking for certs and nested PKCS7 blobs.
-@@ -3579,7 +3579,7 @@ begin_declarations
+ #define write_certificate(cert, pe, fmt, ...)
\
+ do
\
+@@ -3902,7 +3902,7 @@ begin_declarations
declare_integer("number_of_resources");
declare_string("pdb_path");
@@ -21,7 +21,16 @@ Index: libyara/modules/pe/pe.c
begin_struct_array("signatures")
declare_string("thumbprint");
declare_string("issuer");
-@@ -3979,7 +3979,7 @@ int module_load(
+@@ -3988,7 +3988,7 @@ end_declarations
+
+ int module_initialize(YR_MODULE* module)
+ {
+-#if defined(HAVE_LIBCRYPTO) && !defined(BORINGSSL)
++#if defined(HAVE_LIBCRYPTO) && !defined(BORINGSSL) &&
!defined(LIBRESSL_VERSION_NUMBER)
+ // Initialize OpenSSL global objects for the auth library before any
+ // multithreaded environment as it is not thread-safe. This can
+ // only be called once per process.
+@@ -4395,7 +4395,7 @@ int module_load(
pe_parse_rich_signature(pe, block->base);
pe_parse_debug_directory(pe);
Index: main/pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/yara/main/pkg/PLIST,v
diff -u -p -r1.7 PLIST
--- main/pkg/PLIST 10 Jul 2022 12:19:03 -0000 1.7
+++ main/pkg/PLIST 10 Feb 2026 11:27:44 -0000
@@ -26,6 +26,7 @@ include/yara/re.h
include/yara/rules.h
include/yara/scan.h
include/yara/scanner.h
+include/yara/simple_str.h
include/yara/sizedstr.h
include/yara/stack.h
include/yara/stopwatch.h
@@ -33,6 +34,7 @@ include/yara/stream.h
include/yara/strutils.h
include/yara/threading.h
include/yara/types.h
+include/yara/unaligned.h
include/yara/utils.h
@static-lib lib/libyara.a
lib/libyara.la
Index: python/Makefile
===================================================================
RCS file: /cvs/ports/security/yara/python/Makefile,v
diff -u -p -r1.25 Makefile
--- python/Makefile 8 Feb 2026 12:22:40 -0000 1.25
+++ python/Makefile 10 Feb 2026 11:27:44 -0000
@@ -2,10 +2,9 @@ COMMENT = Python extension that gives ac
GH_PROJECT = yara-python
-MODPY_DISTV = 4.2.0
+MODPY_DISTV = 4.5.2
PKGNAME = py-yara-${MODPY_DISTV}
GH_TAGNAME = v${MODPY_DISTV}
-REVISION = 8
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
@@ -17,8 +16,7 @@ MODPY_PYBUILD = setuptools
MAKE_FLAG += CPPFLAGS="-I${LOCALBASE}/include/yara/"
-BUILD_DEPENDS = security/yara/main>=${VERSION}
-RUN_DEPENDS = security/yara/main>=${VERSION}
+LIB_DEPENDS = security/yara/main
TEST_DEPENDS = security/yara/python=${MODPY_DISTV}
pre-configure:
Index: python/distinfo
===================================================================
RCS file: /cvs/ports/security/yara/python/distinfo,v
diff -u -p -r1.13 distinfo
--- python/distinfo 10 Jul 2022 12:19:03 -0000 1.13
+++ python/distinfo 10 Feb 2026 11:27:44 -0000
@@ -1,2 +1,2 @@
-SHA256 (yara-python-4.2.0.tar.gz) =
6y331LSyYxqfoJt/5+Qe6hmgPS9yBO/xCnNB+KRD9VA=
-SIZE (yara-python-4.2.0.tar.gz) = 34459
+SHA256 (yara-python-4.5.2.tar.gz) =
rb8N8EAuXY2p3IQyF5OP/PHA+uv5hWkzsWz9w8g15Y8=
+SIZE (yara-python-4.5.2.tar.gz) = 39258
Index: python/patches/patch-setup_py
===================================================================
RCS file: /cvs/ports/security/yara/python/patches/patch-setup_py,v
diff -u -p -r1.4 patch-setup_py
--- python/patches/patch-setup_py 11 Nov 2023 14:54:06 -0000 1.4
+++ python/patches/patch-setup_py 10 Feb 2026 11:27:44 -0000
@@ -1,7 +1,7 @@
Index: setup.py
--- setup.py.orig
+++ setup.py
-@@ -137,7 +137,7 @@ class BuildExtCommand(build_ext):
+@@ -140,7 +140,7 @@ class BuildExtCommand(build_ext):
def initialize_options(self):
build_ext.initialize_options(self)
@@ -9,8 +9,8 @@ Index: setup.py
+ self.dynamic_linking = True
self.enable_magic = None
self.enable_cuckoo = None
- self.enable_dotnet = None
-@@ -244,6 +244,10 @@ class BuildExtCommand(build_ext):
+ self.enable_dex = None
+@@ -266,6 +266,10 @@ class BuildExtCommand(build_ext):
if has_header('stdbool.h'):
module.define_macros.append(('HAVE_STDBOOL_H', '1'))