freebsd-ports/security/razorback-dispatcher/Makefile
Ryan Steinmetz 849135e9c6 New port: security/razorback-dispatcher:
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/167738
Submitted by:	Tom Judge <tom@tomjudge.com>
2012-06-11 02:20:53 +00:00

69 lines
1.7 KiB
Makefile

# New ports collection makefile for: razorback-dispatcher
# Date created: 2011/06/8
# Whom: Tom Judge <tom@tomjudge.com>
#
# $FreeBSD$
#
PORTNAME= dispatcher
PORTVERSION= 0.5.0
CATEGORIES= security
MASTER_SITES= SF/razorbacktm/Dispatcher
PKGNAMEPREFIX= razorback-
DIST_SUBDIR= razorback
MAINTAINER= tj@FreeBSD.org
COMMENT= Framework for an intelligence driven security - Dispatcher
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= razorback_api:${PORTSDIR}/security/razorback-api \
memcached:${PORTSDIR}/databases/libmemcached \
cli:${PORTSDIR}/devel/libcli
OPTIONS_DEFINE= DEBUG ASSERT ACTIVEMQ
OPTIONS_DEFAULT=ACTIVEMQ
ASSERT_DESC= Enable Asserts
ACTIVEMQ_DESC= ActiveMQ runs locally
.include <bsd.port.options.mk>
USE_GNOME= gnomehack
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_MYSQL= yes
USE_RC_SUBR= dispatcher dispatcher_safed
SUB_FILES= pkg-message
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USERS?= razorback
GROUPS?= razorback
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
.if ${PORT_OPTIONS:MASSERT}
CONFIGURE_ARGS+=--enable-assert
.endif
.if ${PORT_OPTIONS:MACTIVEMQ}
RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/activemq:${PORTSDIR}/net/activemq
SUB_LIST= ACTIVEMQ="activemq " ACTIVEMQ_LOC="local" \
ACTIVEMQ_LOCATION="in the ActiveMQ configuration directory:" \
ACTIVEMQ_CONFIG="${LOCALBASE}/etc/activemq/"
.else
SUB_LIST= ACTIVEMQ="" ACTIVEMQ_LOC="remote" \
ACTIVEMQ_LOCATION="on the remote ActiveMQ host." \
ACTIVEMQ_CONFIG=""
.endif
post-install:
@if [ ! -f ${PREFIX}/etc/razorback/dispatcher.conf ]; then \
${CP} -p ${PREFIX}/etc/razorback/dispatcher.conf.sample ${PREFIX}/etc/razorback/dispatcher.conf ; \
fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>