pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Jun 11 10:29:52 UTC 2024

Modified Files:
        pkgsrc/security/py-yara: Makefile PLIST distinfo
        pkgsrc/security/yara: Makefile Makefile.common PLIST distinfo
        pkgsrc/security/yara/patches: patch-configure.ac
Added Files:
        pkgsrc/security/py-yara/patches: patch-setup.py

Log Message:
yara py-yara: updated to 4.5.1

YARA v4.5.1

Allow spaces in regexp repetition operators (e.g: {n, m}).
BUGFIX: matches operator was not matching empty strings
BUGFIX: Several bugs in array type handling in dotnet module
BUGFIX: Fix issue while parsing .NET files (5bf72f2).
BUGFIX: Fix issues while parsing PE resources (c009195, 4793b49).
BUGFIX: Infinite loop while parsing corrupt PE files (e453eb1).
BUGFIX: OOM errors while parsing corrupt PE files (4b9b4c0, 1be9811).
BUGFIX: Build issue in Alpine Linux due to pread64 not found
BUGFIX: Issue while parsing rich header in some PE files


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/security/py-yara/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/py-yara/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/security/py-yara/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/py-yara/patches/patch-setup.py
cvs rdiff -u -r1.14 -r1.15 pkgsrc/security/yara/Makefile \
    pkgsrc/security/yara/Makefile.common
cvs rdiff -u -r1.7 -r1.8 pkgsrc/security/yara/PLIST
cvs rdiff -u -r1.19 -r1.20 pkgsrc/security/yara/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/yara/patches/patch-configure.ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/py-yara/Makefile
diff -u pkgsrc/security/py-yara/Makefile:1.13 pkgsrc/security/py-yara/Makefile:1.14
--- pkgsrc/security/py-yara/Makefile:1.13       Mon Nov 28 18:57:19 2022
+++ pkgsrc/security/py-yara/Makefile    Tue Jun 11 10:29:51 2024
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2022/11/28 18:57:19 adam Exp $
+# $NetBSD: Makefile,v 1.14 2024/06/11 10:29:51 adam Exp $
 
 .include "../../security/yara/Makefile.common"
 
-DISTNAME=      yara-python-${YARA_VERSION}
+DISTNAME=      yara_python-${YARA_VERSION}
 PKGNAME=       ${PYPKGPREFIX}-yara-${YARA_VERSION}
 CATEGORIES=    security python
 GITHUB_PROJECT=        yara-python
@@ -10,11 +10,12 @@ GITHUB_PROJECT=     yara-python
 COMMENT=       Yara Python bindings
 LICENSE=       apache-2.0
 
-PYSETUPBUILDARGS=      --dynamic-linking
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} tests.py
 
 .include "../../security/yara/buildlink3.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/security/py-yara/PLIST
diff -u pkgsrc/security/py-yara/PLIST:1.4 pkgsrc/security/py-yara/PLIST:1.5
--- pkgsrc/security/py-yara/PLIST:1.4   Mon Nov 28 18:57:19 2022
+++ pkgsrc/security/py-yara/PLIST       Tue Jun 11 10:29:51 2024
@@ -1,7 +1,7 @@
-@comment $NetBSD: PLIST,v 1.4 2022/11/28 18:57:19 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.5 2024/06/11 10:29:51 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/yara.so

Index: pkgsrc/security/py-yara/distinfo
diff -u pkgsrc/security/py-yara/distinfo:1.15 pkgsrc/security/py-yara/distinfo:1.16
--- pkgsrc/security/py-yara/distinfo:1.15       Mon Nov 28 18:57:19 2022
+++ pkgsrc/security/py-yara/distinfo    Tue Jun 11 10:29:51 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.15 2022/11/28 18:57:19 adam Exp $
+$NetBSD: distinfo,v 1.16 2024/06/11 10:29:51 adam Exp $
 
