Sun May 30 01:16:28 2021 UTC ()
{,py-}yara: update to version 4.1.0

Since version 3.11.0:

YARA v4.1.0

 * New operators icontains, endswith, iendswith, startswith, istartswith.
 * Accept \t escape sequence in text strings.
 * Add --no-follow-links command-line option to yara.
 * Prevent yara from following links to "." (@1D2D).
 * Implemented non-blocking scanning API (@simonhf).
 * When a string causes too many matches, YARA raises a warning instead of failing (@wxsBSD).
 * BUGFIX: The use of --timeout could hang yara when scanning directories or lists of files (#1481).
 * BUGFIX: Incorrect parsing of PE certificates (#1443).
 * BUGFIX: Short-circuit evaluation not working fine with undefined expressions.

YARA v4.1.0-rc2

 * Don't raise warnings for non-ASCII strings.

YARA v4.1.0-rc1

 * New operators icontains, endswith, iendswith, startswith, istartswith.
 * Raise warnings for non-ascii strings.
 * Accept \t escape sequence in text strings.
 * Add --no-follow-links command-line option to yara.
 * Prevent yara from following links to "." (@1D2D).
 * Implemented non-blocking scanning API (@simonhf).
 * When a string causes too many matches, YARA raises a warning instead of failing.

YARA v4.0.5

 * BUGFIX: Fix bug in "macho" module introduced in v4.0.4.

YARA v4.0.4

 * BUGFIX: Multiple out-of-bounds reads in "macho" module.

Credits to Luis Merino from X41 D-SEC GmbH for reporting these issues.

YARA v4.0.3

 * BUGFIX: Multiple out-of-bounds read in "dotnet" module.

YARA v4.0.2

 * BUGFIX: Use-after-free bug in PE module (#1287).
 * BUGFIX: Incorrect errors in rules when a single rule is badly formatted (#1294).
 * BUGFIX: Assertion failed with rules that have invalid syntax (#1295).
 * BUGFIX: Integer overflow causing missed matches on files larger than 2GB (#1304).
 * BUGFIX: Crashes in Mac OS while scanning binaries with a signature that can't be verified (#1309).

YARA v4.0.1

 * Update sandboxed API (#1276).
 * BUGFIX: Fix regression in exports parsing in PE module (2bf67e6).
 * BUGFIX: Fix unaligned accesses in ARM (e1654ae).

YARA v4.0.0

 * New string modifiers base64 and base64wide (#1185).
 * New string modifier private (#1096).
 * Iterators for dictionaries and arrays (#1141).
 * Multiple API changes.
 * Memory footprint greatly reduced, specially when compiling large numbers of rules.
 * New commmand-line option --scan-list (#1261).
 * Added pdb_path field to "pe" module.
 * Added export_details array to "pe" module.
 * Added exports_index functions to "pe" module.
 * Improvements to "cuckoo" module.
 * BUGFIX: PE files with multiple signatures are parsed correctly (#940).
 * BUGFIX: Fix PE rich header parsing (#1164).
 * BUGFIX: Buffer overruns in "dotnet" module (#1167, #1173).


(khorben)
diff -r1.10 -r1.11 pkgsrc/security/py-yara/Makefile
diff -r1.11 -r1.12 pkgsrc/security/py-yara/distinfo
diff -r1.10 -r1.11 pkgsrc/security/yara/Makefile
diff -r1.12 -r1.13 pkgsrc/security/yara/Makefile.common
diff -r1.12 -r1.13 pkgsrc/security/yara/distinfo
diff -r1.6 -r1.7 pkgsrc/security/yara/PLIST
diff -r1.1 -r0 pkgsrc/security/yara/patches/patch-libyara_libyara.c
diff -r1.1 -r0 pkgsrc/security/yara/patches/patch-libyara_re.c
diff -r1.1 -r0 pkgsrc/security/yara/patches/patch-libyara_re__lexer.l

cvs diff -r1.10 -r1.11 pkgsrc/security/py-yara/Makefile (expand / switch to unified diff)

--- pkgsrc/security/py-yara/Makefile 2019/11/04 21:13:01 1.10
+++ pkgsrc/security/py-yara/Makefile 2021/05/30 01:16:28 1.11
@@ -1,18 +1,17 @@ @@ -1,18 +1,17 @@
1# $NetBSD: Makefile,v 1.10 2019/11/04 21:13:01 rillig Exp $ 1# $NetBSD: Makefile,v 1.11 2021/05/30 01:16:28 khorben Exp $
2 2
3DISTNAME= yara-python-${VERSION} 3DISTNAME= yara-python-${YARA_VERSION}
4PKGNAME= ${PYPKGPREFIX}-yara-${VERSION} 4PKGNAME= ${PYPKGPREFIX}-yara-${YARA_VERSION}
5CATEGORIES= security python 5CATEGORIES= security python
6GITHUB_PROJECT= yara-python 6GITHUB_PROJECT= yara-python
7 7
8MASTER_SITES= ${MASTER_SITE_GITHUB:=VirusTotal/} 8MASTER_SITES= ${MASTER_SITE_GITHUB:=VirusTotal/}
9 9
10COMMENT= Yara python bindings 10COMMENT= Yara python bindings
11 11LICENSE= apache-2.0
12PYTHON_VERSIONS_ACCEPTED= 27 
13 12
14.include "../../security/yara/Makefile.common" 13.include "../../security/yara/Makefile.common"
15.include "../../security/yara/buildlink3.mk" 14.include "../../security/yara/buildlink3.mk"
16.include "../../lang/python/egg.mk" 15.include "../../lang/python/egg.mk"
17.include "../../lang/python/application.mk" 16.include "../../lang/python/application.mk"
18.include "../../mk/bsd.pkg.mk" 17.include "../../mk/bsd.pkg.mk"

cvs diff -r1.11 -r1.12 pkgsrc/security/py-yara/distinfo (expand / switch to unified diff)

--- pkgsrc/security/py-yara/distinfo 2019/12/14 10:50:10 1.11
+++ pkgsrc/security/py-yara/distinfo 2021/05/30 01:16:28 1.12
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.11 2019/12/14 10:50:10 khorben Exp $ 1$NetBSD: distinfo,v 1.12 2021/05/30 01:16:28 khorben Exp $
2 2
3SHA1 (yara-python-3.11.0.tar.gz) = 8e1c6c31875d1df685b4a97faf8d58287e8c38a4 3SHA1 (yara-python-4.1.0.tar.gz) = e47a2e6f3826de624be3da293080ac3a9ee863b1
4RMD160 (yara-python-3.11.0.tar.gz) = 000398c4041c1f495320d3ce7ad500b3c3ffddb4 4RMD160 (yara-python-4.1.0.tar.gz) = 24013ec2e3a6fac9383663efc28156625de4fd05
5SHA512 (yara-python-3.11.0.tar.gz) = 0c8e6cbe51aa858c6d56b95c88bd450016924008b57b4910ed8edfb7bba4d7bfc18736844817978f74e72bed6765c484f275de4e7a53ec85048fb01713b6e959 5SHA512 (yara-python-4.1.0.tar.gz) = 8b9ce780b6639ab2ee5222adec888c7e0fb6be81c7c64a8b33b033de3f261f9707aa208b7a3a86749f6e86a83fe6d73941c816857faf6eb714399d1f50239b51
6Size (yara-python-3.11.0.tar.gz) = 31830 bytes 6Size (yara-python-4.1.0.tar.gz) = 33717 bytes

cvs diff -r1.10 -r1.11 pkgsrc/security/yara/Makefile (expand / switch to unified diff)

--- pkgsrc/security/yara/Makefile 2021/05/14 11:47:57 1.10
+++ pkgsrc/security/yara/Makefile 2021/05/30 01:16:28 1.11
@@ -1,21 +1,21 @@ @@ -1,21 +1,21 @@
1# $NetBSD: Makefile,v 1.10 2021/05/14 11:47:57 nia Exp $ 1# $NetBSD: Makefile,v 1.11 2021/05/30 01:16:28 khorben Exp $
2 2
3DISTNAME= yara-${VERSION} 3DISTNAME= yara-${YARA_VERSION}
4PKGREVISION= 1 
5CATEGORIES= security 4CATEGORIES= security
6MASTER_SITES= ${MASTER_SITE_GITHUB:=VirusTotal/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=VirusTotal/}
7 6
8COMMENT= Pattern matching swiss knife for malware researchers 7COMMENT= Pattern matching swiss knife for malware researchers
 8LICENSE= modified-bsd
9 9
10USE_TOOLS+= pkg-config automake autoreconf flex 10USE_TOOLS+= pkg-config automake autoreconf flex
11USE_LIBTOOL= yes 11USE_LIBTOOL= yes
12GNU_CONFIGURE= yes 12GNU_CONFIGURE= yes
13USE_FEATURES+= strnlen 13USE_FEATURES+= strnlen
14 14
15PKGCONFIG_OVERRIDE+= libyara/yara.pc.in 15PKGCONFIG_OVERRIDE+= libyara/yara.pc.in
16 16
17pre-configure: 17pre-configure:
18 cd ${WRKSRC} && autoreconf -fiv 18 cd ${WRKSRC} && autoreconf -fiv
19 19
20.include "../../security/openssl/buildlink3.mk" 20.include "../../security/openssl/buildlink3.mk"
21.include "../../security/yara/Makefile.common" 21.include "../../security/yara/Makefile.common"

cvs diff -r1.12 -r1.13 pkgsrc/security/yara/Makefile.common (expand / switch to unified diff)

--- pkgsrc/security/yara/Makefile.common 2019/12/14 10:46:08 1.12
+++ pkgsrc/security/yara/Makefile.common 2021/05/30 01:16:28 1.13
@@ -1,11 +1,10 @@ @@ -1,11 +1,10 @@
1# $NetBSD: Makefile.common,v 1.12 2019/12/14 10:46:08 khorben Exp $ 1# $NetBSD: Makefile.common,v 1.13 2021/05/30 01:16:28 khorben Exp $
2# 2#
3# used by security/yara/Makefile 3# used by security/yara/Makefile
4# used by security/py-yara/Makefile 4# used by security/py-yara/Makefile
5 5
6VERSION= 3.11.0 6YARA_VERSION= 4.1.0
7GITHUB_TAG= v${VERSION} 7GITHUB_TAG= v${YARA_VERSION}
8 8
9MAINTAINER= khorben@defora.org 9MAINTAINER= khorben@defora.org
10HOMEPAGE= https://virustotal.github.io/yara/ 10HOMEPAGE= https://virustotal.github.io/yara/
11LICENSE= apache-2.0 

cvs diff -r1.12 -r1.13 pkgsrc/security/yara/distinfo (expand / switch to unified diff)

--- pkgsrc/security/yara/distinfo 2019/12/14 10:46:08 1.12
+++ pkgsrc/security/yara/distinfo 2021/05/30 01:16:28 1.13
@@ -1,10 +1,6 @@ @@ -1,10 +1,6 @@
1$NetBSD: distinfo,v 1.12 2019/12/14 10:46:08 khorben Exp $ 1$NetBSD: distinfo,v 1.13 2021/05/30 01:16:28 khorben Exp $
2 2
3SHA1 (yara-3.11.0.tar.gz) = 81a243423352d66f5ec0cb657098c27f035cd164 3SHA1 (yara-4.1.0.tar.gz) = 6aaf2696a9d00b89fea434eb013073ed569f3d48
4RMD160 (yara-3.11.0.tar.gz) = 18f28d9c6cface071f2526ca7d7c64a0b3a848f9 4RMD160 (yara-4.1.0.tar.gz) = aa6999b4b5143c03aae26ddd791c7d7a7d5a4092
5SHA512 (yara-3.11.0.tar.gz) = 26d800284a2de07195e4a480eb7125b1f5ad0265b284bfbeee10dbab162ea0f419c9e2ea5c4ed5fa25a46a2c9e3c6b077dfe1cafece79251e20d5d70f91b80a8 5SHA512 (yara-4.1.0.tar.gz) = b4b3d004181f4a5c7f35103082977f72155b1a80bcde84c09c68951b57c9b6cbb1304591172de72bdbd0b5a36c98a4671c5e4d428dfde809df717c32df4e2922
6Size (yara-3.11.0.tar.gz) = 772122 bytes 6Size (yara-4.1.0.tar.gz) = 935770 bytes
7SHA1 (patch-common.h) = d85b8be6ee384630f8e1b7ffc3c126f25d13e956 
8SHA1 (patch-libyara_libyara.c) = 3be4325f344676cc490ff262483b76fab4b080fa 
9SHA1 (patch-libyara_re.c) = 4376d943b32fc0e13cb2b4ced99467da1f263da0 
10SHA1 (patch-libyara_re__lexer.l) = 169802090dd922f06d8c32a0d1ea5409cf660f61 

cvs diff -r1.6 -r1.7 pkgsrc/security/yara/PLIST (expand / switch to unified diff)

--- pkgsrc/security/yara/PLIST 2019/12/14 10:46:08 1.6
+++ pkgsrc/security/yara/PLIST 2021/05/30 01:16:28 1.7
@@ -1,32 +1,34 @@ @@ -1,32 +1,34 @@
1@comment $NetBSD: PLIST,v 1.6 2019/12/14 10:46:08 khorben Exp $ 1@comment $NetBSD: PLIST,v 1.7 2021/05/30 01:16:28 khorben Exp $
2bin/yara 2bin/yara
3bin/yarac 3bin/yarac
4include/yara.h 4include/yara.h
5include/yara/ahocorasick.h 5include/yara/ahocorasick.h
6include/yara/arena.h 6include/yara/arena.h
7include/yara/atoms.h 7include/yara/atoms.h
 8include/yara/base64.h
8include/yara/bitmask.h 9include/yara/bitmask.h
9include/yara/compiler.h 10include/yara/compiler.h
10include/yara/error.h 11include/yara/error.h
11include/yara/exec.h 12include/yara/exec.h
12include/yara/exefiles.h 13include/yara/exefiles.h
13include/yara/filemap.h 14include/yara/filemap.h
14include/yara/hash.h 15include/yara/hash.h
15include/yara/integers.h 16include/yara/integers.h
16include/yara/libyara.h 17include/yara/libyara.h
17include/yara/limits.h 18include/yara/limits.h
18include/yara/mem.h 19include/yara/mem.h
19include/yara/modules.h 20include/yara/modules.h
 21include/yara/notebook.h
20include/yara/object.h 22include/yara/object.h
21include/yara/parser.h 23include/yara/parser.h
22include/yara/proc.h 24include/yara/proc.h
23include/yara/re.h 25include/yara/re.h
24include/yara/rules.h 26include/yara/rules.h
25include/yara/scan.h 27include/yara/scan.h
26include/yara/scanner.h 28include/yara/scanner.h
27include/yara/sizedstr.h 29include/yara/sizedstr.h
28include/yara/stack.h 30include/yara/stack.h
29include/yara/stopwatch.h 31include/yara/stopwatch.h
30include/yara/stream.h 32include/yara/stream.h
31include/yara/strutils.h 33include/yara/strutils.h
32include/yara/threading.h 34include/yara/threading.h

File Deleted: pkgsrc/security/yara/patches/Attic/patch-libyara_libyara.c

File Deleted: pkgsrc/security/yara/patches/Attic/patch-libyara_re.c

File Deleted: pkgsrc/security/yara/patches/Attic/patch-libyara_re__lexer.l