[yara ] update to v4.2.0 (#23901)

* [yara ] update to v4.2.0

* update version

* modern function

* update version
This commit is contained in:
JonLiu1993 2022-04-02 05:31:35 +08:00 committed by GitHub
parent d8cd44e702
commit 89e00e66f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 11 deletions

View File

@ -52,6 +52,7 @@ set(
libyara/libyara.c
libyara/mem.c
libyara/modules.c
libyara/modules/console/console.c
libyara/modules/cuckoo/cuckoo.c
libyara/modules/dotnet/dotnet.c
libyara/modules/elf/elf.c
@ -84,11 +85,13 @@ set(
set(
yara_sources
cli/args.c
cli/common.c
cli/threading.c
cli/yara.c
)
set( yarac_sources
cli/args.c
cli/common.c
cli/yarac.c
)

View File

@ -3,22 +3,21 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO VirusTotal/yara
REF v4.1.1
SHA512 e4474254249d5b3fbb7231fdec5f4e080be042098e1b2bc953aa93513ce0b4742e34acac2911687e75055ecd589d942f71b79c58ca47eee243626ab3ec8add71
REF 136794355c51242b595af42309a234846d534e8b #v4.2.0
SHA512 b0aabbf4d0ba585e3adab7dbdb708264c4d4140179e69c8bc57a2ea85cdd6d97f61e67e2ce06c8436450b4e0add7f475ff76d7ca549a9b1168ac057a6cbae776
HEAD_REF master
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON
-DDISABLE_INSTALL_TOOLS=ON
)
vcpkg_install_cmake()
vcpkg_cmake_install()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,10 +1,15 @@
{
"name": "yara",
"version": "4.1.1",
"version": "4.2.0",
"description": "The pattern matching swiss knife",
"homepage": "https://github.com/VirusTotal/yara",
"license": "BSD-3-Clause",
"dependencies": [
"jansson",
"openssl"
"openssl",
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -7573,7 +7573,7 @@
"port-version": 1
},
"yara": {
"baseline": "4.1.1",
"baseline": "4.2.0",
"port-version": 0
},
"yas": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f071df4391cee4f96e8f7bb5820d7d3f70db50e1",
"version": "4.2.0",
"port-version": 0
},
{
"git-tree": "081abbbfc62033c4254ae833f61d48c5cea4151c",
"version": "4.1.1",