2012-05-21 16:08:52 +02:00
|
|
|
# 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
|
|
|
|
|
2012-05-31 21:40:19 +02:00
|
|
|
MAINTAINER= tj@FreeBSD.org
|
2012-05-21 16:08:52 +02:00
|
|
|
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
|
|
|
|
|
2012-06-01 17:27:32 +02:00
|
|
|
OPTIONS_DEFINE= DEBUG ASSERT CNC_DEBUG STOMP_DEBUG
|
|
|
|
|
|
|
|
CNC_DEBUG_DESC= Enable Command and Control Debug
|
|
|
|
STOMP_DEBUG_DESC= Enable STOMP Debug
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2012-05-21 16:08:52 +02:00
|
|
|
|
2013-03-19 14:04:30 +01:00
|
|
|
USES= pathfix
|
2012-05-21 16:08:52 +02:00
|
|
|
USE_AUTOTOOLS= libtool
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
2012-06-01 17:27:32 +02:00
|
|
|
.if !empty(PORT_OPTIONS:MDEBUG)
|
2012-05-21 16:08:52 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 17:27:32 +02:00
|
|
|
.if !empty(PORT_OPTIONS:MASSERT)
|
2012-05-21 16:08:52 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-assert
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 17:27:32 +02:00
|
|
|
.if !empty(PORT_OPTIONS:MCNC_DEBUG)
|
2012-05-21 16:08:52 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-cnc-debug
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 17:27:32 +02:00
|
|
|
.if !empty(PORT_OPTIONS:MSTOMP_DEBUG)
|
2012-05-21 16:08:52 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-stomp-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${CC} == "clang" || ${CXX} == "clang++"
|
|
|
|
BROKEN= does not build when compiled with clang
|
|
|
|
.endif
|
|
|
|
|
2012-09-08 08:53:18 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.endif
|
|
|
|
|
2012-05-21 16:08:52 +02:00
|
|
|
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
|
|
|
|
|
2012-09-08 08:53:18 +02:00
|
|
|
.include <bsd.port.post.mk>
|