Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 May 2012 17:31:02 +0000
From:      Tom Judge <tom@tomjudge.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        zi@FreeBSD.org
Subject:   ports/167750: New Port: security/razorback-pdfDissector
Message-ID:  <4faaa9da.0251650a.7ee9.ffff82e6@mx.google.com>
Resent-Message-ID: <201205091740.q49HeC1o013204@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167750
>Category:       ports
>Synopsis:       New Port: security/razorback-pdfDissector
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 09 17:40:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Tom Judge
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
Sourcefire
>Environment:
System: FreeBSD www2.tomjudge.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386

>Description:

New port for razorback pdf dissector integration nugget.

Depends on:  ports/167739

Build logs: https://redports.org/buildarchive/20120501184504-42204/
>How-To-Repeat:
>Fix:

--- razorback-pdfDissector.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	razorback-pdfDissector
#	razorback-pdfDissector/files
#	razorback-pdfDissector/files/pdfDissector.in
#	razorback-pdfDissector/distinfo
#	razorback-pdfDissector/pkg-descr
#	razorback-pdfDissector/pkg-plist
#	razorback-pdfDissector/Makefile
#
echo c - razorback-pdfDissector
mkdir -p razorback-pdfDissector > /dev/null 2>&1
echo c - razorback-pdfDissector/files
mkdir -p razorback-pdfDissector/files > /dev/null 2>&1
echo x - razorback-pdfDissector/files/pdfDissector.in
sed 's/^X//' >razorback-pdfDissector/files/pdfDissector.in << '2f8fc286b874e59a94345662c09f2d89'
X#!/bin/sh
X# PROVIDE: pdfDissector
X# BEFORE: masterNugget
X# BEFORE: LOGIN
X# KEYWORD: shutdown
X#
X
X. /etc/rc.subr
X
XpdfDissector_enable=${pdfDissector_enable:-"NO"}
XpdfDissector_user=${pdfDissector_user:-"razorback"}
XpdfDissector_group=${pdfDissector_group:-"razorback"}
X
Xexport PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin
X
Xname=pdfDissector
Xrcvar=`set_rcvar`
Xload_rc_config $name
Xcommand=%%LOCALBASE%%/libexec/razorback/pdfDissector/dissector.py
Xstart_precmd="pdfDissector_precmd"
Xstart_cmd="pdfDissector_start"
Xstop_cmd="pdfDissector_stop"
X
Xpidfile=/var/run/razorback/pdfDissector.pid
Xprocname=bash
X
XpdfDissector_precmd() {
X   cd %%LOCALBASE%%/libexec/razorback/pdfDissector
X   export HOME=/var/lib/razorback
X   /usr/bin/install -o ${pdfDissector_user} -g ${pdfDissector_group} -d /var/run/razorback
X}
X
XpdfDissector_start() {
X   /usr/sbin/daemon -f -u ${pdfDissector_user} -p ${pidfile} /usr/local/bin/jython -J-Xmx2048m ${command} /opt/zynamics
X}
XpdfDissector_stop() {
X   /bin/echo "DIE DIE" | /usr/bin/nc localhost 8888 > /dev/null 2>&1
X}
Xrun_rc_command "$1"
2f8fc286b874e59a94345662c09f2d89
echo x - razorback-pdfDissector/distinfo
sed 's/^X//' >razorback-pdfDissector/distinfo << '62b3454fdb07c0f5e7fe38b46870363a'
XSHA256 (razorback/pdfDissector-0.5.0.tar.gz) = 929c540e5a9904ecc065a4b2604d8a08ff4236134aedcec43e1587b0c43a9709
XSIZE (razorback/pdfDissector-0.5.0.tar.gz) = 325554
62b3454fdb07c0f5e7fe38b46870363a
echo x - razorback-pdfDissector/pkg-descr
sed 's/^X//' >razorback-pdfDissector/pkg-descr << 'a7f9c003869f78bed7b23019663488b6'
XRazorback is a framework for an intelligence driven security solution. 
XIt consists of a Dispatcher at the core of the system, surrounded by 
XNuggets of varying types.
X
XWWW: http://razorbacktm.sourceforge.net/
a7f9c003869f78bed7b23019663488b6
echo x - razorback-pdfDissector/pkg-plist
sed 's/^X//' >razorback-pdfDissector/pkg-plist << '1bd0b7ed6934eea46ca8c4f1d4ad7b9f'
X@comment $FreeBSD$
X@unexec if cmp -s %D/etc/razorback/pdfdissector.conf %D/etc/razorback/pdfdissector.conf.sample; then rm -f %D/etc/razorback/pdfdissector.conf; fi
Xetc/razorback/pdfdissector.conf.sample
X@exec if [ ! -f %D/etc/razorback/pdfdissector.conf ] ; then cp -p %D/%F %B/pdfdissector.conf; fi
X@dirrmtry etc/razorback
Xlib/razorback/pdfDissector.so.2.0.0
Xlib/razorback/pdfDissector.so.2
Xlib/razorback/pdfDissector.so
Xlib/razorback/pdfDissector.la
Xlib/razorback/pdfDissector.a
X@dirrmtry lib/razorback
Xlibexec/razorback/pdfDissector/dissector.py
Xlibexec/razorback/pdfDissector/modules/__init__.py
Xlibexec/razorback/pdfDissector/modules/utils.py
Xlibexec/razorback/pdfDissector/modules/detector/__init__.py
Xlibexec/razorback/pdfDissector/modules/detector/file/vulnerability_finder.py
Xlibexec/razorback/pdfDissector/modules/detector/file/__init__.py
Xlibexec/razorback/pdfDissector/modules/detector/object/windows_shell_execute.py
Xlibexec/razorback/pdfDissector/modules/detector/object/__init__.py
Xlibexec/razorback/pdfDissector/modules/detector/object/open_action.py
Xlibexec/razorback/pdfDissector/modules/detector/object/adobe_u3d_meshcont.py
Xlibexec/razorback/pdfDissector/modules/detector/object/adobe_u3d_meshdecl.py
Xlibexec/razorback/pdfDissector/modules/detector/object/adobe_jbig2decode.py
Xlibexec/razorback/pdfDissector/modules/detector/object/adobe_flatedecode_predictor02.py
Xlibexec/razorback/pdfDissector/modules/detector/object/embedded_file.py
Xlibexec/razorback/pdfDissector/modules/detector/javascript/__init__.py
Xlibexec/razorback/pdfDissector/modules/detector/javascript/javascript.py
X@dirrm libexec/razorback/pdfDissector/modules/detector/file
X@dirrm libexec/razorback/pdfDissector/modules/detector/object
X@dirrm libexec/razorback/pdfDissector/modules/detector/javascript
X@dirrm libexec/razorback/pdfDissector/modules/detector
X@dirrm libexec/razorback/pdfDissector/modules
X@dirrm libexec/razorback/pdfDissector
X@dirrmtry libexec/razorback
1bd0b7ed6934eea46ca8c4f1d4ad7b9f
echo x - razorback-pdfDissector/Makefile
sed 's/^X//' >razorback-pdfDissector/Makefile << '094d36f9d1b880c423af8a836c0fa25d'
X# New ports collection makefile for:	razorback-pdfDissector
X# Date created:				2011/06/8
X# Whom:					Tom Judge <tom@tomjudge.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pdfDissector
XPORTVERSION=	0.5.0
XCATEGORIES=	security java
XMASTER_SITES=	SF/razorbacktm/Nuggets
XPKGNAMEPREFIX=	razorback-
XDIST_SUBDIR=	razorback
X
XMAINTAINER=	tom@tomjudge.com
XCOMMENT=	Framework for an intelligence driven security - PDF Dissector
X
XLIB_DEPENDS=	razorback_api.2:${PORTSDIR}/security/razorback-api \
X		json.0:${PORTSDIR}/devel/json-c
XBUILD_DEPENDS=	razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget \
X		java:${PORTSDIR}/java/javavmwrapper \
X		${JYTHON_PREFIX}/${JYTHON_JAR}:${PORTSDIR}/lang/jython
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XOPTIONS=	DEBUG "Enable Debug" off \
X		ASSERT "Enable Asserts" off
X
X.include <bsd.port.options.mk>
X
XGNU_CONFIGURE=	yes
X
XUSE_AUTOTOOLS=	libtool
XUSE_LDCONFIG=	${PREFIX}/lib/razorback
XUSE_JAVA=	yes
XJAVA_VERSION=	1.5+
XJYTHON_PREFIX=	${LOCALBASE}/lib/jython
XJYTHON_JAR=	jython.jar
XUSE_RC_SUBR=	pdfDissector
X
X.if defined(WITH_DEBUG)
XCONFIGURE_ARGS+=	--enable-debug
X.endif
X
X.if defined(WITH_ASSERT)
XCONFIGURE_ARGS+=	--enable-assert
X.endif
X
Xpost-install:
X	( cd ${PREFIX}/lib/razorback; ${LN} -sf pdfDissector.so.2 pdfDissector.so.2.0.0 )
X	@if [ ! -f ${PREFIX}/etc/razorback/pdfdissector.conf ]; then \
X		${CP} -p ${PREFIX}/etc/razorback/pdfdissector.conf.sample ${PREFIX}/etc/razorback/pdfdissector.conf ; \
X	fi
X
X.include <bsd.port.mk>
094d36f9d1b880c423af8a836c0fa25d
exit
--- razorback-pdfDissector.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4faaa9da.0251650a.7ee9.ffff82e6>