summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2008-09-04 06:44:06 +0000
committermartti <martti@pkgsrc.org>2008-09-04 06:44:06 +0000
commit997a0a0b67e0261b1bb30c07e8116e857a1e9579 (patch)
treedd19bcb4ab16f85975589dea449972fa771363b6 /mail
parent56b30cc489d02586e43bc73c342ad1ed0b9f47c2 (diff)
downloadpkgsrc-997a0a0b67e0261b1bb30c07e8116e857a1e9579.tar.gz
Updated mail/clamav to 0.94
* Lots of bug fixes I removed patch-ba and tested this on NetBSD/i386 3.1.1_PATCH and NetBSD/amd64 4.0_STABLE and everything seems to work...
Diffstat (limited to 'mail')
-rw-r--r--mail/clamav/Makefile4
-rw-r--r--mail/clamav/buildlink3.mk4
-rw-r--r--mail/clamav/distinfo15
-rw-r--r--mail/clamav/patches/patch-ad8
-rw-r--r--mail/clamav/patches/patch-af16
-rw-r--r--mail/clamav/patches/patch-ah12
-rw-r--r--mail/clamav/patches/patch-ba111
7 files changed, 29 insertions, 141 deletions
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile
index 2fbb4147c92..658c564b813 100644
--- a/mail/clamav/Makefile
+++ b/mail/clamav/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.86 2008/07/09 08:40:13 ghen Exp $
+# $NetBSD: Makefile,v 1.87 2008/09/04 06:44:06 martti Exp $
DISTNAME= clamav-${CLAMAV_VERSION}
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
@@ -13,7 +13,7 @@ COMMENT= Anti-virus toolkit
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
-CLAMAV_VERSION= 0.93.3
+CLAMAV_VERSION= 0.94
USE_LIBTOOL= yes
diff --git a/mail/clamav/buildlink3.mk b/mail/clamav/buildlink3.mk
index 86debdc40bc..15b87822706 100644
--- a/mail/clamav/buildlink3.mk
+++ b/mail/clamav/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.15 2008/02/12 14:17:16 martti Exp $
+# $NetBSD: buildlink3.mk,v 1.16 2008/09/04 06:44:07 martti Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
CLAMAV_BUILDLINK3_MK:= ${CLAMAV_BUILDLINK3_MK}+
@@ -12,7 +12,7 @@ BUILDLINK_PACKAGES+= clamav
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}clamav
.if ${CLAMAV_BUILDLINK3_MK} == "+"
-BUILDLINK_API_DEPENDS.clamav+= clamav>=0.92.1
+BUILDLINK_API_DEPENDS.clamav+= clamav>=0.94
BUILDLINK_PKGSRCDIR.clamav?= ../../mail/clamav
.endif # CLAMAV_BUILDLINK3_MK
diff --git a/mail/clamav/distinfo b/mail/clamav/distinfo
index dcd4f20d968..75cb6c90879 100644
--- a/mail/clamav/distinfo
+++ b/mail/clamav/distinfo
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.53 2008/07/09 08:40:13 ghen Exp $
+$NetBSD: distinfo,v 1.54 2008/09/04 06:44:07 martti Exp $
-SHA1 (clamav-0.93.3.tar.gz) = 01240613b639144fa8fa655825f6587e044a1c1c
-RMD160 (clamav-0.93.3.tar.gz) = 8379148790cc545c801709d46b7db87634f43f67
-Size (clamav-0.93.3.tar.gz) = 18242568 bytes
-SHA1 (patch-ad) = db632e0e44e5a6c42cbe30726aa492881b5a5384
-SHA1 (patch-af) = e8d3f68e8017c5a6e7377cb03fc978a6581b7d5e
-SHA1 (patch-ah) = b61efd44878e0b9a2bbc3c41e2e50d72b833fea3
-SHA1 (patch-ba) = 80208ac7e447776073a6e539f1deaa45d4195096
+SHA1 (clamav-0.94.tar.gz) = d69a0c462ac3ef55329384f8e136d9b7bc1b8ec5
+RMD160 (clamav-0.94.tar.gz) = 598561b76b1e4ee14120388ba1bbdcac5ac7bfe5
+Size (clamav-0.94.tar.gz) = 20509228 bytes
+SHA1 (patch-ad) = f13bc822a3f405861fb1c2a219d238efcaddf64a
+SHA1 (patch-af) = 87ae131299a99df40252590f4400234e3de7c2b3
+SHA1 (patch-ah) = 5c5d06d305c9bdeb6c794ccbb0be33f0088026d8
diff --git a/mail/clamav/patches/patch-ad b/mail/clamav/patches/patch-ad
index a5f100e3713..adffa9d3e4c 100644
--- a/mail/clamav/patches/patch-ad
+++ b/mail/clamav/patches/patch-ad
@@ -1,10 +1,10 @@
-$NetBSD: patch-ad,v 1.14 2008/04/15 07:56:06 martti Exp $
+$NetBSD: patch-ad,v 1.15 2008/09/04 06:44:07 martti Exp $
Optionally build clamav-milter.8
---- docs/Makefile.in.orig 2008-04-09 18:55:29.000000000 +0300
-+++ docs/Makefile.in 2008-04-15 10:31:39.000000000 +0300
-@@ -201,6 +201,8 @@
+--- docs/Makefile.in.orig 2008-09-01 21:49:47.000000000 +0300
++++ docs/Makefile.in 2008-09-04 08:26:43.000000000 +0300
+@@ -210,6 +210,8 @@
man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/freshclam.conf.5 man/clamconf.1
all: all-am
diff --git a/mail/clamav/patches/patch-af b/mail/clamav/patches/patch-af
index aca071f2eaf..1b69890860a 100644
--- a/mail/clamav/patches/patch-af
+++ b/mail/clamav/patches/patch-af
@@ -1,14 +1,14 @@
-$NetBSD: patch-af,v 1.5 2008/04/15 07:56:06 martti Exp $
+$NetBSD: patch-af,v 1.6 2008/09/04 06:44:07 martti Exp $
Installation fixes.
---- database/Makefile.in.orig 2008-04-09 18:55:29.000000000 +0300
-+++ database/Makefile.in 2008-04-15 10:31:57.000000000 +0300
-@@ -365,17 +365,6 @@
- $(mkinstalldirs) $(DESTDIR)$(DBINST)
- @test -f $(DESTDIR)$(DBINST)/main.cvd || test -d $(DESTDIR)$(DBINST)/main.inc || $(INSTALL_DATA) $(srcdir)/main.cvd $(DESTDIR)$(DBINST)
- @test -f $(DESTDIR)$(DBINST)/daily.cvd || test -d $(DESTDIR)$(DBINST)/daily.inc || $(INSTALL_DATA) $(srcdir)/daily.cvd $(DESTDIR)$(DBINST)
-- @if test `id|sed -e 's/^.[^(]*(\([^)]*\)).*/\1/'` = "root" && test -n "${CLAMAVUSER}" && test -n "${CLAMAVGROUP}"; then \
+--- database/Makefile.in.orig 2008-09-01 21:49:47.000000000 +0300
++++ database/Makefile.in 2008-09-04 08:28:24.000000000 +0300
+@@ -375,17 +375,6 @@
+ $(mkinstalldirs) $(DESTDIR)$(DBINST);\
+ test -f $(DESTDIR)$(DBINST)/main.cvd || test -f $(DESTDIR)$(DBINST)/main.cld || $(INSTALL_DATA) $(srcdir)/main.cvd $(DESTDIR)$(DBINST);\
+ test -f $(DESTDIR)$(DBINST)/daily.cvd || test -f $(DESTDIR)$(DBINST)/daily.cld || $(INSTALL_DATA) $(srcdir)/daily.cvd $(DESTDIR)$(DBINST);\
+- if test `id|sed -e 's/^.[^(]*(\([^)]*\)).*/\1/'` = "root" && test -n "${CLAMAVUSER}" && test -n "${CLAMAVGROUP}"; then \
- chmod 775 $(DESTDIR)$(DBINST); \
- chown ${CLAMAVUSER} $(DESTDIR)$(DBINST); \
- chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST); \
diff --git a/mail/clamav/patches/patch-ah b/mail/clamav/patches/patch-ah
index e4609f45a01..597c9c5bcd7 100644
--- a/mail/clamav/patches/patch-ah
+++ b/mail/clamav/patches/patch-ah
@@ -1,10 +1,10 @@
-$NetBSD: patch-ah,v 1.15 2008/06/10 08:23:54 martti Exp $
+$NetBSD: patch-ah,v 1.16 2008/09/04 06:44:07 martti Exp $
Build fixes.
---- clamav-milter/clamav-milter.c.orig 2008-05-27 13:40:29.000000000 +0300
-+++ clamav-milter/clamav-milter.c 2008-06-10 10:42:12.000000000 +0300
-@@ -3830,7 +3830,7 @@
+--- clamav-milter/clamav-milter.c.orig 2008-09-01 20:19:44.000000000 +0300
++++ clamav-milter/clamav-milter.c 2008-09-04 08:28:44.000000000 +0300
+@@ -3926,7 +3926,7 @@
* the postmaster, so include
* some useful information
*/
@@ -13,7 +13,7 @@ Build fixes.
sendmailId, privdata->from);
else
fprintf(sendmail, _("A message sent from %s to\n"),
-@@ -3844,7 +3844,7 @@
+@@ -3940,7 +3940,7 @@
fprintf(sendmail, _("\nThe message in question has been quarantined as %s\n"), privdata->filename);
if(hflag) {
@@ -22,7 +22,7 @@ Build fixes.
smfi_getsymval(ctx, "j"), privdata->from,
smfi_getsymval(ctx, "_"));
fputs(_("For your information, the original message headers were:\n\n"), sendmail);
-@@ -5034,7 +5034,7 @@
+@@ -5129,7 +5129,7 @@
cli_dbgmsg("qfile move '%s' to '%s'\n", privdata->filename, newname);
if(move(privdata->filename, newname) < 0) {
diff --git a/mail/clamav/patches/patch-ba b/mail/clamav/patches/patch-ba
deleted file mode 100644
index 89aecab0906..00000000000
--- a/mail/clamav/patches/patch-ba
+++ /dev/null
@@ -1,111 +0,0 @@
-$NetBSD: patch-ba,v 1.3 2008/06/10 08:23:54 martti Exp $
-
-Fix pkg/36853
-
---- clamav-milter/clamav-milter.c.orig 2008-06-10 10:42:12.000000000 +0300
-+++ clamav-milter/clamav-milter.c 2008-06-10 10:42:58.000000000 +0300
-@@ -90,6 +90,9 @@
- #if HAVE_RESOLV_H
- #include <arpa/nameser.h> /* for HEADER */
- #include <resolv.h>
-+#if __RES >= 20030124
-+#define HAVE_BIND9
-+#endif
- #endif
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
-@@ -513,6 +516,20 @@
- #endif /*SESSION*/
-
- static pthread_cond_t watchdog_cond = PTHREAD_COND_INITIALIZER;
-+#ifndef HAVE_BIND9
-+static pthread_mutex_t res_mutex = PTHREAD_MUTEX_INITIALIZER;
-+#define RES_QUERY(len, h, c, t, q, s) \
-+ do { \
-+ pthread_mutex_lock(&res_mutex); \
-+ len = res_query((h), (c), (t), (q), (s)); \
-+ pthread_mutex_unlock(&res_mutex); \
-+ } while (/*CONSTCOND*/0)
-+#else
-+static pthread_key_t res_key;
-+#define RES_QUERY(len, h, c, t, q, s) \
-+ len = res_nquery((res_state)pthread_getspecific(res_key), \
-+ (h), (c), (t), (q), (s))
-+#endif
-
- #ifndef SHUT_RD
- #define SHUT_RD 0
-@@ -2053,12 +2070,19 @@
- logg(_("Starting %s\n"), clamav_version);
- logg(_("*Debugging is on\n"));
-
-+#ifndef HAVE_BIND9
- if(!(_res.options&RES_INIT))
- if(res_init() < 0) {
- fprintf(stderr, "%s: Can't initialise the resolver\n",
- argv[0]);
- return EX_UNAVAILABLE;
- }
-+#else
-+ if (pthread_key_create(&res_key, free)) {
-+ perror("pthread_key_create");
-+ return EX_UNAVAILABLE;
-+ }
-+#endif
-
- if(blacklist_time) {
- char name[MAXHOSTNAMELEN + 1];
-@@ -2574,6 +2598,18 @@
- int sock = s->sock;
- struct sockaddr *server = (struct sockaddr *)s->server;
- int server_index = s->server_index;
-+#ifdef HAVE_BIND9
-+ res_state res = cli_calloc(1, sizeof(*res));
-+ if (pthread_setspecific(res_key, res)) {
-+ perror("pthread_setspecific");
-+ free(res);
-+ return NULL;
-+ }
-+ if (res_ninit(res) < 0) {
-+ perror("res_ninit");
-+ return NULL;
-+ }
-+#endif
-
- if(last_failed_pings[server_index]) {
- s->rc = 0;
-@@ -6178,7 +6214,7 @@
- return NULL;
- }
-
-- len = res_query(host, C_IN, T_MX, (u_char *)&q, sizeof(q));
-+ RES_QUERY(len, host, C_IN, T_MX, (u_char *)&q, sizeof(q));
- if(len < 0)
- return t; /* Host has no MX records */
-
-@@ -6247,7 +6283,7 @@
- if((host == NULL) || (*host == '\0'))
- return t;
-
-- len = res_query(host, C_IN, T_A, (u_char *)&q, sizeof(q));
-+ RES_QUERY(len, host, C_IN, T_A, (u_char *)&q, sizeof(q));
- if(len < 0)
- return t; /* Host has no A records */
-
-@@ -6306,7 +6342,6 @@
- * an SPF system, we ONLY use SPF records to reduce phish false positives
- * TODO: IPv6?
- * TODO: cache queries?
-- * TODO: check res_query is thread safe
- *
- * INPUT: prevhosts, a list of hosts already searched: stops include loops
- * e.g. mercado.com includes medrcadosw.com which includes mercado.com,
-@@ -6358,7 +6393,7 @@
- *ptr = '\0';
-
- logg("*SPF query '%s'\n", host);
-- len = res_query(host, C_IN, T_TXT, (u_char *)&q, sizeof(q));
-+ RES_QUERY(len, host, C_IN, T_TXT, (u_char *)&q, sizeof(q));
- if(len < 0) {
- free(host);
- return 0; /* Host has no TXT records */