Subject: Re: It takes very long time to start clamd
To: None <mark@mcs.vuw.ac.nz, grant@NetBSD.org>
From: Geert Hendrickx <ghen@telenet.be>
List: pkgsrc-users
Date: 07/03/2007 00:49:07
--0eh6TmSyL6TZE2Uz
Content-Type: multipart/mixed; boundary="fdj2RfSjLxBAspz7"
Content-Disposition: inline


--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 03, 2007 at 10:06:48AM +1200, mark@mcs.vuw.ac.nz wrote:
> > On Fri, Jun 29, 2007 at 09:34:29AM +0300, Martti Kuparinen wrote:
> >> This is so slooooow, I hope the clamd guys will release 0.91.x soon.
> >> Please
> >> note the start times after reboot...
> >
> > I'm seeing the same on a P4 NetBSD 3.0.3 server, clamd 0.90.3nb2,
> > --enable-experimental disabled.
> >
> > "clamscan" (without d) is just as slow.
>=20
> Yes, its a known bug in 0.90.  0.91rc1 goes back to being a reasonable sp=
eed.

Yep, apparantly.

Any objections if I upgrade mail/clamav to 0.91rc1? (see diff in attach)

	Geert

--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="clamav.diff"
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mail/clamav/Makefile,v
retrieving revision 1.75
diff -u -r1.75 Makefile
--- Makefile	17 Jun 2007 22:06:33 -0000	1.75
+++ Makefile	2 Jul 2007 22:48:07 -0000
@@ -2,7 +2,6 @@
=20
 DISTNAME=3D	clamav-${CLAMAV_VERSION}
 PKGNAME=3D	clamav-${CLAMAV_VERSION:S/-/./}
-PKGREVISION=3D	2
 CATEGORIES=3D	mail
 MASTER_SITES=3D	${MASTER_SITE_SOURCEFORGE:=3Dclamav/}
=20
@@ -12,7 +11,7 @@
=20
 PKG_INSTALLATION_TYPES=3D	overwrite pkgviews
=20
-CLAMAV_VERSION=3D		0.90.3
+CLAMAV_VERSION=3D		0.91rc1
=20
 USE_LIBTOOL=3D		yes
=20
Index: PLIST
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mail/clamav/PLIST,v
retrieving revision 1.18
diff -u -r1.18 PLIST
--- PLIST	16 Feb 2007 14:40:41 -0000	1.18
+++ PLIST	2 Jul 2007 22:48:07 -0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.18 2007/02/16 14:40:41 xtraeme Exp $
+@comment $NetBSD$
 bin/clamav-config
 bin/clamconf
 bin/clamdscan
@@ -20,9 +20,7 @@
 ${MILTER}sbin/clamav-milter
 sbin/clamd
 share/examples/clamav/clamd.conf
-share/examples/clamav/daily.cvd
 share/examples/clamav/freshclam.conf
-share/examples/clamav/main.cvd
 share/examples/rc.d/clamd
 share/examples/rc.d/freshclamd
 @dirrm share/examples/clamav
Index: distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mail/clamav/distinfo,v
retrieving revision 1.44
diff -u -r1.44 distinfo
--- distinfo	31 May 2007 05:26:46 -0000	1.44
+++ distinfo	2 Jul 2007 22:48:07 -0000
@@ -1,8 +1,8 @@
 $NetBSD: distinfo,v 1.44 2007/05/31 05:26:46 martti Exp $
=20
-SHA1 (clamav-0.90.3.tar.gz) =3D ec322b5ada9cf5b6faebd2d800985545ee2d28fa
-RMD160 (clamav-0.90.3.tar.gz) =3D 7dda3541afee8403c7fb98aa827f14b5a7a1d6ce
-Size (clamav-0.90.3.tar.gz) =3D 12496857 bytes
+SHA1 (clamav-0.91rc1.tar.gz) =3D 6571276bfdd0dcb008a9de88ed25aa50d75543dd
+RMD160 (clamav-0.91rc1.tar.gz) =3D 28b3277987b302d7e6650534e8f8ac314d8d274f
+Size (clamav-0.91rc1.tar.gz) =3D 12605186 bytes
 SHA1 (patch-ad) =3D 554c183224c04357609111c90d0145c08e13c1d0
-SHA1 (patch-af) =3D fe93995448f968c479ff91d52c1fa2a1e67ef137
+SHA1 (patch-af) =3D 681bd3596b9a0abc40b709db46ba1b7a2d12da36
 SHA1 (patch-ah) =3D 0b0865cca6bb8534740b510b7052dbe3390b996c