-BLAKE2s (yara-python-4.2.3.tar.gz) = aa46b829505087358246258600d22d0b1b7d4dc54c392ef642a9f9d4d8f5c7b9
-SHA512 (yara-python-4.2.3.tar.gz) = 588875d820f4e1b2aa5c6bbe83814ba2756f5ed301ba652efd280d5ca9745f7388f1f9eaa3875d11de5644ce9c41dcb76eebbee86269f8d6723c7d16ffa134be
-Size (yara-python-4.2.3.tar.gz) = 34465 bytes
+BLAKE2s (yara_python-4.5.1.tar.gz) = e474d6faf1c91cdc901edc448a457a224378b3d32be9e60c4b195ee846cb6ae7
+SHA512 (yara_python-4.5.1.tar.gz) = fb3d78cea58a5dcb21287d5211805ef7097c07b9117e4fe78a7e56b40f2520950f0e8d6f1eb3c4253a454e10ca782c3826c19613bd17677bef491ae91f9f9d2a
+Size (yara_python-4.5.1.tar.gz) = 39419 bytes
+SHA1 (patch-setup.py) = be89b56b193900004dabbdcaba2faf99fcb75173

Index: pkgsrc/security/yara/Makefile
diff -u pkgsrc/security/yara/Makefile:1.14 pkgsrc/security/yara/Makefile:1.15
--- pkgsrc/security/yara/Makefile:1.14  Tue Oct 24 22:11:01 2023
+++ pkgsrc/security/yara/Makefile       Tue Jun 11 10:29:51 2024
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.14 2023/10/24 22:11:01 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2024/06/11 10:29:51 adam Exp $
 
-PKGREVISION= 1
 .include "../../security/yara/Makefile.common"
 
 DISTNAME=      yara-${YARA_VERSION}
Index: pkgsrc/security/yara/Makefile.common
diff -u pkgsrc/security/yara/Makefile.common:1.14 pkgsrc/security/yara/Makefile.common:1.15
--- pkgsrc/security/yara/Makefile.common:1.14   Mon Nov 28 18:57:19 2022
+++ pkgsrc/security/yara/Makefile.common        Tue Jun 11 10:29:51 2024
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.14 2022/11/28 18:57:19 adam Exp $
+# $NetBSD: Makefile.common,v 1.15 2024/06/11 10:29:51 adam Exp $
 #
 # used by security/yara/Makefile
 # used by security/py-yara/Makefile
 
-YARA_VERSION=  4.2.3
+YARA_VERSION=  4.5.1
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=VirusTotal/}
 GITHUB_TAG=    v${YARA_VERSION}
 

Index: pkgsrc/security/yara/PLIST
diff -u pkgsrc/security/yara/PLIST:1.7 pkgsrc/security/yara/PLIST:1.8
--- pkgsrc/security/yara/PLIST:1.7      Sun May 30 01:16:28 2021
+++ pkgsrc/security/yara/PLIST  Tue Jun 11 10:29:51 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2021/05/30 01:16:28 khorben Exp $
+@comment $NetBSD: PLIST,v 1.8 2024/06/11 10:29:51 adam Exp $
 bin/yara
 bin/yarac
 include/yara.h
@@ -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
 lib/libyara.la
 lib/pkgconfig/yara.pc

Index: pkgsrc/security/yara/distinfo
diff -u pkgsrc/security/yara/distinfo:1.19 pkgsrc/security/yara/distinfo:1.20
--- pkgsrc/security/yara/distinfo:1.19  Tue Nov 29 08:35:01 2022
+++ pkgsrc/security/yara/distinfo       Tue Jun 11 10:29:51 2024
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.19 2022/11/29 08:35:01 adam Exp $
+$NetBSD: distinfo,v 1.20 2024/06/11 10:29:51 adam Exp $
 
-BLAKE2s (yara-4.2.3.tar.gz) = fcd5a273fb2f1b7835f9bd80a8963bedf2bc67fa78b971abbcd971571e3fef74
-SHA512 (yara-4.2.3.tar.gz) = 1df23837d14d3f9f72db901190e7412241514a8914d72b753df32ad8a44c7a49ad8f14941a95de83754e4d1dd0f23d712d8e6a43916343341b92cb1bc66f3c09
-Size (yara-4.2.3.tar.gz) = 1288334 bytes
-SHA1 (patch-configure.ac) = 49ad0dddaa2f105a8460304dc163a550d7638b45
+BLAKE2s (yara-4.5.1.tar.gz) = b7c4ddc7bee7d61d5e3235aa3b7c7fb952fff46899b8aba2f9bd879f795c3100
+SHA512 (yara-4.5.1.tar.gz) = 8bf1df7089f9bc5a448dbae0999e04f4ecdec06b4478e2cb5f42a2a3201b99fce68379e3f8f7c67a9db201205366250d7befe5c38451cced807ed692d436422c
+Size (yara-4.5.1.tar.gz) = 2207552 bytes
+SHA1 (patch-configure.ac) = 4451fd7843ef57054f22a7144f93bc7f388daea5

