aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2012-05-21 22:08:52 +0800
committerzi <zi@FreeBSD.org>2012-05-21 22:08:52 +0800
commit7dd07a5594f58e3c820b83a60fb9d5823df9b3a2 (patch)
tree4f71fcac107ab9cb36e012465edff975e4d81eab /security
parent1a8356ff2951b0d00fe1c00fc59eada13d41034a (diff)
downloadfreebsd-ports-gnome-7dd07a5594f58e3c820b83a60fb9d5823df9b3a2.tar.gz
freebsd-ports-gnome-7dd07a5594f58e3c820b83a60fb9d5823df9b3a2.tar.zst
freebsd-ports-gnome-7dd07a5594f58e3c820b83a60fb9d5823df9b3a2.zip
New port: security/razorback-api
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. WWW: http://razorbacktm.sourceforge.net/ PR: ports/167736 Submitted by: Tom Judge <tom@tomjudge.com>
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/razorback-api/Makefile66
-rw-r--r--security/razorback-api/distinfo2
-rw-r--r--security/razorback-api/files/patch-src__binary_buffer.c23
-rw-r--r--security/razorback-api/pkg-descr5
-rw-r--r--security/razorback-api/pkg-plist86
6 files changed, 183 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 34dcd1ffbbe1..c38a5d52d223 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -782,6 +782,7 @@
SUBDIR += rarcrack
SUBDIR += ratproxy
SUBDIR += rats
+ SUBDIR += razorback-api
SUBDIR += rdigest
SUBDIR += retranslator
SUBDIR += revelation
diff --git a/security/razorback-api/Makefile b/security/razorback-api/Makefile
new file mode 100644
index 000000000000..22a8073a3dc4
--- /dev/null
+++ b/security/razorback-api/Makefile
@@ -0,0 +1,66 @@
+# New ports collection makefile for: razorback-api
+# Date created: 2011/06/8
+# Whom: Tom Judge <tom@tomjudge.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= api
+PORTVERSION= 0.5.0
+CATEGORIES= security
+MASTER_SITES= SF/razorbacktm/API
+PKGNAMEPREFIX= razorback-
+DIST_SUBDIR= razorback
+
+MAINTAINER= tom@tomjudge.com
+COMMENT= Framework for an intelligence driven security solution - API
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= config.10:${PORTSDIR}/devel/libconfig \
+ uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \
+ curl.6:${PORTSDIR}/ftp/curl \
+ json.0:${PORTSDIR}/devel/json-c
+
+OPTIONS= DEBUG "Enable Debug" off \
+ ASSERT "Enable Asserts" off \
+ CNC_DEBUG "Enable Command and Control Debug" off \
+ STOMP_DEBUG "Enable STOMP Debug" off
+
+USE_GNOME= gnomehack
+USE_AUTOTOOLS= libtool
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+.endif
+
+.if defined(WITH_ASSERT)
+CONFIGURE_ARGS+=--enable-assert
+.endif
+
+.if defined(WITH_CNC_DEBUG)
+CONFIGURE_ARGS+=--enable-cnc-debug
+.endif
+
+.if defined(WITH_STOMP_DEBUG)
+CONFIGURE_ARGS+=--enable-stomp-debug
+.endif
+
+.if ${CC} == "clang" || ${CXX} == "clang++"
+BROKEN= does not build when compiled with clang
+.endif
+
+post-install:
+ @if [ ! -f ${PREFIX}/etc/razorback/api.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/razorback/api.conf.sample ${PREFIX}/etc/razorback/api.conf ; \
+ fi
+ @if [ ! -f ${PREFIX}/etc/razorback/magic ]; then \
+ ${CP} -p ${PREFIX}/etc/razorback/magic.sample ${PREFIX}/etc/razorback/magic ; \
+ fi
+
+.include <bsd.port.mk>
diff --git a/security/razorback-api/distinfo b/security/razorback-api/distinfo
new file mode 100644
index 000000000000..7b4954f9d744
--- /dev/null
+++ b/security/razorback-api/distinfo
@@ -0,0 +1,2 @@
+SHA256 (razorback/api-0.5.0.tar.gz) = 01f355245577dae83469fdc50a63fef6dfca5253efcfae9a879e17bed1a1f629
+SIZE (razorback/api-0.5.0.tar.gz) = 679589
diff --git a/security/razorback-api/files/patch-src__binary_buffer.c b/security/razorback-api/files/patch-src__binary_buffer.c
new file mode 100644
index 000000000000..19d567141208
--- /dev/null
+++ b/security/razorback-api/files/patch-src__binary_buffer.c
@@ -0,0 +1,23 @@
+--- ./src/binary_buffer.c.orig 2012-01-05 17:40:55.000000000 -0500
++++ ./src/binary_buffer.c 2012-05-09 18:16:59.000000000 -0400
+@@ -28,6 +28,20 @@
+
+ #include <stdio.h>
+
++#include <osreldate.h>
++#if __FreeBSD_version < 800067
++size_t strnlen(const char *s, size_t maxlen);
++size_t strnlen(const char *s, size_t maxlen)
++{
++ size_t i;
++ for (i = 0; i < maxlen; i++) {
++ if (s[i] == '\0')
++ break;
++ }
++ return i;
++}
++#endif
++
+ struct BinaryBuffer *
+ BinaryBuffer_CreateFromMessage (struct Message *message)
+ {
diff --git a/security/razorback-api/pkg-descr b/security/razorback-api/pkg-descr
new file mode 100644
index 000000000000..930082261c40
--- /dev/null
+++ b/security/razorback-api/pkg-descr
@@ -0,0 +1,5 @@
+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.
+
+WWW: http://razorbacktm.sourceforge.net/
diff --git a/security/razorback-api/pkg-plist b/security/razorback-api/pkg-plist
new file mode 100644
index 000000000000..ce56a839b9dc
--- /dev/null
+++ b/security/razorback-api/pkg-plist
@@ -0,0 +1,86 @@
+@comment $FreeBSD$
+@unexec if cmp -s %D/etc/razorback/api.conf %D/etc/razorback/api.conf.sample; then rm -f %D/etc/razorback/api.conf; fi
+etc/razorback/api.conf.sample
+@exec if [ ! -f %D/etc/razorback/api.conf ]; then cp -p %D/%F %B/api.conf; fi
+@unexec if cmp -s %D/etc/razorback/magic %D/etc/razorback/magic.sample; then rm -f %D/etc/razorback/magic; fi
+etc/razorback/magic.sample
+@exec if [ ! -f %D/etc/razorback/magic ]; then cp -p %D/%F %B/magic; fi
+@dirrmtry etc/razorback
+include/razorback.h
+include/razorback/api.h
+include/razorback/block.h
+include/razorback/block_id.h
+include/razorback/block_pool.h
+include/razorback/config_file.h
+include/razorback/connected_entity.h
+include/razorback/daemon.h
+include/razorback/debug.h
+include/razorback/event.h
+include/razorback/file.h
+include/razorback/hash.h
+include/razorback/inspector_queue.h
+include/razorback/json_buffer.h
+include/razorback/judgment.h
+include/razorback/list.h
+include/razorback/lock.h
+include/razorback/log.h
+include/razorback/message_formats.h
+include/razorback/messages.h
+include/razorback/metadata.h
+include/razorback/ntlv.h
+include/razorback/nugget.h
+include/razorback/queue.h
+include/razorback/queue_list.h
+include/razorback/response_queue.h
+include/razorback/socket.h
+include/razorback/string_list.h
+include/razorback/submission.h
+include/razorback/thread.h
+include/razorback/thread_pool.h
+include/razorback/timer.h
+include/razorback/types.h
+include/razorback/uuids.h
+include/razorback/visibility.h
+include/razorback/libssh/agent.h
+include/razorback/libssh/auth.h
+include/razorback/libssh/bind.h
+include/razorback/libssh/buffer.h
+include/razorback/libssh/callbacks.h
+include/razorback/libssh/channels.h
+include/razorback/libssh/crc32.h
+include/razorback/libssh/crypto.h
+include/razorback/libssh/dh.h
+include/razorback/libssh/kex.h
+include/razorback/libssh/keys.h
+include/razorback/libssh/legacy.h
+include/razorback/libssh/libcrypto.h
+include/razorback/libssh/libgcrypt.h
+include/razorback/libssh/libssh.h
+include/razorback/libssh/libsshpp.hpp
+include/razorback/libssh/messages.h
+include/razorback/libssh/misc.h
+include/razorback/libssh/options.h
+include/razorback/libssh/packet.h
+include/razorback/libssh/pcap.h
+include/razorback/libssh/pki.h
+include/razorback/libssh/poll.h
+include/razorback/libssh/priv.h
+include/razorback/libssh/scp.h
+include/razorback/libssh/server.h
+include/razorback/libssh/sftp.h
+include/razorback/libssh/session.h
+include/razorback/libssh/socket.h
+include/razorback/libssh/ssh1.h
+include/razorback/libssh/ssh2.h
+include/razorback/libssh/string.h
+include/razorback/libssh/threads.h
+include/razorback/libssh/wrapper.h
+include/razorback/libssh/pki_priv.h
+include/razorback/libssh/ecdh.h
+@dirrm include/razorback/libssh
+@dirrm include/razorback
+lib/librazorback_api.a
+lib/librazorback_api.la
+lib/librazorback_api.so
+lib/librazorback_api.so.2
+libdata/pkgconfig/razorback.pc