aboutsummaryrefslogtreecommitdiffstats
path: root/security/razorback-yaraNugget/Makefile
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2012-06-11 21:28:32 +0800
committerzi <zi@FreeBSD.org>2012-06-11 21:28:32 +0800
commitfb023f59ac50a139362d008b9d9dd58502602f2a (patch)
tree63f11c61ccc376c17f3cc09f14258431d1d56c62 /security/razorback-yaraNugget/Makefile
parent8f96dcc94635ede6edc13ad7e90a40a7b8f4c3fd (diff)
downloadfreebsd-ports-gnome-fb023f59ac50a139362d008b9d9dd58502602f2a.tar.gz
freebsd-ports-gnome-fb023f59ac50a139362d008b9d9dd58502602f2a.tar.zst
freebsd-ports-gnome-fb023f59ac50a139362d008b9d9dd58502602f2a.zip
New port: security/razorback-yaraNugget:
Razorback is a framework for an intelligence driven security solution. It consists of a Dispatcher at the core of the system, surrounded by Nuggets of varying types. The Yara nugget allows modified Yara rules to dictate which flags are set when they alert. WWW: http://razorbacktm.sourceforge.net/ PR: ports/167756 Submitted by: Tom Judge <tom@tomjudge.com>
Diffstat (limited to 'security/razorback-yaraNugget/Makefile')
-rw-r--r--security/razorback-yaraNugget/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/security/razorback-yaraNugget/Makefile b/security/razorback-yaraNugget/Makefile
new file mode 100644
index 000000000000..c68d1e383372
--- /dev/null
+++ b/security/razorback-yaraNugget/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: razorback-yaraNugget
+# Date created: 2011/06/8
+# Whom: Tom Judge <tom@tomjudge.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= yaraNugget
+PORTVERSION= 0.5.0
+CATEGORIES= security
+MASTER_SITES= SF/razorbacktm/Nuggets
+PKGNAMEPREFIX= razorback-
+DIST_SUBDIR= razorback
+
+MAINTAINER= tj@FreeBSD.org
+COMMENT= Framework for an intelligence driven security - Yara Detection
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= razorback_api:${PORTSDIR}/security/razorback-api \
+ pcre:${PORTSDIR}/devel/pcre
+BUILD_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget
+RUN_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget
+
+OPTIONS_DEFINE= DEBUG ASSERT
+ASSERT_DESC= Enable Asserts
+
+.include <bsd.port.options.mk>
+
+RB_LIBDIR?= ${PREFIX}/lib/razorback
+GNU_CONFIGURE= yes
+USE_AUTOTOOLS= libtool
+USE_LDCONFIG= ${RB_LIBDIR}
+
+.if ${PORT_OPTIONS:MDEBUG}
+CONFIGURE_ARGS+=--enable-debug
+.endif
+
+.if ${PORT_OPTIONS:MASSERT}
+CONFIGURE_ARGS+=--enable-assert
+.endif
+
+post-install:
+ ${LN} -sf ${RB_LIBDIR}/yaraNugget.so.2 ${RB_LIBDIR}/yaraNugget.so.2.0.0
+ @if [ ! -f ${PREFIX}/etc/razorback/yara.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/razorback/yara.conf.sample ${PREFIX}/etc/razorback/yara.conf ; \
+ fi
+
+.include <bsd.port.mk>