Date: Fri, 10 Mar 2006 13:53:38 GMT From: Maxim <Maxim.Lougovsky@kaspersky.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/94310: Please add support for KAS 3.0 to /usr/ports/mail/exim Message-ID: <200603101353.k2ADrcgp052189@www.freebsd.org> Resent-Message-ID: <200603110210.k2B2Aj5w059890@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 94310 >Category: ports >Synopsis: Please add support for KAS 3.0 to /usr/ports/mail/exim >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Mar 11 02:10:44 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Maxim >Release: 5.4-RELEASE >Organization: Kaspersky Lab >Environment: FreeBSD vmware-freebsd54.avp.ru 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Please add support for Kaspersky Anti-Spam version 3.0. By the meantime, only beta version is available at: http://www.kaspersky.com/beta?product=181706634 It works via local_scan API and needs some files from the KAS-3.0 package in order to build port. >How-To-Repeat: - >Fix: diff -ruN exim/Makefile exim.old/Makefile --- exim/Makefile Fri Mar 3 12:21:34 2006 +++ exim.old/Makefile Fri Mar 3 12:06:06 2006 @@ -122,12 +122,6 @@ # local_scan function (<http://marc.merlins.org/linux/exim/sa.html>) #WITH_SA_EXIM= yes -# if WITH_KAS3 is defined, exim will be built with the Kaspersky -# Antispam 3 local_scan function. KAS3 must be installed _before_ -# compiling exim. -# For details see http://www.kaspersky.com/products -#WITH_KAS3= yes - # Exim refuses to run local deliveries as root by default. You can # add other users to this colon-separated list that cannot be # overridden at runtime below, but are advised not to remove "root". @@ -624,14 +618,6 @@ } > ${WRKSRC}/Local/sa-exim.h @${REINPLACE_CMD} -e 's,/usr/bin/spamc,${LOCALBASE}/bin/spamc,' \ ${WRKDIR}/sa-exim-${SA_EXIM_VERSION}/sa-exim.conf -.endif -.if defined(WITH_KAS3) - @${REINPLACE_CMD} -E -e 's/^(LOCAL_SCAN_SOURCE=).*/\1Local\/kas_exim.c/' ${WRKSRC}/Local/Makefile - @${ECHO_CMD} 'CFLAGS=-I/usr/local/ap-mailfilter3/include' >> ${WRKSRC}/Local/Makefile - @${ECHO_CMD} "EXTRALIBS_EXIM=-L/usr/local/ap-mailfilter3/lib -lspamtest" >> ${WRKSRC}/Local/Makefile - @${ECHO_CMD} "LOCAL_SCAN_SOURCE=Local/kas_exim.c" >> ${WRKSRC}/Local/Makefile - @${ECHO_CMD} "LOCAL_SCAN_HAS_OPTIONS=yes" >> ${WRKSRC}/Local/Makefile - @${CP} /usr/local/ap-mailfilter3/src/kas_exim.c ${WRKSRC}/Local .endif @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} configure) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603101353.k2ADrcgp052189>