aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2011-05-23 23:54:11 +0800
committerwxs <wxs@FreeBSD.org>2011-05-23 23:54:11 +0800
commit830c94b5d0c9bf17711a99c6bb3032705b41bddc (patch)
treea4fa2a848df02162b47c410872eb9c5f890be512
parent8347b87ad273a765a083afa1006bb9458d26e575 (diff)
downloadfreebsd-ports-graphics-830c94b5d0c9bf17711a99c6bb3032705b41bddc.tar.gz
freebsd-ports-graphics-830c94b5d0c9bf17711a99c6bb3032705b41bddc.tar.zst
freebsd-ports-graphics-830c94b5d0c9bf17711a99c6bb3032705b41bddc.zip
- Update to 1.5.
- Switch to devel/re2 instead of PCRE.
-rw-r--r--security/yara/Makefile5
-rw-r--r--security/yara/distinfo4
-rw-r--r--security/yara/files/patch-libyara__proc.c26
3 files changed, 31 insertions, 4 deletions
diff --git a/security/yara/Makefile b/security/yara/Makefile
index 9b842905a01..92b3b0397c2 100644
--- a/security/yara/Makefile
+++ b/security/yara/Makefile
@@ -6,14 +6,14 @@
#
PORTNAME= yara
-PORTVERSION= 1.4
+PORTVERSION= 1.5
CATEGORIES= security
MASTER_SITES= GOOGLE_CODE
MAINTAINER= wxs@FreeBSD.org
COMMENT= A malware identification and classification tool
-LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
+LIB_DEPENDS= re2.0:${PORTSDIR}/devel/re2
PROJECTHOST= yara-project
MAKE_JOBS_SAFE= yes
@@ -21,6 +21,7 @@ GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= "--with-re2"
USE_LDCONFIG= yes
MAN1= yara.1
diff --git a/security/yara/distinfo b/security/yara/distinfo
index ab4f8c229fe..77b40bfa15e 100644
--- a/security/yara/distinfo
+++ b/security/yara/distinfo
@@ -1,2 +1,2 @@
-SHA256 (yara-1.4.tar.gz) = c040cc139030e49f736200d3a951922d417fc660cf4c81484ff1ca1a06f83952
-SIZE (yara-1.4.tar.gz) = 462125
+SHA256 (yara-1.5.tar.gz) = de9827abd884e79282461dec878254f537c141110e7e2c9e7b4091ecd7ad7666
+SIZE (yara-1.5.tar.gz) = 586642
diff --git a/security/yara/files/patch-libyara__proc.c b/security/yara/files/patch-libyara__proc.c
new file mode 100644
index 00000000000..4537396cec6
--- /dev/null
+++ b/security/yara/files/patch-libyara__proc.c
@@ -0,0 +1,26 @@
+--- ./libyara/proc.c.orig 2011-03-18 09:56:15.000000000 -0400
++++ ./libyara/proc.c 2011-05-23 08:47:07.456485028 -0400
+@@ -122,17 +122,18 @@
+ #include "mem.h"
+ #include "proc.h"
+
+-#ifdef __MACH__
++#if defined(__FreeBSD__) || defined(__MACH__)
++#define PTRACE_ATTACH PT_ATTACH
++#define PTRACE_DETACH PT_DETACH
++#endif
++
++#if defined(__MACH__)
+
+ #include <mach/mach.h>
+ #include <mach/mach_vm.h>
+ #include <mach/vm_region.h>
+ #include <mach/vm_statistics.h>
+
+-#define PTRACE_ATTACH PT_ATTACH
+-#define PTRACE_DETACH PT_DETACH
+-
+-
+ int get_process_memory(pid_t pid, MEMORY_BLOCK** first_block)
+ {
+ task_t task;