Allow clamav to use rar 3 archives using archivers/libunrar.

PR:		86510
Submitted by:	Alex Samorukov <samm@os2.kiev.ua>,
		Rob <r.evers@nedstat.com> (maintainer)
This commit is contained in:
Vsevolod Stakhov 2005-10-11 23:07:39 +00:00
parent 187ecf1c86
commit 81a74240a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145036
2 changed files with 3255 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= clamav
PORTVERSION= 0.87
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= clamav
@ -23,7 +24,8 @@ RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \
unzip:${PORTSDIR}/archivers/unzip
OPTIONS= MILTER "Compile the milter interface" Off \
CURL "Support URL downloading" Off
CURL "Support URL downloading" Off \
UNRAR "Support for external Unrar library" Off
USE_REINPLACE= yes
USE_LIBTOOL_VER=15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@ -124,9 +126,25 @@ CONFIGURE_ARGS+= --with-libcurl
CONFIGURE_ARGS+= --without-libcurl
.endif
.if defined(WITH_LIBUNRAR)
WANT_AUTOMAKE_VER= 19
USE_AUTOCONF_VER= 259
LIB_DEPENDS+= unrar.3:${PORTSDIR}/archivers/libunrar
pre-configure:
cd ${WRKSRC} && \
${ACLOCAL} && \
${AUTOHEADER} && \
${AUTOCONF} && \
${AUTOMAKE}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-pthread -lc_r|${PTHREAD_LIBS}|g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(WITH_LIBUNRAR)
${PATCH} -d ${WRKSRC}/libclamav < ${PORTSDIR}/security/clamav/files/clamav-0.87-libunrar3.patch
.endif
pre-build:
@if ${LDCONFIG} -r | ${GREP} -qw -e -lclamav; then \

File diff suppressed because it is too large Load Diff