Date: Wed, 09 May 2012 15:37:19 +0000 From: Tom Judge <tom@tomjudge.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: zi@FreeBSD.org Subject: ports/167738: New Port: security/razorback-dispatcher Message-ID: <4faa8f32.20f3640a.06a3.22c4@mx.google.com> Resent-Message-ID: <201205091540.q49Fe8xk099835@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 167738 >Category: ports >Synopsis: New Port: security/razorback-dispatcher >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 15:40:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Tom Judge >Release: FreeBSD 8.1-RELEASE i386 >Organization: Soucefire >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 Razorbacks's dispatcher. Depends on the api in ports/167736 9.0 amd64 https://redports.org/~tj/20120501184547-49601-22668/razorback-dispatcher-0.5.0.log 9.0 i386 https://redports.org/~tj/20120501184547-49601-22669/razorback-dispatcher-0.5.0.log >How-To-Repeat: >Fix: --- razorback-dispatcher.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-dispatcher # razorback-dispatcher/files # razorback-dispatcher/files/dispatcher.in # razorback-dispatcher/files/dispatcher_safed.in # razorback-dispatcher/distinfo # razorback-dispatcher/pkg-descr # razorback-dispatcher/pkg-plist # razorback-dispatcher/Makefile # echo c - razorback-dispatcher mkdir -p razorback-dispatcher > /dev/null 2>&1 echo c - razorback-dispatcher/files mkdir -p razorback-dispatcher/files > /dev/null 2>&1 echo x - razorback-dispatcher/files/dispatcher.in sed 's/^X//' >razorback-dispatcher/files/dispatcher.in << '8fae2286d5d46fa473e597bc5c705ca4' X#!/bin/sh X# PROVIDE: dispatcher X# REQUIRE: activemq mysql X# BEFORE: LOGIN X# KEYWORD: shutdown X# X X. /etc/rc.subr X Xdispatcher_enable=${dispatcher_enable:-"NO"} Xdispatcher_user=${dispatcher_user:-"razorback"} Xdispatcher_group=${dispatcher_group:-"razorback"} X Xname=dispatcher Xrcvar=`set_rcvar` Xload_rc_config $name Xcommand=%%LOCALBASE%%/bin/dispatcher Xstart_precmd="dispatcher_precmd" X_piddir=/var/run/razorback Xpidfile=${_piddir}/dispatcher.pid X Xdispatcher_precmd() { X install -d -o $dispatcher_user -g $dispatcher_user -m 755 $_piddir X sleep 30 X} Xrun_rc_command "$1" 8fae2286d5d46fa473e597bc5c705ca4 echo x - razorback-dispatcher/files/dispatcher_safed.in sed 's/^X//' >razorback-dispatcher/files/dispatcher_safed.in << '47258dfa4666e2478c6b2bf7b1f3f5cd' X#!/bin/sh X# PROVIDE: dispatcher_safed X# REQUIRE: dispatcher X# BEFORE: LOGIN X# KEYWORD: shutdown X# X X. /etc/rc.subr X Xdispatcher_safed_enable=${dispatcher_safed_enable:-NO} X Xname=dispatcher_safed Xrcvar=`set_rcvar` Xload_rc_config $name Xpidfile="/var/run/dispatcher_safed.pid" Xcommand="%%LOCALBASE%%/bin/dispatcher_safed" Xstart_cmd=dispatcher_safed_start Xprocname="/bin/sh" X Xdispatcher_safed_start() { X /usr/sbin/daemon -cf -p ${pidfile} ${command} X} X Xrun_rc_command "$1" 47258dfa4666e2478c6b2bf7b1f3f5cd echo x - razorback-dispatcher/distinfo sed 's/^X//' >razorback-dispatcher/distinfo << '35e69941685c9cb32c1e858fdb661577' XSHA256 (razorback/dispatcher-0.5.0.tar.gz) = 8e7fcc03ea08c86fd35971857c8ca03531909942b2c9e3c6d159252c1dec26a7 XSIZE (razorback/dispatcher-0.5.0.tar.gz) = 401689 35e69941685c9cb32c1e858fdb661577 echo x - razorback-dispatcher/pkg-descr sed 's/^X//' >razorback-dispatcher/pkg-descr << '9dfb5c15630eb239a304dbe39e3152f8' 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/ 9dfb5c15630eb239a304dbe39e3152f8 echo x - razorback-dispatcher/pkg-plist sed 's/^X//' >razorback-dispatcher/pkg-plist << '20a07af15c144090c9c63cb456f5f2e5' X@comment $FreeBSD$ X@unexec if cmp -s %D/etc/razorback/dispatcher.conf %D/etc/razorback/dispatcher.conf.sample; then rm -f %D/etc/razorback/dispatcher.conf; fi Xetc/razorback/dispatcher.conf.sample X@exec if [ ! -f %D/etc/razorback/dispatcher.conf ]; then cp -p %D/%F %B/dispatcher.conf; fi X@dirrmtry etc/razorback Xbin/dispatcher Xbin/dispatcher_safed Xshare/razorback/razorback.sql Xshare/razorback/razorback-data.sql Xshare/razorback/truncate.sql X@dirrmtry share/razorback X 20a07af15c144090c9c63cb456f5f2e5 echo x - razorback-dispatcher/Makefile sed 's/^X//' >razorback-dispatcher/Makefile << 'f7a7d046a2afadc58a002090c9c23a11' X# New ports collection makefile for: razorback-dispatcher X# Date created: 2011/06/8 X# Whom: Tom Judge <tom@tomjudge.com> X# X# $FreeBSD$ X# X XPORTNAME= dispatcher XPORTVERSION= 0.5.0 XCATEGORIES= security XMASTER_SITES= SF/razorbacktm/Dispatcher XPKGNAMEPREFIX= razorback- XDIST_SUBDIR= razorback X XMAINTAINER= tom@tomjudge.com XCOMMENT= Framework for an intelligence driven security - Dispatcher X XLIB_DEPENDS= razorback_api.2:${PORTSDIR}/security/razorback-api \ X memcached:${PORTSDIR}/databases/libmemcached \ X cli.19:${PORTSDIR}/devel/libcli X XOPTIONS= DEBUG "Enable Debug" off \ X ASSERT "Enable Asserts" off X X.include <bsd.port.options.mk> X XGNU_CONFIGURE= yes XUSE_GNOME= gnomehack XUSE_MYSQL= yes XUSE_RC_SUBR= dispatcher dispatcher_safed XUSERS= razorback XGROUPS= razorback X XUSE_AUTOTOOLS= libtool 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 @if [ ! -f ${PREFIX}/etc/razorback/dispatcher.conf ]; then \ X ${CP} -p ${PREFIX}/etc/razorback/dispatcher.conf.sample ${PREFIX}/etc/razorback/dispatcher.conf ; \ X fi X X.include <bsd.port.mk> f7a7d046a2afadc58a002090c9c23a11 exit --- razorback-dispatcher.shar ends here --- --- uids.patch begins here --- --- UIDs.orig 2012-05-01 14:59:32.000000000 +0000 +++ UIDs 2012-05-01 14:24:22.000000000 +0000 @@ -233,4 +233,5 @@ oops:*:954:65534::0:0:oops user:/nonexistent:/usr/sbin/nologin hadoop:*:955:955::0:0:hadoop user:/nonexistent:/usr/sbin/nologin pandora:*:956:956::0:0:Pandora FMS user:/usr/local/etc/pandora/home:/usr/sbin/nologin +razorback:*:957:957::0:0:Razorback user:/var/run/razorback:/usr/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin --- uids.patch ends here --- --- gids.patch begins here --- --- GIDs.orig 2012-05-01 15:00:22.000000000 +0000 +++ GIDs 2012-05-01 14:24:22.000000000 +0000 @@ -230,4 +230,5 @@ _neubot:*:953: hadoop:*:955: pandora:*:956: +razorback:*:957: nobody:*:65534: --- gids.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4faa8f32.20f3640a.06a3.22c4>