aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-06-21 18:41:08 +0000
committerRenato Botelho <garga@FreeBSD.org>2013-06-21 18:41:08 +0000
commitb619cfa85269cf9064c592cfe2de0dad0deb649e (patch)
tree08f6149fea09f4e12f6a2048cf749eaf6f8b8d76 /security
parentffb69d7dd7096b1971e61d9b14308e898967dfee (diff)
downloadports-b619cfa85269cf9064c592cfe2de0dad0deb649e.tar.gz
ports-b619cfa85269cf9064c592cfe2de0dad0deb649e.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/clamav-devel/Makefile52
-rw-r--r--security/clamav-devel/distinfo4
-rw-r--r--security/clamav-devel/pkg-plist6
3 files changed, 19 insertions, 43 deletions
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index c5f05908cb4b..333ea2fd77fc 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= clamav
-PORTVERSION= 20130531
+PORTVERSION= 20130621
CATEGORIES= security
MASTER_SITES= http://www.clamav.net/snapshot/ \
LOCAL/garga/clamav-devel
@@ -28,6 +28,18 @@ STDERR_DESC= Print logs to stderr instead of stdout
OPTIONS_DEFAULT= ARC ARJ LHA UNZOO UNRAR LLVM DOCS
+ARC_RUN_DEPENDS= arc:${PORTSDIR}/archivers/arc
+ARJ_RUN_DEPENDS= arj:${PORTSDIR}/archivers/arj
+LHA_RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha
+UNZOO_RUN_DEPENDS= unzoo:${PORTSDIR}/archivers/unzoo
+UNRAR_CONFIGURE_ENABLE= unrar
+MILTER_CONFIGURE_ENABLE=milter
+TESTS_CONFIGURE_ENABLE= check
+TESTS_BUILD_DEPENDS= ${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
+ICONV_CONFIGURE_ON= --with-iconv
+ICONV_CONFIGURE_OFF= --without-iconv
+ICONV_USES= iconv
+
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
@@ -44,6 +56,7 @@ RUNDIR= /var/run/clamav
PLIST_SUB+= DBDIR=${DBDIR} LOGDIR=${LOGDIR} RUNDIR=${RUNDIR}
PY_NO_THREAD= ${WRKDIR}/.python-has-no-threads
USE_AUTOTOOLS= libltdl
+OPTIONS_SUB= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/lib \
--with-dbdir=${DBDIR} \
@@ -118,31 +131,6 @@ PORTSCOUT= ignore:1
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MARC}
-RUN_DEPENDS+= arc:${PORTSDIR}/archivers/arc
-.endif
-.if ${PORT_OPTIONS:MARJ}
-RUN_DEPENDS+= arj:${PORTSDIR}/archivers/arj
-.endif
-.if ${PORT_OPTIONS:MLHA}
-RUN_DEPENDS+= lha:${PORTSDIR}/archivers/lha
-.endif
-.if ${PORT_OPTIONS:MUNZOO}
-RUN_DEPENDS+= unzoo:${PORTSDIR}/archivers/unzoo
-.endif
-.if ${PORT_OPTIONS:MUNRAR}
-PLIST_SUB+= UNRAR=""
-.else
-PLIST_SUB+= UNRAR="@comment "
-CONFIGURE_ARGS+=--disable-unrar
-.endif
-.if ${PORT_OPTIONS:MICONV}
-CONFIGURE_ARGS+=--with-iconv
-USES+= iconv
-.else
-CONFIGURE_ARGS+=--without-iconv
-.endif
-
.if ${PORT_OPTIONS:MLLVM} && ( ${ARCH} == "i386" || ${ARCH} == "amd64" )
CONFIGURE_ARGS+=--enable-llvm
. if defined(WITH_TESTS)
@@ -166,11 +154,6 @@ CONFIGURE_ARGS+=--with-sendmail=${LOCALBASE}/sbin/sendmail
. else
CONFIGURE_ARGS+=--with-sendmail=/usr/sbin/sendmail
. endif
-
-CONFIGURE_ARGS+=--enable-milter
-PLIST_SUB+= CLAMAV-MILTER=""
-.else
-PLIST_SUB+= CLAMAV-MILTER="@comment "
.endif
.if ${PORT_OPTIONS:MSTDERR}
@@ -183,13 +166,6 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-shared_output.c
CFLAGS+= -march=i486
.endif
-.if ${PORT_OPTIONS:MTESTS} && ${OSVERSION} >= 700000
-BUILD_DEPENDS+= ${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
-CONFIGURE_ARGS+=--enable-check
-.else
-CONFIGURE_ARGS+=--disable-check
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
${WRKSRC}/${CONFIGURE_SCRIPT}
diff --git a/security/clamav-devel/distinfo b/security/clamav-devel/distinfo
index a3e94bc91e9f..a8ac78ef9d45 100644
--- a/security/clamav-devel/distinfo
+++ b/security/clamav-devel/distinfo
@@ -1,2 +1,2 @@
-SHA256 (clamav-devel-20130531.tar.gz) = b50038e9acfaf4dca0ac27a15cd25bffa4912cd8799193a16f7a02b7aa5c2376
-SIZE (clamav-devel-20130531.tar.gz) = 37001728
+SHA256 (clamav-devel-20130621.tar.gz) = 25c9652b6261c7bb6d15b453be39d3dfec21771209fc49035ca4ceffd360b505
+SIZE (clamav-devel-20130621.tar.gz) = 37001626
diff --git a/security/clamav-devel/pkg-plist b/security/clamav-devel/pkg-plist
index 7cf0285ea8a4..1e50017d0949 100644
--- a/security/clamav-devel/pkg-plist
+++ b/security/clamav-devel/pkg-plist
@@ -7,7 +7,7 @@ bin/clamscan
bin/clamdscan
bin/freshclam
bin/sigtool
-%%CLAMAV-MILTER%%sbin/clamav-milter
+%%MILTER%%sbin/clamav-milter
sbin/clamd
include/clamav.h
include/clamav-config.h
@@ -26,8 +26,8 @@ etc/clamd.conf.default
@exec [ -f %B/clamd.conf ] || cp %B/%f %B/clamd.conf
@unexec if cmp -s %D/etc/freshclam.conf %D/etc/freshclam.conf.default; then rm -f %D/etc/freshclam.conf; fi
etc/freshclam.conf.default
-%%CLAMAV-MILTER%%@unexec if cmp -s %D/etc/clamav-milter.conf %D/etc/clamav-milter.conf.default; then rm -f %D/etc/clamav-milter.conf; fi
-%%CLAMAV-MILTER%%etc/clamav-milter.conf.default
+%%MILTER%%@unexec if cmp -s %D/etc/clamav-milter.conf %D/etc/clamav-milter.conf.default; then rm -f %D/etc/clamav-milter.conf; fi
+%%MILTER%%etc/clamav-milter.conf.default
@exec [ -f %B/freshclam.conf ] || cp %B/%f %B/freshclam.conf
@unexec [ -s %%DBDIR%%/daily.cvd ] || rm -f %%DBDIR%%/daily.cvd || true
@unexec [ -s %%DBDIR%%/main.cvd ] || rm -f %%DBDIR%%/main.cvd || true