ports/94310: Please add support for KAS 3.0 to /usr/ports/mail/exim

Maxim Maxim.Lougovsky at kaspersky.com
Sat Mar 11 02:15:13 UTC 2006

>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
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 11 02:10:44 GMT 2006
>Originator:     Maxim
>Release:        5.4-RELEASE
Kaspersky Lab
FreeBSD vmware-freebsd54.avp.ru 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
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.

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,' \
-.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
        @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} 
${MAKEFILE} ${MAKE_ARGS} configure)

More information about the freebsd-ports-bugs mailing list