Index: pkgsrc/security/yara/patches/patch-configure.ac
diff -u pkgsrc/security/yara/patches/patch-configure.ac:1.2 pkgsrc/security/yara/patches/patch-configure.ac:1.3
--- pkgsrc/security/yara/patches/patch-configure.ac:1.2 Tue Nov 29 08:35:01 2022
+++ pkgsrc/security/yara/patches/patch-configure.ac     Tue Jun 11 10:29:51 2024
@@ -1,12 +1,12 @@
-$NetBSD: patch-configure.ac,v 1.2 2022/11/29 08:35:01 adam Exp $
+$NetBSD: patch-configure.ac,v 1.3 2024/06/11 10:29:51 adam Exp $
 
 NetBSD does not use Linux proc interface.
 Portability fix.
 
---- configure.ac.orig  2022-08-08 11:29:28.000000000 +0000
+--- configure.ac.orig  2024-05-25 10:23:51.000000000 +0000
 +++ configure.ac
-@@ -54,7 +54,7 @@ case $host_os in
-     mingw*|cygwin*) CFLAGS="$CFLAGS -DUSE_WINDOWS_PROC"
+@@ -63,7 +63,7 @@ AC_ARG_ENABLE([proc-scan],
+     mingw*|msys*|cygwin*) CFLAGS="$CFLAGS -DUSE_WINDOWS_PROC"
              proc_interface=windows
              jemalloc_prefix= ;;
 -    linux*|netbsd*|dragonfly*|kfreebsd*)
@@ -14,7 +14,7 @@ Portability fix.
              CFLAGS="$CFLAGS -DUSE_LINUX_PROC"
              posix=true
              proc_interface=linux
-@@ -179,7 +179,7 @@ AC_ARG_ENABLE([pb-tests],
+@@ -197,7 +197,7 @@ AC_ARG_ENABLE([pb-tests],
    [if test x$enableval = xyes; then
      build_pb_tests_module=true
      AC_CHECK_PROG(PROTOC, protoc, protoc)

Added files:

Index: pkgsrc/security/py-yara/patches/patch-setup.py
diff -u /dev/null pkgsrc/security/py-yara/patches/patch-setup.py:1.1
--- /dev/null   Tue Jun 11 10:29:52 2024
+++ pkgsrc/security/py-yara/patches/patch-setup.py      Tue Jun 11 10:29:52 2024
@@ -0,0 +1,33 @@
+$NetBSD: patch-setup.py,v 1.1 2024/06/11 10:29:52 adam Exp $
+
+Enable dynamic linking.
+
+--- setup.py.orig      2024-06-11 10:22:41.052942022 +0000
++++ setup.py
+@@ -31,7 +31,7 @@ import shutil
+ import subprocess
+ 
+ OPTIONS = [
+-   ('dynamic-linking', None, 'link dynamically against libyara'),
++   ('dynamic-linking', True, 'link dynamically against libyara'),
+    ('enable-cuckoo', None, 'enable "cuckoo" module'),
+    ('enable-magic', None, 'enable "magic" module'),
+    ('enable-dex', None, 'enable "dex" module'),
+@@ -118,7 +118,7 @@ class BuildCommand(build):
+   def initialize_options(self):
+ 
+     build.initialize_options(self)
+-    self.dynamic_linking = None
++    self.dynamic_linking = True
+     self.enable_magic = None
+     self.enable_cuckoo = None
+     self.enable_dex = None
+@@ -140,7 +140,7 @@ class BuildExtCommand(build_ext):
+   def initialize_options(self):
+ 
+     build_ext.initialize_options(self)
+-    self.dynamic_linking = None
++    self.dynamic_linking = True
+     self.enable_magic = None
+     self.enable_cuckoo = None
+     self.enable_dex = None



Home | Main Index | Thread Index | Old Index