blob: f7638cd8c4e7badee5a510b25821a107a4d4c0e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# 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
PORTREVISION= 1
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
ASSERT_DESC= Enable Asserts
ACTIVEMQ_DESC= ActiveMQ runs locally
.include <bsd.port.options.mk>
USES= pathfix
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>
|