From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sOB+CSFbMWW3nwAA9RJhRA:P1 (envelope-from ) for ; Thu, 19 Oct 2023 18:36:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sOB+CSFbMWW3nwAA9RJhRA (envelope-from ) for ; Thu, 19 Oct 2023 18:36:49 +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 B011758826 for ; Thu, 19 Oct 2023 18:36:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=web.de header.s=s29768273 header.b=a3KkIbaD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=web.de (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697733408; a=rsa-sha256; cv=none; b=dBcD+AEKyQ8luZcR/5ej8qi32/Cq+yoybkYyTyUWll8EKFP0xiRbJshDhkb02xOAcmgNru Ixbl805FcV9Iu+YZK5WyEj0+pEF3bZBD3/WiXBMkJp7/KpS3ausy3DQEMs9itYD4DhZ1XD SD+GHOS5viTlrU+7I0Lse4pzd8zcIUTNq1aG8EJojzoWRzrPP2UC2ouddeqzHm7cNxZ44S 15GvSPX7YsAYzZlYnvK+bDNYU/IWDNpJ1jn2OMGU3nmrtneqLSkLWYVP/KXWyi2EkH9qY5 /i7/SA7KgmWej3BEdMunst5ZuLa0zaUZ5ClgtGNvo3kexqWggqYJoZ3tSp1Rtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=web.de header.s=s29768273 header.b=a3KkIbaD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=web.de (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697733408; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jWomABGK4xzLKdZ9PYNxhWL3jYcrfi+x6rm+goIlReE=; b=pIxlzsU5ewHoA67q+g0XJTTBsi9xddRJzCPpumefXhVLvfXi/qF11gqnNP172KJoWH0Ib3 YyBVDK/Ej+/ap8fjy4PkCWNzobu12d2dS49sVYw1Xt8G2GYKNZjOCsUnKcX/3KSapFh0QG cI9PFA1u1XNiw35grgWnWdhy19yguzxjK8QHzp/yKln0wG8icb7s72sPLlVlJs44IBPfZx iXu+/BzAd0kQsrXOwGs6RQvBZH6WVkYgnkgs+iL3dpudPElvHgFHImgor5QhyZWklIv+CV jXlarALXELXzaVvu7eZP4So08WrGi8FBNJ8JKK7+qIwdjOknMMQSd321hdM76A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtW0k-00076L-FD; Thu, 19 Oct 2023 12:36: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 1qtW0i-000767-DY for guix-patches@gnu.org; Thu, 19 Oct 2023 12:36:36 -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 1qtW0i-0001ch-4Y for guix-patches@gnu.org; Thu, 19 Oct 2023 12:36:36 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtW18-0001vj-F7 for guix-patches@gnu.org; Thu, 19 Oct 2023 12:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66608] [PATCH v1] gnu: Add yara. References: <8fff56158eb150f2dab193ccdceb19fd451583e7.1697641034.git.jakob.kirsch@web.de> In-Reply-To: <8fff56158eb150f2dab193ccdceb19fd451583e7.1697641034.git.jakob.kirsch@web.de> Resent-From: Jakob Kirsch Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Oct 2023 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66608 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66608@debbugs.gnu.org Cc: Jakob Kirsch Received: via spool by 66608-submit@debbugs.gnu.org id=B66608.16977333707349 (code B ref 66608); Thu, 19 Oct 2023 16:37:02 +0000 Received: (at 66608) by debbugs.gnu.org; 19 Oct 2023 16:36:10 +0000 Received: from localhost ([127.0.0.1]:37686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtW0H-0001uT-DB for submit@debbugs.gnu.org; Thu, 19 Oct 2023 12:36:09 -0400 Received: from mout.web.de ([217.72.192.78]:45481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtW0E-0001tq-TC for 66608@debbugs.gnu.org; Thu, 19 Oct 2023 12:36:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1697733333; x=1698338133; i=jakob.kirsch@web.de; bh=VjONO6hU5dbo2WMcRXBn/GY8ml80eJ2jtFMySjMbSvQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=a3KkIbaDiaAstARwHyd9n4greEyqNb2CVTA8U8K+OA/4NnTEBgtHurgkaSbJlGu1 K3BCwGAEyaq5eiYjzGjUhmS9PxEmjAptZUvnslSHroqq/5+6c+zSwGzTXqu+uL7Hm 09Z56BmHVtQSpRo8oGnh6p+lBZ1yj1BhMKhJmzXqN4HHILWqVf59AUOJtVqr+8j4d +Z3Y6kdTYrYenoDe+rLnEy+0J3//yRbF/IpuWAkYqsvvTjirPq4R9MlVj7q/ZW4Af Dlo9Pgxv6S2Q55c8qqAbEvLTHbQudn8V4pMv8uaHOscOagHaqNP3d15R23R8AsqDP hHCLis1tcztK5n984w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from kernelpanicroom.fritz.box ([134.19.20.68]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N5CQh-1rcReK2lLZ-011DAU; Thu, 19 Oct 2023 18:35:33 +0200 From: Jakob Kirsch Date: Thu, 19 Oct 2023 18:35:07 +0200 Message-ID: <3c80693772d40bb13e8c1939a7e7d5e969a1602d.1697733307.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:amMTiMouCypL3S3D0bnP8qdc0tUOzH2wvqr5QiiGRpk0KOQMZit bloHyEWcUYnoHVCQmlVk21JEwPl0IDTDcTnxhaMdW4YghjLpB72pNCaQkjXswr7tUKHH7aF YvoROPJzSdcE8IiCs1ARSGRTdI2FErfIBPqUrKLR2sn36v+2306XQOTqgoGEQbKvnMueBz6 z7Mlo2XndZS/Wkj4i9lLg== UI-OutboundReport: notjunk:1;M01:P0:is0IuSV5G8M=;sgtxaNL8bpXw2mVsyJUFN226bPF 2bAgcRI/yhzc51Yorf52awTJxQsDhJ61xBcCkoHZWyFr0IMuq3jrg+z5UrycKC0YPn2DAr6pk s1ZVbf4MLOQNFNHcXxyDS0zMqsa3w5N8aBIe++2n4K0FL9pK30Yxu7cwXa8b3yLWCCsrakChB ieEhq6YGanclt0jND8gSCHGgTVMkpa7ulxkBxDxDMmHRl79olBP9katwCFmv/V2x/qHH4KcRb cCLN/Dph80w0DbfpgvrkZKfXjMJO9Z2iCvf2pnNVzGJH4QGHVXawb9ONdHfcYVUTn+d/Z4X31 1toxBCja8FUnZQDcq4dXk8wrFr1pjNJzyi2kWCy3MZ5LbgnQxN/fFZGr24GAl+A6qJeX0BwrV 67wRsy64SuSlxXd7AfW3sfyBnAk3Tv1cEGoar07CrTQKeWVlPaduZ6NleaPuLh5sWapwIrtGc 8beQChf8jlUJ8HeBvCQlVncN1V6tDNzB01oNsAf3P9VZT+sKjF07kBchyw52pEdOzNafOj8w/ R1V3rf5eMIpr3s/PBdEoO5Mc2HD6w70sRn4VMaCJnD8PDPpDl1clcL0xxtu9sojjFGn85yq3w cJg7076bef3NPfWQnhW7skct1n4sWcOn6h/LtLijdnpS2Hs8+BshSLIPPmmO7vWAo59GxXeh3 o0NZIoRfT9bfsb5ckYlU6Z5N7CqlTI6DrTU29dl/FDpo2x85xsaaxJLHrImrXsKXKKSlr94Xr gT9Pvw+VvfbSJZwXKVJixVpQpuN5p6w3sXrcKqPTSDBMT6qG/jrbIpleYhfhNAcDe2nnbRENI NUynl+FLMkKCgdlpgJ/YTDw4GXWk1XZ+6lDElZiabjGZmxXb8nCDqICzv5vLZmb13JNQeTGV0 735OCfpX4eKJ0CkPREsepY39ZopJqBs7RGgv6CuaWueQJ5RBexntpoc3xgw8UNXaAYR51fIFM 4P+k/WDVTOtX86deaA/JoWMrw0M= 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 3.74 X-Spam-Score: 3.74 X-Migadu-Queue-Id: B011758826 X-TUID: olHLdmjdq2Ev * gnu/packages/antivirus.scm (yara): New variable. =2D-- gnu/packages/antivirus.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/antivirus.scm b/gnu/packages/antivirus.scm index 750db04040..db039447bf 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,39 @@ (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 + (list + #:phases #~(modify-phases %standard-phases + (add-before 'check 'remove-bin-sh-in-test + (lambda _ + (substitute* "tests/test-rules.c" + (("/bin/sh") + (string-append #$(this-package-input "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: c065da01ff956d3c2bdfc45a33d910e509a211d9 =2D- 2.41.0