diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2003-06-16 21:15:42 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2003-06-16 21:15:42 +0000 |
commit | effcda40f4e516e13e64704f9875dc868c214ba3 (patch) | |
tree | 3e8dd365f540f9017f5690cdf8e31ec668ce42f9 /mail/kavmilter | |
parent | 3fcfb79518b7f2e5b3dbf9352df40326bf43f35e (diff) | |
download | ports-effcda40f4e516e13e64704f9875dc868c214ba3.tar.gz ports-effcda40f4e516e13e64704f9875dc868c214ba3.zip |
Notes
Diffstat (limited to 'mail/kavmilter')
-rw-r--r-- | mail/kavmilter/Makefile | 49 | ||||
-rw-r--r-- | mail/kavmilter/distinfo | 1 | ||||
-rw-r--r-- | mail/kavmilter/files/patch-Makefile | 14 | ||||
-rw-r--r-- | mail/kavmilter/pkg-descr | 16 | ||||
-rw-r--r-- | mail/kavmilter/pkg-message | 32 | ||||
-rw-r--r-- | mail/kavmilter/pkg-plist | 6 |
6 files changed, 118 insertions, 0 deletions
diff --git a/mail/kavmilter/Makefile b/mail/kavmilter/Makefile new file mode 100644 index 000000000000..bdcbadc946a3 --- /dev/null +++ b/mail/kavmilter/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: kavmilter +# Date created: 12 Jun 2003 +# Whom: Rashid N. Achilov <shelton@granch.ru> +# +# $FreeBSD$ +# + +PORTNAME= kavmilter +PORTVERSION= 0.91.3 +CATEGORIES= mail +MASTER_SITES= ftp://granch.ru/pub/kavmilter/ + +MAINTAINER= shelton@granch.ru +COMMENT= Sendmail antivirus filter, based on Kaspersky Antivirus and Milter API + +LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt + +.if !exists(/usr/lib/libmilter.a) +IGNORE= requires Sendmail 8.12; upgrade the base system +.endif + +USE_BZIP2= yes +USE_GETOPT_LONG=yes +USE_REINPLACE= yes + +MAN5= kavmilter.5 +MAN8= kavmilter.8 + +MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} + +post-patch: + @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${MAKEFILE} + +post-install: + ${STRIP_CMD} ${PREFIX}/libexec/kavmilter + + ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/kavmilter.sh.sample ${PREFIX}/etc/rc.d/kavmilter.sh.sample + ${INSTALL_SCRIPT} -m 644 ${WRKSRC}/kavmilter.conf ${PREFIX}/etc/kavmilter.conf.sample + +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in README CHANGES + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/mail/kavmilter/distinfo b/mail/kavmilter/distinfo new file mode 100644 index 000000000000..3be795a21136 --- /dev/null +++ b/mail/kavmilter/distinfo @@ -0,0 +1 @@ +MD5 (kavmilter-0.91.3.tar.bz2) = 1efcd76a25ded8857376ef31dd2b6a5a diff --git a/mail/kavmilter/files/patch-Makefile b/mail/kavmilter/files/patch-Makefile new file mode 100644 index 000000000000..c5b3d348277f --- /dev/null +++ b/mail/kavmilter/files/patch-Makefile @@ -0,0 +1,14 @@ +--- Makefile.orig Mon Jun 16 22:58:51 2003 ++++ Makefile Mon Jun 16 22:58:44 2003 +@@ -58,6 +58,11 @@ + $(OBJS): $(HEADERS) + + install: kavmilter stop ++ install -d -m 755 $(INSTDIR) ++ install -d -m 755 $(RCDDIR) ++ install -d -m 755 $(ETCDIR) ++ install -d -m 755 $(MANDIR)/man5 ++ install -d -m 755 $(MANDIR)/man8 + install -m 755 kavmilter $(INSTDIR)/kavmilter + install -m 755 kavmilter.sh.sample $(RCDDIR)/kavmilter.sh.sample + install -m 644 kavmilter.8 $(MANDIR)/man8/kavmilter.8 diff --git a/mail/kavmilter/pkg-descr b/mail/kavmilter/pkg-descr new file mode 100644 index 000000000000..06f194d25921 --- /dev/null +++ b/mail/kavmilter/pkg-descr @@ -0,0 +1,16 @@ +This is a sendmail filter, based on Milter API, intedned to do +antiviral check through Kaspersky Antivirus. It doesn't checks mail +itself, but passes it to preliminary setuped Kaspersky Antivirus +to check, reads result, and, depending it, discards/rejects or +passes mail. This check issued 'in-place' delivery processing, so, +nor extracting, nor extra reinjecting in/out mail queue doesn't +issued. But this program is NOT mail transfer agent and NOT +antivirus itself. At first glance it is a set of hooks, which +executed when sendmail takes some appropriate actions - connecting +remote server, receiving MAIL FROM or RCPT TO, +transferring header or body of message, etc. + +WWW: http://granch.ru/~shelton/ + +- Rashid N. Achilov +shelton@granch.ru diff --git a/mail/kavmilter/pkg-message b/mail/kavmilter/pkg-message new file mode 100644 index 000000000000..b64264c1ff05 --- /dev/null +++ b/mail/kavmilter/pkg-message @@ -0,0 +1,32 @@ +************************************************************************ + +1. In order to run this port, please add the following line to +/etc/mail/freebsd.mc: + +INPUT_MAIL_FILTER(`kavmilter',`S=unix:/var/run/kavmilter,F=T') + +and appropriate correct the line with confINPUT_MAIL_FILTERS, when exist. + +Don't forget remake sendmail configuration file after modifying freebsd.mc + +2. In order to run this port properly, you system have to already has +installed, configured and run Kaspersky Antiviral Daemon (KAV). It has +missed the ports, but you can download and install beta version from + +ftp://ftp.avp.ru/beta/KAVUnix/KAVFreeBSD/4X/kav-MailServerSuit-4.0.2.1-FreeBSD-4.x.tgz + +or + +ftp://ftp.avp.ru/patches/KAVUnix4.0.3.0_UrgentUpdate1/FreeBSD/4.x/kav-WorkStationSuit-4.0.3.1-FreeBSD-4.x.tgz + +BE AWARE! Kaspersky Lab has their own look on files and dirs hierarchy, +which doesn't correspond with hier(7) manual page. Probably you'll want +to manually move executable bunaries and configs as you need. Also you +have to keep in mind that downloadbale trial version of KAV Daemon has +some restrictions. + +3. When you encountered, that pointed up directory already does not exist, +visit a www.kaspersky.com site in order to resolve this problem. I am not +Kaspersky Antivirus distributor, and do not have permissions to distribute +their products. +************************************************************************ diff --git a/mail/kavmilter/pkg-plist b/mail/kavmilter/pkg-plist new file mode 100644 index 000000000000..b6466efe6805 --- /dev/null +++ b/mail/kavmilter/pkg-plist @@ -0,0 +1,6 @@ +libexec/kavmilter +etc/kavmilter.conf.sample +etc/rc.d/kavmilter.sh.sample +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%@dirrm %%DOCSDIR%% |