From 7fb43943bbb98a9dcb719844b1d32e4dc01760de Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 24 Aug 2001 15:57:23 +0000 Subject: DrWeb antivirus sendmail integration --- security/drweb-sendmail/files/Makefile | 20 ++++++++++++++++++++ security/drweb-sendmail/files/drweb-smf.sh | 25 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 security/drweb-sendmail/files/Makefile create mode 100644 security/drweb-sendmail/files/drweb-smf.sh (limited to 'security/drweb-sendmail/files') diff --git a/security/drweb-sendmail/files/Makefile b/security/drweb-sendmail/files/Makefile new file mode 100644 index 000000000000..7a596c37c349 --- /dev/null +++ b/security/drweb-sendmail/files/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ +# +SENDMAIL_DIR=/usr/src/contrib/sendmail +.PATH: ${SENDMAIL_DIR}/libmilter + +CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include +CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL + +# User customizations to the sendmail build environment +CFLAGS+=${SENDMAIL_CFLAGS} + +LIB= milter + +SRCS+= comm.c engine.c handler.c listener.c main.c signal.c sm_gethost.c smfi.c + +INTERNALLIB= true +NOPIC= true +INTERNALSTATICLIB= true + +.include diff --git a/security/drweb-sendmail/files/drweb-smf.sh b/security/drweb-sendmail/files/drweb-smf.sh new file mode 100644 index 000000000000..2014feaf3c60 --- /dev/null +++ b/security/drweb-sendmail/files/drweb-smf.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $FreeBSD$ + +drwebfilter='!!PREFIX!!/sbin/drweb-smf' + +case "$1" in +start) + if [ -x $drwebd ]; then + echo -n ' drweb-smf' + $drwebfilter -u/var/run/drwebd -m/var/run/drweb-smf.sock -a/var/spool/drweb_infected -f/var/spool/drweb-smf -r -x -h -l -ba -gpostmaster -epostmaster + fi + ;; +stop) + /usr/bin/killall drweb-smf + /bin/rm -f /var/run/drweb-smf.sock + echo -n ' drweb-smf' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 -- cgit v1.2.3