--- Makefile (revision 348081) +++ Makefile (working copy) @@ -10,8 +10,8 @@ ftp://proftpd.networkedsystems.co.uk/distrib/source/ \ http://www.mirrorservice.org/sites/ftp.proftpd.org/distrib/source/ \ http://labratsoftware.com/mod_sql_tds/:sql_tds \ - LOCAL/beech:sql_tds -# https://secure.thrallingpenguin.com/redmine/attachments/download/1/:clam + LOCAL/beech:sql_tds \ + https://codeload.github.com/jbenden/mod_clamav/legacy.tar.gz/v0.13rc2?dummy=/:clamav .if defined(_BUILDING_PROFTPD_MODULE) DISTNAME= proftpd-${PORTVERSION} .endif @@ -81,10 +81,10 @@ .endfor PLIST_DIRSTRY+= libexec/proftpd .else -OPTIONS_DEFINE= HTMLDOCS IPV6 NLS MEMCACHE PCRE +OPTIONS_DEFINE= HTMLDOCS IPV6 NLS MEMCACHE PCRE CLAMAV OPTIONS_DEFAULT= IPV6 NLS PCRE -#CLAMAV_DESC= Include mod_clamav +CLAMAV_DESC= Include mod_clamav HTMLDOCS_DESC= Include HTML documentation MEMCACHE_DESC= Memcache support using libmemcached @@ -174,17 +174,16 @@ mod_sql_tds-4.13${EXTRACT_SUFX}:sql_tds .endif -#.if ${PORT_OPTIONS:MCLAMAV} || make(makesum) || defined(FETCH_ALL) -#DISTFILES+= mod_clamav-0.11rc.tar.gz:clam -#EXTRA_PATCHES+= ${FILESDIR}/extra-patch-modules_mod_xfer.c -#USE_CLAMAV= yes -#MODULES+= mod_clamav -#LIB_DEPENDS+= clamav.7:${PORTSDIR}/security/clamav -#PLIST_SUB+= CLAMAV="" -#PROFTPD_LIBS+= -lclamav -#.else +.if ${PORT_OPTIONS:MCLAMAV} || make(makesum) || defined(FETCH_ALL) +DISTFILES+= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ + mod_clamav-v0.13rc2${EXTRACT_SUFX}:clamav +USE_CLAMAV= yes +MODULES+= mod_clamav +RUN_DEPENDS+= clamd:${PORTSDIR}/security/clamav +PLIST_SUB+= CLAMAV="" +.else PLIST_SUB+= CLAMAV="@comment " -#.endif +.endif .if ${PORT_OPTIONS:MMEMCACHE} MODULES+= mod_memcache \ @@ -213,12 +212,6 @@ CONFIGURE_ARGS+= --with-libraries=${LIBDIRS} .if !defined(_BUILDING_PROFTPD_MODULE) -#post-extract: -#.if ${PORT_OPTIONS:MCLAMAV} -# (cd ${WRKDIR} && ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/mod_clamav-0.11rc.tar.gz ${EXTRACT_AFTER_ARGS}) -# @${CP} ${WRKDIR}/mod_clamav-0.11rc/mod_clamav.* ${WRKSRC}/contrib -#.endif - post-patch: .if ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -e 's|-lsupp|-lsupp -lintl|g' ${WRKSRC}/Makefile.in @@ -226,6 +219,9 @@ @${REINPLACE_CMD} -e 's|proftpd\.conf|proftpd.conf.sample|g' ${WRKSRC}/Makefile.in pre-configure: +.if ${PORT_OPTIONS:MCLAMAV} + @${CP} ${WRKDIR}/jbenden-mod_clamav-0b524e3/mod_clamav.* ${WRKSRC}/contrib +.endif @${ECHO_MSG} "==> Configuring with following modules:" @${ECHO_MSG} "${MODULES:C/^://g}" --- distinfo (revision 348081) +++ distinfo (working copy) @@ -2,3 +2,5 @@ SIZE (proftpd-1.3.4d.tar.gz) = 7697046 SHA256 (mod_sql_tds-4.13.tar.gz) = 9d9fb6c4b9a952739a84e166ed8b0d93f539c7bcf73e32923318e00cbd7eea08 SIZE (mod_sql_tds-4.13.tar.gz) = 11688 +SHA256 (mod_clamav-v0.13rc2.tar.gz) = 06b49e0042fdd86d198ad1b1cf33f2c296cb2b6dcbdd2010df392ec37b670457 +SIZE (mod_clamav-v0.13rc2.tar.gz) = 10841