From owner-svn-ports-branches@FreeBSD.ORG Fri Jul 11 17:47:47 2014 Return-Path: Delivered-To: svn-ports-branches@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B60AAB37; Fri, 11 Jul 2014 17:47:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A1C1823F0; Fri, 11 Jul 2014 17:47:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6BHllZI014239; Fri, 11 Jul 2014 17:47:47 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6BHll75014237; Fri, 11 Jul 2014 17:47:47 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201407111747.s6BHll75014237@svn.freebsd.org> From: Pawel Pekala Date: Fri, 11 Jul 2014 17:47:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r361573 - branches/2014Q3/security/razorback-yaraNugget X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 17:47:47 -0000 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 +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 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 @@ -@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