From 84ab8b5cc8279159fc124ff7ec793f9cd4d8fecb Mon Sep 17 00:00:00 2001 From: Luca D'Amico Date: Wed, 25 Oct 2023 07:46:13 +0200 Subject: [PATCH] yara: add recipe (#9663) * yara: add recipe * yara: implemented proposed changes * yara: implemented proposed changes --- app-forensics/yara/yara-4.3.2.recipe | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 app-forensics/yara/yara-4.3.2.recipe diff --git a/app-forensics/yara/yara-4.3.2.recipe b/app-forensics/yara/yara-4.3.2.recipe new file mode 100644 index 000000000..431295d30 --- /dev/null +++ b/app-forensics/yara/yara-4.3.2.recipe @@ -0,0 +1,72 @@ +SUMMARY="The pattern matching swiss knife" +DESCRIPTION="YARA is a tool aimed at (but not limited to) helping malware researchers to identify \ +and classify malware samples. With YARA you can create descriptions of malware families (or \ +whatever you want to describe) based on textual or binary patterns. " +HOMEPAGE="https://virustotal.github.io/yara/" +COPYRIGHT="2008-2023 VirusTotal" +LICENSE="BSD (3-clause)" +REVISION="1" +SOURCE_URI="https://github.com/VirusTotal/yara/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="a9587a813dc00ac8cdcfd6646d7f1c172f730cda8046ce849dfea7d3f6600b15" +SOURCE_DIR="yara-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + yara$secondaryArchSuffix = $portVersion + cmd:yara = $portVersion + cmd:yarac = $portVersion + lib:libyara$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + " + +PROVIDES_devel=" + yara${secondaryArchSuffix}_devel = $portVersion + devel:libyara$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + yara$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcrypto$secondaryArchSuffix + devel:libssl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:automake + cmd:autoreconf + cmd:flex + cmd:gcc$secondaryArchSuffix + cmd:yacc + cmd:libtool + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + ./bootstrap.sh + runConfigure --omit-dirs "binDir" ./configure \ + --bindir=$prefix/bin --disable-static + make $jobArgs +} + +INSTALL() +{ + make install + prepareInstalledDevelLib libyara + fixPkgconfig + + packageEntries devel "$developDir" +} + +TEST() +{ + make check +}