aboutsummaryrefslogtreecommitdiffstats
path: root/security/razorback-dispatcher
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-07-11 23:59:42 +0800
committerpawel <pawel@FreeBSD.org>2014-07-11 23:59:42 +0800
commit7e6734341c6460b9ac95fc7b72f4e99a45727cd8 (patch)
tree552d09c5a1a6f0701c8183c377b7d8df1a89b9b4 /security/razorback-dispatcher
parent01ddda727c8bddb0351930cdecca81ecfab8f73c (diff)
downloadfreebsd-ports-gnome-7e6734341c6460b9ac95fc7b72f4e99a45727cd8.tar.gz
freebsd-ports-gnome-7e6734341c6460b9ac95fc7b72f4e99a45727cd8.tar.zst
freebsd-ports-gnome-7e6734341c6460b9ac95fc7b72f4e99a45727cd8.zip
- Add staging support
- Convert to new LIB_DEPENDS format, options helpers, USES=libtool - Use @sample for config file
Diffstat (limited to 'security/razorback-dispatcher')
-rw-r--r--security/razorback-dispatcher/Makefile35
-rw-r--r--security/razorback-dispatcher/pkg-plist5
2 files changed, 12 insertions, 28 deletions
diff --git a/security/razorback-dispatcher/Makefile b/security/razorback-dispatcher/Makefile
index f44c7a9674a5..f4bce75db323 100644
--- a/security/razorback-dispatcher/Makefile
+++ b/security/razorback-dispatcher/Makefile
@@ -9,22 +9,17 @@ MASTER_SITES= SF/razorbacktm/Dispatcher
PKGNAMEPREFIX= razorback-
DIST_SUBDIR= razorback
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@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
+LIB_DEPENDS= librazorback_api.so:${PORTSDIR}/security/razorback-api \
+ libmemcached.so:${PORTSDIR}/databases/libmemcached \
+ libcli.so:${PORTSDIR}/devel/libcli
-OPTIONS_DEFINE= DEBUG ASSERT ACTIVEMQ
-ASSERT_DESC= Enable Asserts
-ACTIVEMQ_DESC= ActiveMQ runs locally
-
-USES= pathfix pkgconfig
-USE_AUTOTOOLS= libtool
+USES= libtool pathfix pkgconfig
GNU_CONFIGURE= yes
USE_MYSQL= yes
USE_RC_SUBR= dispatcher dispatcher_safed
@@ -35,16 +30,14 @@ LDFLAGS+= -L${LOCALBASE}/lib
USERS?= razorback
GROUPS?= razorback
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DEBUG ASSERT ACTIVEMQ
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=--enable-debug
-.endif
+ASSERT_DESC= Enable Asserts
+ASSERT_CONFIGURE_ENABLE= assert
+ACTIVEMQ_DESC= ActiveMQ runs locally
+DEBUG_CONFIGURE_ENABLE= debug
-.if ${PORT_OPTIONS:MASSERT}
-CONFIGURE_ARGS+=--enable-assert
-.endif
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MACTIVEMQ}
RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/activemq:${PORTSDIR}/net/activemq
@@ -57,10 +50,4 @@ SUB_LIST= ACTIVEMQ="" ACTIVEMQ_LOC="remote" \
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>
diff --git a/security/razorback-dispatcher/pkg-plist b/security/razorback-dispatcher/pkg-plist
index 46509385fa16..3f670c0be1f3 100644
--- a/security/razorback-dispatcher/pkg-plist
+++ b/security/razorback-dispatcher/pkg-plist
@@ -1,9 +1,6 @@
bin/dispatcher
bin/dispatcher_safed
-@unexec if cmp -s %D/etc/razorback/dispatcher.conf %D/etc/razorback/dispatcher.conf.sample; then rm -f %D/etc/razorback/dispatcher.conf; fi
-etc/razorback/dispatcher.conf.sample
-@exec if [ ! -f %D/etc/razorback/dispatcher.conf ]; then cp -p %D/%F %B/dispatcher.conf; fi
-@dirrmtry etc/razorback
+@sample etc/razorback/dispatcher.conf.sample
share/razorback/razorback.sql
share/razorback/razorback-data.sql
share/razorback/truncate.sql