From 78faa64e42c324a5197b116394826e3ece6ba8fa Mon Sep 17 00:00:00 2001 From: pawel Date: Fri, 11 Jul 2014 17:00:13 +0000 Subject: - Fix build with clang (overzealous -Werror) - Add staging support - Convert to new LIB_DEPENDS, options helpers, USES=libtool - Use @sample for config file MFH: 2014Q3 --- security/razorback-yaraNugget/Makefile | 34 +++++++++++++-------------------- security/razorback-yaraNugget/pkg-plist | 6 +----- 2 files changed, 14 insertions(+), 26 deletions(-) (limited to 'security/razorback-yaraNugget') diff --git a/security/razorback-yaraNugget/Makefile b/security/razorback-yaraNugget/Makefile index 265ca09c43b..243f1e2c31e 100644 --- a/security/razorback-yaraNugget/Makefile +++ b/security/razorback-yaraNugget/Makefile @@ -3,47 +3,39 @@ PORTNAME= yaraNugget PORTVERSION= 0.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF/razorbacktm/Nuggets PKGNAMEPREFIX= razorback- DIST_SUBDIR= razorback -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Framework for an intelligence driven security - Yara Detection LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= razorback_api:${PORTSDIR}/security/razorback-api \ - pcre:${PORTSDIR}/devel/pcre +LIB_DEPENDS= librazorback_api.so:${PORTSDIR}/security/razorback-api \ + libpcre.so:${PORTSDIR}/devel/pcre BUILD_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget RUN_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget -OPTIONS_DEFINE= DEBUG ASSERT -ASSERT_DESC= Enable Asserts - RB_LIBDIR?= ${PREFIX}/lib/razorback GNU_CONFIGURE= yes -USES= pkgconfig -USE_AUTOTOOLS= libtool +USES= libtool pkgconfig USE_LDCONFIG= ${RB_LIBDIR} -NO_STAGE= yes -.include +OPTIONS_DEFINE= DEBUG ASSERT -.if ${PORT_OPTIONS:MDEBUG} -CONFIGURE_ARGS+=--enable-debug -.endif +ASSERT_DESC= Enable Asserts +ASSERT_CONFIGURE_ENABLE= assert +DEBUG_CONFIGURE_ENABLE= debug -.if ${PORT_OPTIONS:MASSERT} -CONFIGURE_ARGS+=--enable-assert -.endif +post-patch: + @${REINPLACE_CMD} '/CWARNINGS/ s|-Werror||' ${WRKSRC}/configure post-install: - ${LN} -sf ${RB_LIBDIR}/yaraNugget.so.2 ${RB_LIBDIR}/yaraNugget.so.2.0.0 - @if [ ! -f ${PREFIX}/etc/razorback/yara.conf ]; then \ - ${CP} -p ${PREFIX}/etc/razorback/yara.conf.sample ${PREFIX}/etc/razorback/yara.conf ; \ - fi + ${LN} -sf ${RB_LIBDIR}/yaraNugget.so.2 \ + ${STAGEDIR}${RB_LIBDIR}/yaraNugget.so.2.0.0 .include diff --git a/security/razorback-yaraNugget/pkg-plist b/security/razorback-yaraNugget/pkg-plist index 0d59d55c9a0..6f1c6a6d25f 100644 --- a/security/razorback-yaraNugget/pkg-plist +++ b/security/razorback-yaraNugget/pkg-plist @@ -1,13 +1,9 @@ -@unexec if cmp -s %D/etc/razorback/yara.conf %D/etc/razorback/yara.conf.sample; then rm -f %D/etc/razorback/yara.conf; fi -etc/razorback/yara.conf.sample -@exec if [ ! -f %D/etc/razorback/yara.conf ]; then cp -p %D/%F %B/yara.conf; fi +@sample etc/razorback/yara.conf.sample etc/razorback/yara/banker.rules etc/razorback/yara/packer.rules @dirrmtry etc/razorback/yara -@dirrmtry etc/razorback lib/razorback/yaraNugget.so.2.0.0 lib/razorback/yaraNugget.so.2 lib/razorback/yaraNugget.so -lib/razorback/yaraNugget.la lib/razorback/yaraNugget.a @dirrmtry lib/razorback -- cgit