Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2014 15:50:28 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361556 - head/security/razorback-clamavNugget
Message-ID:  <201407111550.s6BFoSQR045517@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Jul 11 15:50:28 2014
New Revision: 361556
URL: http://svnweb.freebsd.org/changeset/ports/361556
QAT: https://qat.redports.org/buildarchive/r361556/

Log:
  - Add staging support
  - Convert to new LIB_DEPENDS, options helpers, USES=libtool
  - Use @sample for config file

Modified:
  head/security/razorback-clamavNugget/Makefile
  head/security/razorback-clamavNugget/pkg-plist

Modified: head/security/razorback-clamavNugget/Makefile
==============================================================================
--- head/security/razorback-clamavNugget/Makefile	Fri Jul 11 15:43:40 2014	(r361555)
+++ head/security/razorback-clamavNugget/Makefile	Fri Jul 11 15:50:28 2014	(r361556)
@@ -3,48 +3,39 @@
 
 PORTNAME=	clamavNugget
 PORTVERSION=	0.5.0
+PORTREVISION=	1
 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 - ClamAV Detection
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	razorback_api:${PORTSDIR}/security/razorback-api \
-		clamav:${PORTSDIR}/security/clamav
+LIB_DEPENDS=	librazorback_api.so:${PORTSDIR}/security/razorback-api \
+		libclamav.so:${PORTSDIR}/security/clamav
 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
 
-USES=		pkgconfig
+USES=		libtool pkgconfig
 RB_LIBDIR?=	${PREFIX}/lib/razorback
 GNU_CONFIGURE=	yes
-USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	${RB_LIBDIR}
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DEBUG ASSERT
 
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=--enable-debug
-.endif
-
-.if ${PORT_OPTIONS:MASSERT}
-CONFIGURE_ARGS+=--enable-assert
-.endif
+ASSERT_DESC=	Enable Asserts
+ASSERT_CONFIGURE_ENABLE=	assert
+DEBUG_CONFIGURE_ENABLE=	debug
 
 post-install:
-	${LN} -sf ${RB_LIBDIR}/clamavNugget.so.2 ${RB_LIBDIR}/clamavNugget.so.2.0.0
-	@if [ ! -f ${PREFIX}/etc/razorback/clamav.conf ]; then \
-		${CP} -p ${PREFIX}/etc/razorback/clamav.conf.sample ${PREFIX}/etc/razorback/clamav.conf ; \
-	fi
+	${LN} -sf ${RB_LIBDIR}/clamavNugget.so.2 \
+		${STAGEDIR}${RB_LIBDIR}/clamavNugget.so.2.0.0
 
 .include <bsd.port.mk>

Modified: head/security/razorback-clamavNugget/pkg-plist
==============================================================================
--- head/security/razorback-clamavNugget/pkg-plist	Fri Jul 11 15:43:40 2014	(r361555)
+++ head/security/razorback-clamavNugget/pkg-plist	Fri Jul 11 15:50:28 2014	(r361556)
@@ -1,10 +1,6 @@
-@unexec if cmp -s %D/etc/razorback/clamav.conf %D/etc/razorback/clamav.conf.sample; then rm -f %D/etc/razorback/clamav.conf; fi
-etc/razorback/clamav.conf.sample
-@exec if [ ! -f %D/etc/razorback/clamav.conf ]; then cp -p %D/%F %B/clamav.conf; fi
-@dirrmtry etc/razorback
+@sample etc/razorback/clamav.conf.sample
 lib/razorback/clamavNugget.so.2.0.0
 lib/razorback/clamavNugget.so.2
 lib/razorback/clamavNugget.so
-lib/razorback/clamavNugget.la
 lib/razorback/clamavNugget.a
 @dirrmtry lib/razorback



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407111550.s6BFoSQR045517>