From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iI3xDLPyL2V6egAAG6o9tA:P1 (envelope-from ) for ; Wed, 18 Oct 2023 16:58:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iI3xDLPyL2V6egAAG6o9tA (envelope-from ) for ; Wed, 18 Oct 2023 16:58:59 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 917F443166 for ; Wed, 18 Oct 2023 16:58:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=web.de header.s=s29768273 header.b=FI9uQxmy; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=web.de (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697641139; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6OG1QsXDk6yEjhakcYCw4Xg5X/+OyH8SEEm4l4P0h10=; b=siMOCgYFPBGFscPomCEY5pOLPebpoQalSPVjFla+ojYqHlJhUC5X0/ATOGdiNyUiKV9LRk fG+rDgqixc8GpAwscIEHxyOm7r9vVn5GjXdhASqWwd5epjioqEBc79k4xhCjhIph27XlSg mgcYmXAWQHg1qiSxAe0ZDVAYi16+PoLUvgHhWXfWiys6KKe5Z5WVGk17fTd1XFa9t8QoWP 7Ark9nMiWl5E9GvSMn7Rd3kQ5YIgeaxIyxml/KLw/YeDD/+Swb4LK/WWfRlbnivzW6jPX4 oKZMhQ7P43hpF8Dols0ibpJ9oVSpYTGXMkUGo9lRXFN4TII7bxgc/XvTY04akg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697641139; a=rsa-sha256; cv=none; b=FtGNRj1ZjU+m5XCRx/UhNRXRI5IJKnAu917kJUIlG1Agwy5N55wleuKTrUHjaMNcffWWVi iLCGXYSiFYhBKfhn51+CaoTBpUvjnCgqpWzp+CR+VY8so81/LW9y9HBB0l3d/lxscyogIF /FVloTuJgklv1lTHcTGTbWsuv8ubmbBmaxM/Ej20aHFVGA1j4WhUlfEozu+ud9CZBtL0ZF E+DKa3fm3NFUJf13GQ52VUWVXZv/cJZlJLWJpmgEMQ95SWqCZ+GpGOAv+JIIkOE0da9At8 g2khYAV1Z45+B6vUtSdbcS1qeS/gOglvP7HO1GjlDnCcuY4Ws2NV15pCodWm+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=web.de header.s=s29768273 header.b=FI9uQxmy; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=web.de (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qt80M-0005sS-Gq; Wed, 18 Oct 2023 10:58:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qt80L-0005lW-8G for guix-patches@gnu.org; Wed, 18 Oct 2023 10:58:37 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qt80K-0004we-Vx for guix-patches@gnu.org; Wed, 18 Oct 2023 10:58:37 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qt80k-0003Cm-Gz for guix-patches@gnu.org; Wed, 18 Oct 2023 10:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66608] [PATCH] gnu: Add yara. Resent-From: Jakob Kirsch Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Oct 2023 14:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66608 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66608@debbugs.gnu.org Cc: Jakob Kirsch X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169764109212242 (code B ref -1); Wed, 18 Oct 2023 14:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Oct 2023 14:58:12 +0000 Received: from localhost ([127.0.0.1]:34430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qt7zw-0003BN-83 for submit@debbugs.gnu.org; Wed, 18 Oct 2023 10:58:12 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qt7zr-0003Aq-59 for submit@debbugs.gnu.org; Wed, 18 Oct 2023 10:58:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qt7zL-0002sB-3d for guix-patches@gnu.org; Wed, 18 Oct 2023 10:57:35 -0400 Received: from mout.web.de ([217.72.192.78]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qt7zI-0004mi-UE for guix-patches@gnu.org; Wed, 18 Oct 2023 10:57:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1697641048; x=1698245848; i=jakob.kirsch@web.de; bh=9U14gAimEC5cdFNMdD47kdOCozL2xinjsn54RwMLmcQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=FI9uQxmyamhDniaNmU6opOJ66/Ml5cUW7+ovi1VTwHA7p/NSTpVEq+TmjGTAYoEmFIpfJgtJbQq PLL/G7B8veZg/1GpN6w8bMLcoakgEp0ngjb5zDOBFDirMtE5o+xSqz0o3L8TaPlG1YpFFVj3CTcZy t+jH37fC9ToWTl7pgLBZTQ1bXra+ajL5GCFnTAYwADJcAA6mITy5PJ/Dd1ev1pMV7BZKZmuTxzmHK BBuu4bN58EcTpbgafcLM4u2urNOxUQLuJZYK1lbCD/CyynchPAmYYvHFqbIpesa5Nvyo/7N86xK9e W4L+K8WhcF3/KAw9EZcpL7OmmSJ7BKQaqESg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from guix.fritz.box ([134.19.20.68]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MdwJY-1rQXb41Yne-00aypA; Wed, 18 Oct 2023 16:57:28 +0200 From: Jakob Kirsch Date: Wed, 18 Oct 2023 16:57:14 +0200 Message-ID: <8fff56158eb150f2dab193ccdceb19fd451583e7.1697641034.git.jakob.kirsch@web.de> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:lD5fecA5tiI/qVnhOq4UYOeI4DbNZzYM5T/2MTX3rukfb+bj548 BpzNZ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I7KB1Y+y0rfSyMhzFrrFvcg9xQXdAyJV09 ss8VeD6Jquz7PRzrf+tiz4fNlUHYoP0KH5CxVkdRTbyOHcbcq61F2tkyI9J7P7WT30LI5lvGc IWlQVnjQ2e8eGFSTr1KUoMrT6so= Received-SPF: pass client-ip=217.72.192.78; envelope-from=jakob.kirsch@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 3.74 X-Migadu-Queue-Id: 917F443166 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: 3.74 X-TUID: BxBQMG4ynpIz * gnu/packages/antivirus.scm (yara): New variable. =2D-- gnu/packages/antivirus.scm | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/antivirus.scm b/gnu/packages/antivirus.scm index 750db04040..45a85e2faf 100644 =2D-- a/gnu/packages/antivirus.scm +++ b/gnu/packages/antivirus.scm @@ -2,6 +2,7 @@ ;;; Copyright =C2=A9 2016, 2017, 2018, 2019, 2020 Eric Bavier ;;; Copyright =C2=A9 2018 Christopher Baines ;;; Copyright =C2=A9 2019=E2=80=932021 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2023 Jakob Kirsch ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,9 +25,11 @@ (define-module (gnu packages antivirus) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages autotools) + #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages check) #:use-module (gnu packages compression) @@ -38,6 +41,7 @@ (define-module (gnu packages antivirus) #:use-module (gnu packages ncurses) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages protobuf) #:use-module (gnu packages tls) #:use-module (gnu packages web) #:use-module (gnu packages xml)) @@ -156,3 +160,38 @@ (define-public clamav (license:non-copyleft "libclamav/strlcat.c") ;"OpenBSD= " license license:asl2.0 ;libclamav/yara* license:expat)))) ;shared/getopt.[ch] + +(define-public yara + (package + (name "yara") + (version "v4.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/VirusTotal/yara") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jc468iybjl1n0r6prpw7pwhd9jvfbjghqg9qdq1hbihnv5wa4bb")))= ) + (build-system gnu-build-system) + (native-inputs (list autoconf automake libtool protobuf pkg-config)) + (inputs (list openssl bash)) + (arguments + '(#:phases (modify-phases %standard-phases + (add-before 'check 'remove-bin-sh-in-test + (lambda* (#:key build-inputs #:allow-other-keys) + (substitute* "tests/test-rules.c" + (("/bin/sh") + (string-append (assoc-ref %build-inputs "bash") + "/bin/sh")))))))) + + (synopsis "The pattern matching swiss knife") + (description + "YARA is a tool aimed at (but not limited to) helping malware resear= chers to +identify and classify malware samples. With YARA you can create descript= ions of +malware families (or whatever you want to describe) based on textual or b= inary patterns. +Each description, a.k.a. rule, consists of a set of strings and a boolean= expression +which determine its logic.") + (home-page "https://github.com/VirusTotal/yara") + (license license:bsd-3))) base-commit: 1076f32111e512ed437f135c9eb6ce2daaafd623 =2D- 2.41.0