From andrey@ns1.mgul.ac.ru  Thu Oct 17 15:48:47 2002
Return-Path: <andrey@ns1.mgul.ac.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A20D937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Oct 2002 15:48:47 -0700 (PDT)
Received: from ns1.mgul.ac.ru (ns1.mgul.ac.ru [193.233.63.19])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C73FE43E6E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Oct 2002 15:48:46 -0700 (PDT)
	(envelope-from andrey@ns1.mgul.ac.ru)
Received: from ns1.mgul.ac.ru (localhost [IPv6:::1])
	by ns1.mgul.ac.ru (8.12.6/8.12.6) with ESMTP id g9HMmiOd025663
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 18 Oct 2002 02:48:44 +0400 (MSD)
Received: (from andrey@localhost)
	by ns1.mgul.ac.ru (8.12.6/8.12.6/Submit) id g9HMmi0l025662;
	Fri, 18 Oct 2002 02:48:44 +0400 (MSD)
Message-Id: <200210172248.g9HMmi0l025662@ns1.mgul.ac.ru>
Date: Fri, 18 Oct 2002 02:48:44 +0400 (MSD)
From: "Andrey V. Pevnev" <andrey@mgul.ac.ru>
Reply-To: "Andrey V. Pevnev" <andrey@mgul.ac.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update port: mail/mimedefang from 2.21 to 2.22
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         44183
>Category:       ports
>Synopsis:       Update port: mail/mimedefang from 2.21 to 2.22
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 17 15:50:04 PDT 2002
>Closed-Date:    Fri Oct 25 15:07:54 PDT 2002
>Last-Modified:  Fri Oct 25 15:10:01 PDT 2002
>Originator:     Andrey V. Pevnev
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Moscow State Forestry University
>Environment:
System: FreeBSD ns1.mgul.ac.ru 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Fri Oct 11 19:04:23 MSD 2002 andrey@ns1.mgul.ac.ru:/usr/obj/.amd_mnt/ns/host/usr/src/sys/NS1 i386
>Description:
Update from version 2.21 to 2.22, added a note about anti-virus software and now we are editing
init-script instead of patching it.

Removed files:	files/patch-init-script.in

>How-To-Repeat:
>Fix:
--- mimedefang.diff begins here ---
diff -ruN mimedefang.bak/Makefile mimedefang/Makefile
--- mimedefang.bak/Makefile	Fri Oct 18 02:08:38 2002
+++ mimedefang/Makefile	Fri Oct 18 02:09:17 2002
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	mimedefang
-PORTVERSION=	2.21
+PORTVERSION=	2.22
 CATEGORIES=	mail
 MASTER_SITES=	http://www.roaringpenguin.com/mimedefang/
 
@@ -21,6 +21,7 @@
 	${PERL_SITELIBDIR}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin
 
 USE_PERL5=	yes
+USE_REINPLACE=	yes
 PERL_SITELIBDIR=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc/mimedefang \
@@ -36,6 +37,9 @@
 .endif
 
 post-install:
+	@${REINPLACE_CMD} -e 's,# MX_USER=,MX_USER=,g ; \
+			s,# MX_MAX_RSS=,MX_MAX_RSS=,g ; \
+			s,# MX_MAX_AS=,MX_MAX_AS=,g' ${WRKSRC}/examples/init-script
 	@${INSTALL_SCRIPT} ${WRKSRC}/examples/init-script ${PREFIX}/etc/rc.d/mimedefang.sh-dist
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${EXAMPLESDIR}
diff -ruN mimedefang.bak/distinfo mimedefang/distinfo
--- mimedefang.bak/distinfo	Fri Oct 18 02:08:38 2002
+++ mimedefang/distinfo	Fri Oct 18 01:49:49 2002
@@ -1 +1 @@
-MD5 (mimedefang-2.21.tar.gz) = 9feefde1796b1f05798d38ded011a560
+MD5 (mimedefang-2.22.tar.gz) = 3e5f40f1fd6631f5d532a567ccd85fef
diff -ruN mimedefang.bak/files/patch-init-script.in mimedefang/files/patch-init-script.in
--- mimedefang.bak/files/patch-init-script.in	Fri Oct 18 02:08:38 2002
+++ mimedefang/files/patch-init-script.in	Thu Jan  1 03:00:00 1970
@@ -1,25 +0,0 @@
---- examples/init-script.in.orig	Sat Sep  7 02:04:17 2002
-+++ examples/init-script.in	Sat Sep  7 02:05:03 2002
-@@ -37,7 +37,7 @@
- MULTIPLEXOR=yes
- 
- # Run the multiplexor and filters as this user, not root.  RECOMMENDED
--# MX_USER=@DEFANGUSER_DEFAULT@
-+MX_USER=@DEFANGUSER_DEFAULT@
- 
- # If you want to keep spool directories around if the filter fails,
- # set the next one to yes
-@@ -99,11 +99,11 @@
- 
- # Limit slave processes' resident-set size to this many kilobytes.  Default
- # is unlimited.
--# MX_MAX_RSS=10000
-+MX_MAX_RSS=10000
- 
- # Limit total size of slave processes' memory space to this many kilobytes.
- # Default is unlimited.
--# MX_MAX_AS=30000
-+MX_MAX_AS=30000
- 
- # Number of seconds a process should be idle before checking for
- # minimum number and killed
diff -ruN mimedefang.bak/pkg-message mimedefang/pkg-message
--- mimedefang.bak/pkg-message	Fri Oct 18 02:08:38 2002
+++ mimedefang/pkg-message	Fri Oct 18 02:25:30 2002
@@ -9,3 +9,8 @@
    define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl
 
    rebuild sendmail.cf and install it.
