102.12. yara-4.5.8
Rule-based pattern matching for classifying files
4.5.8-1 · BSD-3-Clause · 1.9 SBU · 898.1 KiB, 44 files · 41_system, 936 of 1047 · ports/core/security/yara
Homepage: https://virustotal.github.io/yara/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/security.txt:
Ships inert and deliberately so: a rule set is somebody's judgement about what is suspicious and it decays from the day it is written.
Depends on: autoconf, automake, libtool, pkgconf, openssl, file.
Required by (1): imhex.
Sources: yara-4.5.8.tar.gz (2.1 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install yara'
build.sh:
./bootstrap.sh
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--disable-static \
--enable-macho \
--enable-dex \
--enable-magic \
--disable-cuckoo \
--with-crypto
make yara_LDFLAGS=
make DESTDIR=$PKG yara_LDFLAGS= install
for f in "$PKG"/usr/bin/* "$PKG"/usr/lib/libyara.so.*; do
[ -L "$f" ] && continue
test -z "$(readelf -d "$f" | grep /var/cache)"
done
Programs: yara, yarac.
Libraries: libyara.so.
Directories: /usr/include/yara, /usr/share/licenses/yara.