svn commit: r361573 - branches/2014Q3/security/razorback-yaraNugget

Pawel Pekala pawel at FreeBSD.org
Fri Jul 11 17:47:47 UTC 2014


Author: pawel
Date: Fri Jul 11 17:47:46 2014
New Revision: 361573
URL: http://svnweb.freebsd.org/changeset/ports/361573
QAT: https://qat.redports.org/buildarchive/r361573/

Log:
  MFH: r361571
  
  - Fix build with clang (overzealous -Werror)
  - Add staging support
  - Convert to new LIB_DEPENDS, options helpers, USES=libtool
  - Use @sample for config file
  
  Approved by:	portmgr (erwin)

Modified:
  branches/2014Q3/security/razorback-yaraNugget/Makefile
  branches/2014Q3/security/razorback-yaraNugget/pkg-plist
Directory Properties:
  branches/2014Q3/   (props changed)

Modified: branches/2014Q3/security/razorback-yaraNugget/Makefile
==============================================================================
--- branches/2014Q3/security/razorback-yaraNugget/Makefile	Fri Jul 11 17:08:46 2014	(r361572)
+++ branches/2014Q3/security/razorback-yaraNugget/Makefile	Fri Jul 11 17:47:46 2014	(r361573)
@@ -3,7 +3,7 @@
 
 PORTNAME=	yaraNugget
 PORTVERSION=	0.5.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	SF/razorbacktm/Nuggets
 PKGNAMEPREFIX=	razorback-
@@ -15,35 +15,27 @@ COMMENT=	Framework for an intelligence d
 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 <bsd.port.options.mk>
+OPTIONS_DEFINE=	DEBUG ASSERT
+
+ASSERT_DESC=	Enable Asserts
+ASSERT_CONFIGURE_ENABLE=	assert
+DEBUG_CONFIGURE_ENABLE=	debug
 
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=--enable-debug
-.endif
-
-.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 <bsd.port.mk>

Modified: branches/2014Q3/security/razorback-yaraNugget/pkg-plist
==============================================================================
--- branches/2014Q3/security/razorback-yaraNugget/pkg-plist	Fri Jul 11 17:08:46 2014	(r361572)
+++ branches/2014Q3/security/razorback-yaraNugget/pkg-plist	Fri Jul 11 17:47:46 2014	(r361573)
@@ -1,13 +1,9 @@
- at 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
- at exec if [ ! -f %D/etc/razorback/yara.conf ]; then cp -p %D/%F %B/yara.conf; fi
+ at sample etc/razorback/yara.conf.sample
 etc/razorback/yara/banker.rules
 etc/razorback/yara/packer.rules
 @dirrmtry etc/razorback/yara
- at 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


More information about the svn-ports-all mailing list