? work Index: Makefile =================================================================== RCS file: /home/pcvs/ports/ftp/proftpd/Makefile,v retrieving revision 1.115 diff -u -r1.115 Makefile --- Makefile 24 Jul 2007 21:34:34 -0000 1.115 +++ Makefile 27 Aug 2007 10:41:01 -0000 @@ -15,7 +15,9 @@ ftp://spirit.bentel.sk/mirrors/Proftpd/distrib/source/ \ ftp://proftpd.networkedsystems.co.uk/distrib/source/ \ http://mirrors.ibiblio.org/pub/mirrors/proftpd/distrib/source/ \ - http://www.mirrorservice.org/sites/ftp.proftpd.org/distrib/source/ + http://www.mirrorservice.org/sites/ftp.proftpd.org/distrib/source/ \ + CENKES:clam +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER?= beech@FreeBSD.org COMMENT?= Highly configurable ftp daemon @@ -61,16 +63,17 @@ IFSESSION "Include mod_ifsession" on \ README "Include mod_readme" on \ RATIO "Include mod_ratio" on \ - CTRLS "include controls" off \ + CTRLS "Include controls" off \ REWRITE "Include mod_rewrite" on \ WRAP "Include mod_wrap2" on \ - WRAP_FILE "include mod_wrap2_file" off \ - WRAP_SQL "include mod_wrap2_sql" off \ + WRAP_FILE "Include mod_wrap2_file" off \ + WRAP_SQL "Include mod_wrap2_sql" off \ RADIUS "Include mod_radius" off \ QUOTATAB_RADIUS "include mod_quotatab_radius" off \ - BAN "include mod_ban (Requires CTRLS)" off \ + BAN "Include mod_ban (Requires CTRLS)" off \ NLS "Use nls (builds mod_lang)" off \ - CYRFIX "Use patch for fix cyrillic encoding" off + CYRFIX "Patch to fix cyrillic encoding" off \ + CLAMAV "Include mod_clamav " off MODULES?= LIBDIRS?= @@ -210,6 +213,16 @@ .endif .endif +.if defined(WITH_CLAMAV) +# http://www.uglyboxindustries.com/mod_clamav_new.c +DISTFILES+= mod_clamav-0.5.tar.bz2:clam +USE_CLAMAV= yes +MODULES:=${MODULES}:mod_clamav +LIB_DEPENDS+= clamav.2:${PORTSDIR}/security/clamav +INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include +LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib +.endif + # mod_ifsession should be the last item in the modules list .if !defined(WITHOUT_IFSESSION) MODULES:=${MODULES}:mod_ifsession @@ -232,6 +245,11 @@ MODULES!=${ECHO} ${MODULES} | ${SED} -e 's,^:,,' -e 's,:$$,,' +.if defined(WITH_CLAMAV) +post-extract: + @${MV} ${WRKDIR}/mod_clamav_new.c ${WRKSRC}/modules/mod_clamav.c +.endif + post-patch: .if defined(WITH_NLS) @${REINPLACE_CMD} -e 's|-lsupp|-lsupp -lintl|g' ${WRKSRC}/Makefile.in Index: distinfo =================================================================== RCS file: /home/pcvs/ports/ftp/proftpd/distinfo,v retrieving revision 1.38 diff -u -r1.38 distinfo --- distinfo 6 Jul 2007 05:45:08 -0000 1.38 +++ distinfo 27 Aug 2007 10:41:01 -0000 @@ -1,3 +1,6 @@ MD5 (proftpd-1.3.1rc3.tar.bz2) = 485af3aee9ecebfeae1ae2003250a3a9 SHA256 (proftpd-1.3.1rc3.tar.bz2) = 9bad65ea4ddca40547ca6bb1aa337c7d4ae54752bb9f5fc76124a8c4535daefd SIZE (proftpd-1.3.1rc3.tar.bz2) = 1538700 +MD5 (mod_clamav-0.5.tar.bz2) = a098b630db1aa4ce02d77be84c21e59d +SHA256 (mod_clamav-0.5.tar.bz2) = badab5d0577439e4de4a4d8fa6d1035da4884cc5b8e5569057816da4ced9667f +SIZE (mod_clamav-0.5.tar.bz2) = 3027