Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2002 21:48:21 +0100 (CET)
From:      Oliver Breuninger <ob@breuninger.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34461: Port for H+B EDV avmailgate
Message-ID:  <200201302048.g0UKmL211394@www.partner.de>

next in thread | raw e-mail | index | archive | help

>Number:         34461
>Category:       ports
>Synopsis:       Port for H+B EDV avmailgate
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 30 12:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Breuninger
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
>Environment:
>Description:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	avmailgate
#	avmailgate/files
#	avmailgate/files/diff.rc
#	avmailgate/files/patch-aa
#	avmailgate/files/avmailgate.sh
#	avmailgate/Makefile
#	avmailgate/distinfo
#	avmailgate/pkg-comment
#	avmailgate/pkg-descr
#	avmailgate/pkg-plist
#
echo c - avmailgate
mkdir -p avmailgate > /dev/null 2>&1
echo c - avmailgate/files
mkdir -p avmailgate/files > /dev/null 2>&1
echo x - avmailgate/files/diff.rc
sed 's/^X//' >avmailgate/files/diff.rc << 'END-of-avmailgate/files/diff.rc'
X#! /bin/csh
X#
X
Xcd ../work/avmailgate-6.12.0.0-FreeBSD
X
Xdiff --unified=2 avmailgate/etc/avmailgate.conf.orig	avmailgate/etc/avmailgate.conf	> ../../patch-aa
X
END-of-avmailgate/files/diff.rc
echo x - avmailgate/files/patch-aa
sed 's/^X//' >avmailgate/files/patch-aa << 'END-of-avmailgate/files/patch-aa'
X--- avmailgate/etc/avmailgate.conf.orig	Mon Jan 28 10:38:57 2002
X+++ avmailgate/etc/avmailgate.conf	Wed Jan 30 00:00:22 2002
X@@ -22,4 +22,6 @@
X # User                            uucp 
X # Group                           uucp
X+User                              daemon
X+Group                             daemon
X 
X # ------------------------------------------------------------------------
X@@ -47,4 +49,5 @@
X 
X # AntiVirDir                      /usr/lib/AntiVir
X+AntiVirDir                        /usr/local/etc/antivir
X 
X # ------------------------------------------------------------------------
X@@ -207,4 +210,5 @@
X 
X # ForwardTo /usr/lib/sendmail -oem -oi
X+ForwardTo /usr/sbin/sendmail -oem -oi
X 
X # Or if you want the mail to be sent by SMTP:
END-of-avmailgate/files/patch-aa
echo x - avmailgate/files/avmailgate.sh
sed 's/^X//' >avmailgate/files/avmailgate.sh << 'END-of-avmailgate/files/avmailgate.sh'
X#! /bin/sh
X
Xcase "$1" in
X	start)
X		echo "Initializing SMTP port. (avmailgate)"
X		/usr/local/sbin/avgated   -A /usr/local/etc/antivir/avmailgate.acl -C /usr/local/etc/antivir/avmailgate.conf &
X		/usr/local/sbin/avgatefwd -C /usr/local/etc/antivir/avmailgate.conf &
X		;;
X	stop)
X		echo -n "Shutting down SMTP port:"
X		echo
X		kill `cat /var/run/avmailgate_d.pid`
X		kill `cat /var/run/avmailgate_fwd.pid`
X		;;
X	restart)
X		"$0" stop
X		"$0" start
X		;;
X	*)
X		echo "Usage: $0 {start|stop|restart}"
X		exit 1
X		;;
Xesac
X
Xexit 0
X
END-of-avmailgate/files/avmailgate.sh
echo x - avmailgate/Makefile
sed 's/^X//' >avmailgate/Makefile << 'END-of-avmailgate/Makefile'
X# New ports collection makefile for:	avmailgate
X# Version required:	6.12
X# Date created:		January 29, 2002
X# Whom:			Oliver Breuninger <ob@breuninger.org>
X#
X# $Id: $
X
X#
X# http://www.antivir.de/dateien/antivir/fuse6/fuse6.zip
X#
X
XPORTNAME=	avmailgate
XPORTVERSION=	6.12
XDISTFILES=	avmailgate-6.12.0.0-freebsd.tgz
XCATEGORIES=	security
XMASTER_SITES=	ftp://ftp.antivir.de/freebsd/distfiles/
XMAINTAINER=	ob@breuninger.org
X
XWRKSRC=		${WRKDIR}/avmailgate-6.12.0.0-FreeBSD
X
XNO_BUILD=	yes
X
Xdo-install:
X	@${MKDIR} ${LOCALBASE}/etc/antivir
X	@${MKDIR} /var/spool/avmailgate
X	@${MKDIR} /var/spool/avmailgate/incoming
X	@${MKDIR} /var/spool/avmailgate/outgoing
X	@${MKDIR} /var/spool/avmailgate/rejected
X	@${CHOWN} -R daemon.daemon /var/spool/avmailgate
X	@${CHMOD} 0700 /var/spool/avmailgate
X	@${CHMOD} 0700 /var/spool/avmailgate/incoming
X	@${CHMOD} 0700 /var/spool/avmailgate/rejected
X	@${CHMOD} 0700 /var/spool/avmailgate/outgoing
X	@${LN} -fs ${LOCALBASE}/etc/antivir			/usr/lib/AntiVir
X	@${LN} -fs ${LOCALBASE}/etc/antivir/avmailgate.acl	/etc/avmailgate.acl
X	@${LN} -fs ${LOCALBASE}/etc/antivir/avmailgate.conf	/etc/avmailgate.conf
X	@${CP} -p ${FILESDIR}/avmailgate.sh			${LOCALBASE}/etc/rc.d
X	@${CP} -p ${WRKSRC}/antivir.vdf				${LOCALBASE}/etc/antivir
X	@${CP} -p ${WRKSRC}/avmailgate/avgated			${LOCALBASE}/sbin
X	@${CP} -p ${WRKSRC}/avmailgate/script/avq		${LOCALBASE}/sbin
X	@${CP} -p ${WRKSRC}/avmailgate/avgatefwd		${LOCALBASE}/sbin
X	@${CP} -p ${WRKSRC}/avmailgate/etc/avmailgate.*		${LOCALBASE}/etc/antivir
X	@${CP} -p ${WRKSRC}/avmailgate/man/*.5			${LOCALBASE}/man/man5
X	@${CP} -p ${WRKSRC}/avmailgate/man/*.8			${LOCALBASE}/man/man8
X
Xpost-install:
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "******************************************************************"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "For full functionality of AntiVir MailGate you need an license key"
X	@${ECHO_MSG} "from H+BEDV Datentechnik GmbH."
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "Put the file avmgate.key into the directory /usr/local/etc/antivir"
X	@${ECHO_MSG} ""	
X	@${ECHO_MSG} "For more information on AntiVir please visit our web site"
X	@${ECHO_MSG} "http://www.antivir.de or http://www.hbedv.com."
X	@${ECHO_MSG} "mailto: support@antivir.de"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "AntiVir is a registered trademark of H+BEDV Datentechnik GmbH"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "******************************************************************"
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
X
END-of-avmailgate/Makefile
echo x - avmailgate/distinfo
sed 's/^X//' >avmailgate/distinfo << 'END-of-avmailgate/distinfo'
XMD5 (avmailgate-6.12.0.0-freebsd.tgz) = 0673cc1ef6ef1b4119a491b1b460dccc
END-of-avmailgate/distinfo
echo x - avmailgate/pkg-comment
sed 's/^X//' >avmailgate/pkg-comment << 'END-of-avmailgate/pkg-comment'
XAntiVir MailGate from H+BEDV Datentechnik (http://www.hbedv.com)
END-of-avmailgate/pkg-comment
echo x - avmailgate/pkg-descr
sed 's/^X//' >avmailgate/pkg-descr << 'END-of-avmailgate/pkg-descr'
XAntiVir MailGate for  FreeBSD protects your  electronic post office 
Xagainst viruses.
XIt is  working  with  numerous common  Mail Transport Agents (MTA), 
Xlike  sendmail,  postfix,  qmail and exim.  Operates at high speed,
Xis easy to configure and  checks both incoming and outgoing emails.
X
XAntiVir  MailGate  is  a  store-and-forward  agent,  in  which  the 
Xworkload is shared by the two programs avgated and avgatefwd.
X
XAvgated  receives  the  emails  and  stores  them  in  a  specified 
Xdirectory. This program can be  run as an independent server  which 
Xoccupies port 25 (SMTP) or is  started by the  internet superdaemon
Xinetd.
X
XAvgatefwd reads the temporarily  stored emails, decodes the attach-
Xments and initiates the virus scan.  If no viruses are found in the 
Xemails, they are forwarded immediately.
X
XIf an email is found to be infected,  it will not be forwarded.  In 
Xthis case, the postmaster receives an e-mail with a detailed report, 
Xand the sender and recipient are also notified of the infection.
X
X*********************************************************************
X     For more information on AntiVir please visit our web site
X                      http://www.antivir.de/
X                                or
X                       http://www.hbedv.com/
X
X               AntiVir is a registered trademark of
X                    H+BEDV Datentechnik GmbH
X*********************************************************************
X
END-of-avmailgate/pkg-descr
echo x - avmailgate/pkg-plist
sed 's/^X//' >avmailgate/pkg-plist << 'END-of-avmailgate/pkg-plist'
Xetc/antivir/antivir.vdf
Xetc/antivir/avmailgate.conf
Xetc/antivir/avmailgate.conf.orig
Xetc/antivir/avmailgate.acl
Xetc/rc.d/avmailgate.sh
Xsbin/avgated
Xsbin/avgatefwd
Xsbin/avq
Xman/man8/avmailgate.8
Xman/man5/avmailgate.conf.5
X@unexec rm -r /usr/local/etc/antivir
X@unexec rmdir /var/spool/avmailgate/incoming
X@unexec rmdir /var/spool/avmailgate/outgoing
X@unexec rmdir /var/spool/avmailgate/rejected
X@unexec rmdir /var/spool/avmailgate
END-of-avmailgate/pkg-plist
exit

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201302048.g0UKmL211394>