+
+Also, you can install some anti-virus software to check your mail, for example:
+
+	security/p5-File-Scan (Perl5 anti-virus file scanning package)
+	security/vscan (Evaluation version of a DOS/Windows/Linux file virus scanner)
diff -ruN mimedefang.bak/pkg-plist mimedefang/pkg-plist
--- mimedefang.bak/pkg-plist	Fri Oct 18 02:08:38 2002
+++ mimedefang/pkg-plist	Fri Oct 18 01:54:20 2002
@@ -12,6 +12,7 @@
 %%PORTDOCS%%share/doc/mimedefang/README.SPAMASSASSIN
 %%PORTDOCS%%share/doc/mimedefang/README.NONROOT
 %%PORTDOCS%%share/doc/mimedefang/README.SECURITY
+%%PORTDOCS%%share/doc/mimedefang/README.IRIX
 %%PORTDOCS%%share/examples/mimedefang/suggested-minimum-filter-for-windows-clients
 %%PORTDOCS%%share/examples/mimedefang/stream-by-domain-filter
 %%PORTDOCS%%share/examples/mimedefang/README
--- mimedefang.diff ends here ---


>Release-Note:
>Audit-Trail:

From: "Andrey V. Pevnev" <andrey@mgul.ac.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/44183: Update port: mail/mimedefang from 2.21 to 2.22
Date: Fri, 18 Oct 2002 18:52:03 +0400

 Oops, MIMEDefang 2.23 just released, it's a SECURITY RELEASE
  
  * SECURITY UPDATE: An attacker with sufficient bandwidth may be
         able to crash mimedefang-multiplexor for versions up to 2.22.
         This attack cannot be used to execute attacker's code; it's only a
         denial-of-service attack.  See next changelog entry for details:
 
  so, please, commit this patch instead (the difference only in
  PORTVERSION and distfile, also available at
  http://www.mgul.ac.ru/~andrey/mimedefang.diff)
 
 diff -ruN mimedefang.bak/Makefile mimedefang/Makefile
 --- mimedefang.bak/MakefileFri Oct 18 18:41:39 2002
 +++ mimedefang/MakefileFri Oct 18 18:43:23 2002
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME=mimedefang
 -PORTVERSION=2.21
 +PORTVERSION=2.23
  CATEGORIES=mail
  MASTER_SITES=http://www.roaringpenguin.com/mimedefang/
 
 @@ -21,6 +21,7 @@
  ${PERL_SITELIBDIR}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin
 
  USE_PERL5=yes
 +USE_REINPLACE=yes
  PERL_SITELIBDIR=${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
  GNU_CONFIGURE=yes
  CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/mimedefang \
 @@ -36,6 +37,9 @@
  .endif
 
  post-install:
 +@${REINPLACE_CMD} -e 's,# MX_USER=,MX_USER=,g ; \
 +s,# MX_MAX_RSS=,MX_MAX_RSS=,g ; \
 +s,# MX_MAX_AS=,MX_MAX_AS=,g' ${WRKSRC}/examples/init-script
  @${INSTALL_SCRIPT} ${WRKSRC}/examples/init-script ${PREFIX}/etc/rc.d/mimedefang.sh-dist
  .if !defined(NOPORTDOCS)
  @${MKDIR} ${EXAMPLESDIR}
 diff -ruN mimedefang.bak/distinfo mimedefang/distinfo
 --- mimedefang.bak/distinfoFri Oct 18 18:41:39 2002
 +++ mimedefang/distinfoFri Oct 18 18:43:46 2002
 @@ -1 +1 @@
 -MD5 (mimedefang-2.21.tar.gz) = 9feefde1796b1f05798d38ded011a560
 +MD5 (mimedefang-2.23.tar.gz) = 9604af1103a59f43099c9ff9fcbcc4e1
 diff -ruN mimedefang.bak/files/patch-init-script.in mimedefang/files/patch-init-script.in
 --- mimedefang.bak/files/patch-init-script.inFri Oct 18 18:41:39 2002
 +++ mimedefang/files/patch-init-script.inThu Jan  1 03:00:00 1970
 @@ -1,25 +0,0 @@
 ---- examples/init-script.in.origSat Sep  7 02:04:17 2002
 -+++ examples/init-script.inSat Sep  7 02:05:03 2002
 -@@ -37,7 +37,7 @@
 - MULTIPLEXOR=yes
 -
 - # Run the multiplexor and filters as this user, not root.  RECOMMENDED
 --# MX_USER=@DEFANGUSER_DEFAULT@
 -+MX_USER=@DEFANGUSER_DEFAULT@
 -
 - # If you want to keep spool directories around if the filter fails,
 - # set the next one to yes
 -@@ -99,11 +99,11 @@
 -
 - # Limit slave processes' resident-set size to this many kilobytes.  Default
 - # is unlimited.
 --# MX_MAX_RSS=10000
 -+MX_MAX_RSS=10000
 -
 - # Limit total size of slave processes' memory space to this many kilobytes.
 - # Default is unlimited.
 --# MX_MAX_AS=30000
 -+MX_MAX_AS=30000
 -
 - # Number of seconds a process should be idle before checking for
 - # minimum number and killed
 diff -ruN mimedefang.bak/pkg-message mimedefang/pkg-message
 --- mimedefang.bak/pkg-messageFri Oct 18 18:41:39 2002
 +++ mimedefang/pkg-messageFri Oct 18 18:42:51 2002
 @@ -9,3 +9,8 @@
     define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl
 
     rebuild sendmail.cf and install it.
 +
 +Also, you can install some anti-virus software to check your mail, for example:
 +
 +security/p5-File-Scan (Perl5 anti-virus file scanning package)
 +security/vscan (Evaluation version of a DOS/Windows/Linux file virus scanner)
 diff -ruN mimedefang.bak/pkg-plist mimedefang/pkg-plist
 --- mimedefang.bak/pkg-plistFri Oct 18 18:41:39 2002
 +++ mimedefang/pkg-plistFri Oct 18 18:42:51 2002
 @@ -12,6 +12,7 @@
  %%PORTDOCS%%share/doc/mimedefang/README.SPAMASSASSIN
  %%PORTDOCS%%share/doc/mimedefang/README.NONROOT
  %%PORTDOCS%%share/doc/mimedefang/README.SECURITY
 +%%PORTDOCS%%share/doc/mimedefang/README.IRIX
  %%PORTDOCS%%share/examples/mimedefang/suggested-minimum-filter-for-windows-clients
  %%PORTDOCS%%share/examples/mimedefang/stream-by-domain-filter
  %%PORTDOCS%%share/examples/mimedefang/README 
 
 -- 
 Best regards,
 MSFU LAN Admin
  Andrey                          mailto:andrey@mgul.ac.ru
  http://www.mgul.ac.ru/~andrey
 
State-Changed-From-To: open->closed 
State-Changed-By: obraun 
State-Changed-When: Fri Oct 25 15:06:59 PDT 2002 
State-Changed-Why:  
Superseded by ports/44472. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44183 

From: "Andrey V. Pevnev" <andrey@mgul.ac.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/44183: Update port: mail/mimedefang from 2.21 to 2.22
Date: Sat, 26 Oct 2002 02:03:51 +0400

 please, close this.
 commit ports/44472 instead
 
 -- 
 Best regards,
 MSFU LAN Admin
  Andrey                          mailto:andrey@mgul.ac.ru
  http://www.mgul.ac.ru/~andrey
 
>Unformatted:
