Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2006 12:20:23 GMT
From:      "Michael Scheidell" <scheidell@secnap.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/99688: Patch to update amavisd-new to 2.4.2
Message-ID:  <200607021220.k62CKN9F079191@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/99688; it has been noted by GNATS.

From: "Michael Scheidell" <scheidell@secnap.net>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/99688: Patch to update amavisd-new to 2.4.2
Date: Sun, 2 Jul 2006 08:19:00 -0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0002_01C69DB0.2C39D3B0
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 If you are working on rc script maybe think about adding this for =
 fbsd5+?
 
 looks for amavisd_ram variable defined in rs scripts, attempts to assign =
 and mount $AMAVISDTMP as ram disk.
 (of course, only on systems with lots of ram)
 
 there has been some debate that modern filesystems (like ufs2 with =
 softupdates) doesn't really gain anything from this and I really don't =
 have any conclusive evidence that it does. (nut using memory disk for =
 amavistemp is one of the speed up enhancements documented for =
 amavisd-new)
 
 
 start_precmd()
 {
 rm -rf /var/amavis/tmp/* /var/amavis/tmp/.* 2>/dev/null || true
 if [ ${amavisd_ram} ];then
   df /var/amavis/tmp |  grep '^/dev/md' > /dev/null
   if [ $? -eq 1 ];then
    mdmfs -M -s ${amavisd_ram} md1 /var/amavis/tmp || true
    chown vscan:vscan /var/amavis/tmp || true
   fi
 fi
 }
 
 
 ------=_NextPart_000_0002_01C69DB0.2C39D3B0
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>If you are working on rc script maybe =
 think about=20
 adding this for fbsd5+?</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>looks for amavisd_ram variable defined =
 in rs=20
 scripts, attempts to assign and mount $AMAVISDTMP as ram =
 disk.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>(of course, only on systems with lots =
 of=20
 ram)</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>there has been some debate that modern =
 filesystems=20
 (like ufs2 with softupdates) doesn't really gain anything from this and =
 I really=20
 don't have any conclusive evidence that it does. (nut using memory disk =
 for=20
 amavistemp is one of the speed up enhancements documented for=20
 amavisd-new)</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>start_precmd()<BR>{<BR>rm -rf =
 /var/amavis/tmp/*=20
 /var/amavis/tmp/.* 2&gt;/dev/null || true<BR>if [ ${amavisd_ram}=20
 ];then<BR>&nbsp; df /var/amavis/tmp |&nbsp; grep '^/dev/md' &gt;=20
 /dev/null<BR>&nbsp; if [ $? -eq 1 ];then<BR>&nbsp;&nbsp; mdmfs -M -s=20
 ${amavisd_ram} md1 /var/amavis/tmp || true<BR>&nbsp;&nbsp; chown =
 vscan:vscan=20
 /var/amavis/tmp || true<BR>&nbsp; fi<BR>fi<BR>}<BR></FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT></BODY></HTML>
 
 ------=_NextPart_000_0002_01C69DB0.2C39D3B0--
 



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