Index: patches/patch-af
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mail/clamav/patches/patch-af,v
retrieving revision 1.3
diff -u -r1.3 patch-af
--- patches/patch-af	16 Feb 2007 14:40:41 -0000	1.3
+++ patches/patch-af	2 Jul 2007 22:48:07 -0000
@@ -1,22 +1,16 @@
-$NetBSD: patch-af,v 1.3 2007/02/16 14:40:41 xtraeme Exp $
+$NetBSD$
=20
---- database/Makefile.in.orig	2007-02-16 15:27:18.000000000 +0100
-+++ database/Makefile.in	2007-02-16 15:28:06.000000000 +0100
-@@ -359,17 +359,6 @@
+--- database/Makefile.in.orig	2007-05-31 01:30:39.000000000 +0200
++++ database/Makefile.in
+@@ -360,11 +360,6 @@ install:
  	$(mkinstalldirs) $(DESTDIR)$(DBINST)
- 	@test -f $(DESTDIR)$(DBINST)/main.cvd || test -d $(DESTDIR)$(DBINST)/mai=
n.inc || $(INSTALL_DATA) $(srcdir)/main.cvd $(DESTDIR)$(DBINST)
- 	@test -f $(DESTDIR)$(DBINST)/daily.cvd || test -d $(DESTDIR)$(DBINST)/da=
ily.inc || $(INSTALL_DATA) $(srcdir)/daily.cvd $(DESTDIR)$(DBINST)
+ #	@test -f $(DESTDIR)$(DBINST)/main.cvd || $(INSTALL_DATA) $(srcdir)/main=
.cvd $(DESTDIR)$(DBINST)
+ #	@test -f $(DESTDIR)$(DBINST)/daily.cvd || $(INSTALL_DATA) $(srcdir)/dai=
ly.cvd $(DESTDIR)$(DBINST)
 -	@if test `id|sed -e 's/^.[^(]*(\([^)]*\)).*/\1/'` =3D "root" && test -n =
"${CLAMAVUSER}" && test -n "${CLAMAVGROUP}"; then \
 -	    chmod 775 $(DESTDIR)$(DBINST); \
 -	    chown ${CLAMAVUSER} $(DESTDIR)$(DBINST); \
 -	    chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST); \
--	    if test -f $(DESTDIR)$(DBINST)/main.cvd; then chmod 664 $(DESTDIR)$(=
DBINST)/main.cvd; fi;\
--	    if test -f $(DESTDIR)$(DBINST)/main.cvd; then chown ${CLAMAVUSER} $(=
DESTDIR)$(DBINST)/main.cvd; fi;\
--	    if test -f $(DESTDIR)$(DBINST)/main.cvd; then chgrp ${CLAMAVGROUP} $=
(DESTDIR)$(DBINST)/main.cvd; fi;\
--	    if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chmod 664 $(DESTDIR)$=
(DBINST)/daily.cvd; fi;\
--	    if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chown ${CLAMAVUSER} $=
(DESTDIR)$(DBINST)/daily.cvd; fi;\
--	    if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chgrp ${CLAMAVGROUP} =
$(DESTDIR)$(DBINST)/daily.cvd; fi;\
--	fi
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
+-fi
+ #	    chmod 664 $(DESTDIR)$(DBINST)/main.cvd; \
+ #	    chown ${CLAMAVUSER} $(DESTDIR)$(DBINST)/main.cvd; \
+ #	    chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST)/main.cvd; \

--fdj2RfSjLxBAspz7--

--0eh6TmSyL6TZE2Uz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iQEVAwUBRomA44LS9urEu56fAQopVgf/a0U0UJgJ2YZnhn1G2yAT2ZKJSImyg2TX
YI/l2/54ASrTEjnw2oGZCqDNElWM1Vgm67GW74QnrMZkv+muDOmFPFNN8oNOYCjW
nxQN2AzXZrOFXSRP+lvlhjufq1B6neOtqTDj9gGKEn6dFovl3aIwbSJ38vVkUF2d
1eIfzJcTDpq7+H8gR+oXMhQn3bETgtH5zGZjwp28emOX7IqJWpKPMhHvhMUlcPIs
wtIrCz7NCdGj7RB5aVV0TGaS8CqLx6lIKC7lCFBWMtNchCJxcXW/qyiVlT5kB/Ty
V0GVErb//6YSQKuniuel15Jce5R3KA7ymYl0+tNExxLeJVB+tU7pJw==
=QFDI
-----END PGP SIGNATURE-----

--0eh6TmSyL6TZE2Uz--