yara: update to 4.5.0
authorRosen Penev <rosenp@gmail.com>
Sat, 13 Apr 2024 22:05:03 +0000 (15:05 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 19 Apr 2024 21:20:13 +0000 (14:20 -0700)
Move away from codeload for smaller and better tarballs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/yara/Makefile

index 98bbc9233ae4ef1fdd74dfa5044946ff70d0bebc..480d6f43d67fe0022079f64e1aac5c08f191e7d0 100644 (file)
@@ -8,12 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=yara
-PKG_VERSION:=4.2.0
+PKG_VERSION:=4.5.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://codeload.github.com/VirusTotal/yara/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=6f567d4e4b79a210cd57a820f59f19ee69b024188ef4645b1fc11488a4660951
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_VERSION:=v$(PKG_VERSION)
+PKG_SOURCE_URL:=https://github.com/VirusTotal/yara
+PKG_MIRROR_HASH:=1b549a5aa3320ed768398b0152cb194a7e30c24275fc054facdb4d41bf729cb4
 
 PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
@@ -48,6 +49,8 @@ CONFIGURE_ARGS += \
        $(if $(CONFIG_YARA_module_magic),--enable,--disable)-magic \
        $(if $(CONFIG_YARA_module_cuckoo),--enable,--disable)-cuckoo
 
+TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
+
 define Package/yara/config
        source "$(SOURCE)/Config.in"
 endef