1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

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>
This commit is contained in:
Ryan Steinmetz 2012-05-21 14:08:52 +00:00
parent 85b27a97c9
commit d317dcef6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297116
6 changed files with 183 additions and 0 deletions

View File

@ -782,6 +782,7 @@
SUBDIR += rarcrack
SUBDIR += ratproxy
SUBDIR += rats
SUBDIR += razorback-api
SUBDIR += rdigest
SUBDIR += retranslator
SUBDIR += revelation

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (razorback/api-0.5.0.tar.gz) = 01f355245577dae83469fdc50a63fef6dfca5253efcfae9a879e17bed1a1f629
SIZE (razorback/api-0.5.0.tar.gz) = 679589

View File

@ -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)
{

View File

@ -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/

View File

@ -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