pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/yara YARA is a tool aimed at (but not limited...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d7fe43fe881
branches:  trunk
changeset: 652652:7d7fe43fe881
user:      pettai <pettai%pkgsrc.org@localhost>
date:      Sat Jun 06 08:18:17 2015 +0000

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.

diffstat:

 security/yara/DESCR                        |   4 ++++
 security/yara/Makefile                     |  23 +++++++++++++++++++++++
 security/yara/PLIST                        |  27 +++++++++++++++++++++++++++
 security/yara/buildlink3.mk                |  12 ++++++++++++
 security/yara/distinfo                     |   6 ++++++
 security/yara/patches/patch-libyara_proc.c |  15 +++++++++++++++
 6 files changed, 87 insertions(+), 0 deletions(-)

diffs (111 lines):

diff -r b4754701bb29 -r 7d7fe43fe881 security/yara/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/yara/DESCR       Sat Jun 06 08:18:17 2015 +0000
@@ -0,0 +1,4 @@
+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.
diff -r b4754701bb29 -r 7d7fe43fe881 security/yara/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/yara/Makefile    Sat Jun 06 08:18:17 2015 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2015/06/06 08:18:17 pettai Exp $
+
+DISTNAME=      v3.3.0
+PKGNAME=       yara-3.3.0
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=plusvic/yara/archive/}
+
+MAINTAINER=    pettai%NetBSD.org@localhost
+HOMEPAGE=      https://plusvic.github.io/yara/
+COMMENT=       Pattern matching swiss knife for malware researchers
+LICENSE=       apache-2.0
+
+WRKSRC=                ${WRKDIR}/yara-3.3.0
+USE_TOOLS+=    pkg-config automake autoreconf
+USE_LIBTOOL=   yes
+GNU_CONFIGURE=          yes
+
+PKGCONFIG_OVERRIDE+=   libyara/yara.pc.in
+
+pre-configure:
+       cd ${WRKSRC} && autoreconf -fiv
+
+.include "../../mk/bsd.pkg.mk"
diff -r b4754701bb29 -r 7d7fe43fe881 security/yara/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/yara/PLIST       Sat Jun 06 08:18:17 2015 +0000
@@ -0,0 +1,27 @@
+@comment $NetBSD: PLIST,v 1.1 2015/06/06 08:18:17 pettai Exp $
+bin/yara
+bin/yarac
+include/yara.h
+include/yara/ahocorasick.h
+include/yara/arena.h
+include/yara/atoms.h
+include/yara/compiler.h
+include/yara/error.h
+include/yara/exec.h
+include/yara/filemap.h
+include/yara/hash.h
+include/yara/libyara.h
+include/yara/limits.h
+include/yara/modules.h
+include/yara/object.h
+include/yara/re.h
+include/yara/rules.h
+include/yara/scan.h
+include/yara/sizedstr.h
+include/yara/strutils.h
+include/yara/types.h
+include/yara/utils.h
+lib/libyara.la
+lib/pkgconfig/yara.pc
+man/man1/yara.1
+man/man1/yarac.1
diff -r b4754701bb29 -r 7d7fe43fe881 security/yara/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/yara/buildlink3.mk       Sat Jun 06 08:18:17 2015 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/06/06 08:18:17 pettai Exp $
+
+BUILDLINK_TREE+=       yara
+
+.if !defined(YARA_BUILDLINK3_MK)
+YARA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.yara+=   yara>=3.3.0
+BUILDLINK_PKGSRCDIR.yara?=     ../../devel/yara
+.endif # YARA_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -yara
diff -r b4754701bb29 -r 7d7fe43fe881 security/yara/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/yara/distinfo    Sat Jun 06 08:18:17 2015 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/06/06 08:18:17 pettai Exp $
+
+SHA1 (v3.3.0.tar.gz) = 6f72d80f21336c098f9013212d496d3920d9ef18
+RMD160 (v3.3.0.tar.gz) = 330de9de9294953a3a42032ccc5ae849f065ab5e
+Size (v3.3.0.tar.gz) = 7634474 bytes
+SHA1 (patch-libyara_proc.c) = b860701d604276c8ccd7596f63aa0d02d01a39bc
diff -r b4754701bb29 -r 7d7fe43fe881 security/yara/patches/patch-libyara_proc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/yara/patches/patch-libyara_proc.c        Sat Jun 06 08:18:17 2015 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-libyara_proc.c,v 1.1 2015/06/06 08:18:17 pettai Exp $
+
+Add NetBSD support
+
+--- libyara/proc.c.orig        2015-06-06 06:50:32.000000000 +0000
++++ libyara/proc.c
+@@ -153,7 +153,7 @@ int yr_process_get_memory(
+ #include <yara/mem.h>
+ 
+ #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
+-    defined(__OpenBSD__) || defined(__MACH__)
++    defined(__OpenBSD__) || defined(__MACH__) || defined(__NetBSD__)
+ #define PTRACE_ATTACH PT_ATTACH
+ #define PTRACE_DETACH PT_DETACH
+ #endif



Home | Main Index | Thread Index | Old Index