diff --git a/security/Makefile b/security/Makefile index b7b8e72a3529..8fe4e577ab67 100644 --- a/security/Makefile +++ b/security/Makefile @@ -788,6 +788,7 @@ SUBDIR += rats SUBDIR += razorback-api SUBDIR += razorback-archiveInflate + SUBDIR += razorback-clamavNugget SUBDIR += razorback-dispatcher SUBDIR += razorback-fileInject SUBDIR += razorback-fsMonitor diff --git a/security/razorback-clamavNugget/Makefile b/security/razorback-clamavNugget/Makefile new file mode 100644 index 000000000000..c40e137440d1 --- /dev/null +++ b/security/razorback-clamavNugget/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: razorback-clamavNugget +# Date created: 2011/06/8 +# Whom: Tom Judge +# +# $FreeBSD$ +# + +PORTNAME= clamavNugget +PORTVERSION= 0.5.0 +CATEGORIES= security +MASTER_SITES= SF/razorbacktm/Nuggets +PKGNAMEPREFIX= razorback- +DIST_SUBDIR= razorback + +MAINTAINER= tj@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 +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 + +.include + +RB_LIBDIR?= ${PREFIX}/lib/razorback +GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtool +USE_LDCONFIG= ${RB_LIBDIR} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +.if ${PORT_OPTIONS:MDEBUG} +CONFIGURE_ARGS+=--enable-debug +.endif + +.if ${PORT_OPTIONS:MASSERT} +CONFIGURE_ARGS+=--enable-assert +.endif + +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 + +.include diff --git a/security/razorback-clamavNugget/distinfo b/security/razorback-clamavNugget/distinfo new file mode 100644 index 000000000000..1ce74656457f --- /dev/null +++ b/security/razorback-clamavNugget/distinfo @@ -0,0 +1,2 @@ +SHA256 (razorback/clamavNugget-0.5.0.tar.gz) = 22889075decf957337856be03bca6d88a259b9c73e4cd874a79bdea00b4602e5 +SIZE (razorback/clamavNugget-0.5.0.tar.gz) = 318507 diff --git a/security/razorback-clamavNugget/pkg-descr b/security/razorback-clamavNugget/pkg-descr new file mode 100644 index 000000000000..a48c48275c5f --- /dev/null +++ b/security/razorback-clamavNugget/pkg-descr @@ -0,0 +1,7 @@ +Razorback is a framework for an intelligence driven security solution. +It consists of a Dispatcher at the core of the system, surrounded by +Nuggets of varying types. + +This nugget provides ClamAV integration. + +WWW: http://razorbacktm.sourceforge.net/ diff --git a/security/razorback-clamavNugget/pkg-plist b/security/razorback-clamavNugget/pkg-plist new file mode 100644 index 000000000000..296107dcc55d --- /dev/null +++ b/security/razorback-clamavNugget/pkg-plist @@ -0,0 +1,11 @@ +@comment $FreeBSD$ +@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 +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