aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Mail-ClamAV
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-05-21 00:00:58 +0000
committerXin LI <delphij@FreeBSD.org>2009-05-21 00:00:58 +0000
commita3d7c72404096cce2653a6a99a4aec84bcc658d4 (patch)
tree3a757c68a12c440cc6a35639e99443c4f79dff70 /mail/p5-Mail-ClamAV
parentd720dfc7212b1cf6bef4901a678d10616d3c7916 (diff)
downloadports-a3d7c72404096cce2653a6a99a4aec84bcc658d4.tar.gz
ports-a3d7c72404096cce2653a6a99a4aec84bcc658d4.zip
Update to 0.28 and unbreak.
PR: ports/134047 Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=234305
Diffstat (limited to 'mail/p5-Mail-ClamAV')
-rw-r--r--mail/p5-Mail-ClamAV/Makefile5
-rw-r--r--mail/p5-Mail-ClamAV/distinfo6
-rw-r--r--mail/p5-Mail-ClamAV/files/patch-ClamAV.pm200
-rw-r--r--mail/p5-Mail-ClamAV/files/patch-README47
-rw-r--r--mail/p5-Mail-ClamAV/files/patch-t__Mail-ClamAV.t21
5 files changed, 4 insertions, 275 deletions
diff --git a/mail/p5-Mail-ClamAV/Makefile b/mail/p5-Mail-ClamAV/Makefile
index 82cfc3913018..ea62ceff01af 100644
--- a/mail/p5-Mail-ClamAV/Makefile
+++ b/mail/p5-Mail-ClamAV/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= Mail-ClamAV
-PORTVERSION= 0.20
-PORTREVISION= 5
+PORTVERSION= 0.28
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -26,8 +25,6 @@ PERL_CONFIGURE= yes
MAN3= Mail::ClamAV.3
-BROKEN= Doesn't build with clamav 0.95 or later
-
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/mail/p5-Mail-ClamAV/distinfo b/mail/p5-Mail-ClamAV/distinfo
index 310019375ce7..f6626dcff51f 100644
--- a/mail/p5-Mail-ClamAV/distinfo
+++ b/mail/p5-Mail-ClamAV/distinfo
@@ -1,3 +1,3 @@
-MD5 (Mail-ClamAV-0.20.tar.gz) = 1e78ebd110befd98a47b7f05b4634fd9
-SHA256 (Mail-ClamAV-0.20.tar.gz) = 1fb84869e37b1271dc0ef6e71d38b2ca31954dbec920f77f3cdf75d094d7be76
-SIZE (Mail-ClamAV-0.20.tar.gz) = 14377
+MD5 (Mail-ClamAV-0.28.tar.gz) = 056ccfa0cd6ae24042e91a44fdc4b43f
+SHA256 (Mail-ClamAV-0.28.tar.gz) = ca9a34ebd1fef0ef9263575c8aff38d9ac305cb0b83eee44c4462c290dc7a623
+SIZE (Mail-ClamAV-0.28.tar.gz) = 17289
diff --git a/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm b/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm
deleted file mode 100644
index f699fa1f9f43..000000000000
--- a/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm
+++ /dev/null
@@ -1,200 +0,0 @@
---- ClamAV.pm.orig 2007-02-20 11:42:16.000000000 -0200
-+++ ClamAV.pm 2008-09-13 12:02:25.000000000 -0300
-@@ -58,7 +58,6 @@
- CL_EACCES
- CL_ENULLARG
- CL_ETMPFILE
-- CL_EFSYNC
- CL_EMEM
- CL_EOPEN
- CL_EMALFDB
-@@ -71,11 +70,6 @@
- CL_EIO
- CL_EFORMAT
- CL_ESUPPORT
-- CL_ELOCKDB
--
-- CL_ENCINIT
-- CL_ENCLOAD
-- CL_ENCIO
-
- CL_SCAN_RAW
- CL_SCAN_ARCHIVE
-@@ -88,7 +82,6 @@
- CL_SCAN_MAILURL
- CL_SCAN_BLOCKMAX
- CL_SCAN_ALGORITHMIC
-- CL_SCAN_PHISHING_DOMAINLIST
- CL_SCAN_PHISHING_BLOCKSSL
-
- CL_SCAN_PHISHING_BLOCKCLOAK
-@@ -169,12 +162,9 @@
- VERSION => $VERSION,
- PREFIX => 'clamav_perl_',
- NAME => "Mail::ClamAV",
-- LIBS => "-lclamav";
--# removed on install
--BEGIN {
--require "./config.pl";
--}
--# end removed on install
-+ OPTIMIZE => '-g',
-+ LIBS => " -lclamav";
-+
- use Inline C => <<'END_OF_C';
- #include <stdio.h>
- #include <string.h>
-@@ -210,12 +200,10 @@
-
- /* set defaults for limits */
- c->limits.maxreclevel = 5;
-- c->limits.maxmailrec = 10;
- c->limits.maxfiles = 1000;
- c->limits.maxfilesize = 1024 * 1028 * 10; /* 10 Megs */
-
- /* XXX need to figure out a nice default */
-- c->limits.maxratio = 200;
- c->limits.archivememlim = 1;
-
- if (S_ISDIR(st.st_mode)) {
-@@ -290,19 +278,6 @@
- return SvClam(self)->limits.maxreclevel;
- }
-
--int clamav_perl_maxmailrec(SV *self, ...)
--{
-- Inline_Stack_Vars;
-- if (Inline_Stack_Items > 1) {
-- SV *max;
-- if (Inline_Stack_Items > 2)
-- croak("Invalid number of arguments to maxmailrec()");
-- max = Inline_Stack_Item(1);
-- SvClam(self)->limits.maxmailrec = SvIV(max);
-- }
-- return SvClam(self)->limits.maxmailrec;
--}
--
- int clamav_perl_maxfiles(SV *self, ...)
- {
- Inline_Stack_Vars;
-@@ -329,19 +304,6 @@
- return SvClam(self)->limits.maxfilesize;
- }
-
--int clamav_perl_maxratio(SV *self, ...)
--{
-- Inline_Stack_Vars;
-- if (Inline_Stack_Items > 1) {
-- SV *max;
-- if (Inline_Stack_Items > 2)
-- croak("Invalid number of arguments to maxratio()");
-- max = Inline_Stack_Item(1);
-- SvClam(self)->limits.maxratio = (long int)SvIV(max);
-- }
-- return SvClam(self)->limits.maxratio;
--}
--
- int clamav_perl_archivememlim(SV *self, ...)
- {
- Inline_Stack_Vars;
-@@ -481,7 +443,6 @@
- if (strEQ("CL_EACCES", name)) return CL_EACCES;
- if (strEQ("CL_ENULLARG", name)) return CL_ENULLARG;
- if (strEQ("CL_ETMPFILE", name)) return CL_ETMPFILE;
-- if (strEQ("CL_EFSYNC", name)) return CL_EFSYNC;
- if (strEQ("CL_EMEM", name)) return CL_EMEM;
- if (strEQ("CL_EOPEN", name)) return CL_EOPEN;
- if (strEQ("CL_EMALFDB", name)) return CL_EMALFDB;
-@@ -494,15 +455,8 @@
- if (strEQ("CL_EIO", name)) return CL_EIO;
- if (strEQ("CL_EFORMAT", name)) return CL_EFORMAT;
- if (strEQ("CL_ESUPPORT", name)) return CL_ESUPPORT;
-- if (strEQ("CL_ELOCKDB", name)) return CL_ELOCKDB;
--
-- /* NodalCore */
-- if (strEQ("CL_ENCINIT", name)) return CL_ENCINIT;
-- if (strEQ("CL_ENCLOAD", name)) return CL_ENCLOAD;
-- if (strEQ("CL_ENCIO", name)) return CL_ENCIO;
-
- /* db options */
-- if (strEQ("CL_DB_NCORE", name)) return CL_DB_NCORE;
- if (strEQ("CL_DB_PHISHING", name)) return CL_DB_PHISHING;
- if (strEQ("CL_DB_ACONLY", name)) return CL_DB_ACONLY;
- if (strEQ("CL_DB_PHISHING_URLS", name)) return CL_DB_PHISHING_URLS;
-@@ -522,7 +476,6 @@
- if (strEQ("CL_SCAN_MAILURL", name)) return CL_SCAN_MAILURL;
- if (strEQ("CL_SCAN_BLOCKMAX", name)) return CL_SCAN_BLOCKMAX;
- if (strEQ("CL_SCAN_ALGORITHMIC", name)) return CL_SCAN_ALGORITHMIC;
-- if (strEQ("CL_SCAN_PHISHING_DOMAINLIST", name)) return CL_SCAN_PHISHING_DOMAINLIST;
- if (strEQ("CL_SCAN_PHISHING_BLOCKSSL", name)) return CL_SCAN_PHISHING_BLOCKSSL;
- if (strEQ("CL_SCAN_PHISHING_BLOCKCLOAK", name)) return CL_SCAN_PHISHING_BLOCKCLOAK;
- if (strEQ("CL_SCAN_ELF", name)) return CL_SCAN_ELF;
-@@ -602,11 +555,9 @@
-
- # Set some limits (only applies to scan())
- $c->maxreclevel(4);
-- $c->maxmailrec(4);
- $c->maxfiles(20);
- $c->maxfilesize(1024 * 1024 * 20); # 20 megs
- $c->archivememlim(0); # limit memory usage for bzip2 (0/1)
-- $c->maxratio(0);
-
- # Scan a filehandle (scandesc in clamav)
- # scan(FileHandle or path, Bitfield of options)
-@@ -701,10 +652,6 @@
-
- Enable algorithmic detection of viruses.
-
--=item CL_SCAN_PHISHING_DOMAINLIST
--
--Phishing module: restrict URL scanning to domains from .pdf (RECOMMENDED).
--
- =item CL_SCAN_PHISHING_BLOCKSSL
-
- Phishing module: always block SSL mismatches in URLs.
-@@ -793,10 +740,6 @@
-
- tmpfile() failed
-
--=item CL_EFSYNC
--
--fsync() failed
--
- =item CL_EMEM
-
- memory allocation error
-@@ -845,10 +788,6 @@
-
- not supported data format
-
--=item CL_ELOCKDB
--
--can't lock DB directory
--
- =item CL_ENCINIT
-
- NodalCore initialization failed
-@@ -890,10 +829,6 @@
-
- Sets the maximum recursion level into archives [default 5].
-
--=item maxmailrec
--
--Sets the maximum recursion level into emails [default 10].
--
- =item maxfiles
-
- Maximum number of files that will be scanned [default 1000]. A value of zero
-@@ -904,12 +839,6 @@
- Maximum file size that will be scanned in bytes [default 10M]. A value of zero
- disables the check.
-
--=item maxratio
--
--Maximum compression ratio. So if this is set to 200, libclamav will give up
--decompressing a file if it reaches 200x its compressed size [default 200]. A
--value of zero disables the check.
--
- =item archivememlim
-
- Turns on/off memory usage limits for bzip2. [default 1]
diff --git a/mail/p5-Mail-ClamAV/files/patch-README b/mail/p5-Mail-ClamAV/files/patch-README
deleted file mode 100644
index d18c49c2330f..000000000000
--- a/mail/p5-Mail-ClamAV/files/patch-README
+++ /dev/null
@@ -1,47 +0,0 @@
---- ./README.orig 2007-02-20 05:40:55.000000000 -0800
-+++ ./README 2008-05-02 17:22:26.385238336 -0700
-@@ -27,11 +27,9 @@
- # Set some limits (only applies to scan())
- # Only relevant for archives
- $c->maxreclevel(4);
-- $c->maxmailrec(4);
- $c->maxfiles(20);
- $c->maxfilesize(1024 * 1024 * 20); # 20 megs
- $c->archivememlim(0); # limit memory usage for bzip2 (0/1)
-- $c->maxratio(0);
-
- # Scan a filehandle (scandesc in clamav)
- # scan(FileHandle or path, Bitfield of options)
-@@ -107,10 +105,6 @@
- CL_SCAN_ALGORITHMIC
- Enable algorithmic detection of viruses.
-
-- CL_SCAN_PHISHING_DOMAINLIST
-- Phishing module: restrict URL scanning to domains from .pdf
-- (RECOMMENDED).
--
- CL_SCAN_PHISHING_BLOCKSSL
- Phishing module: always block SSL mismatches in URLs.
-
-@@ -239,9 +233,6 @@
- maxreclevel
- Sets the maximum recursion level into archives [default 5].
-
-- maxmailrec
-- Sets the maximum recursion level into emails [default 10].
--
- maxfiles
- Maximum number of files that will be scanned [default 1000]. A value of
- zero disables the check.
-@@ -250,11 +241,6 @@
- Maximum file size that will be scanned in bytes [default 10M]. A value
- of zero disables the check.
-
-- maxratio
-- Maximum compression ratio. So if this is set to 200, libclamav will
-- give up decompressing a file if it reaches 200x its compressed size
-- [default 200]. A value of zero disables the check.
--
- archivememlim
- Turns on/off memory usage limits for bzip2. [default 1]
-
diff --git a/mail/p5-Mail-ClamAV/files/patch-t__Mail-ClamAV.t b/mail/p5-Mail-ClamAV/files/patch-t__Mail-ClamAV.t
deleted file mode 100644
index a2d138a9babf..000000000000
--- a/mail/p5-Mail-ClamAV/files/patch-t__Mail-ClamAV.t
+++ /dev/null
@@ -1,21 +0,0 @@
---- ./t/Mail-ClamAV.t.orig 2007-02-20 05:35:41.000000000 -0800
-+++ ./t/Mail-ClamAV.t 2008-05-02 17:35:11.841874518 -0700
-@@ -44,10 +44,6 @@
- CL_ESUPPORT
- CL_ELOCKDB
-
-- CL_ENCINIT
-- CL_ENCLOAD
-- CL_ENCIO
--
- CL_SCAN_RAW
- CL_SCAN_ARCHIVE
- CL_SCAN_MAIL
-@@ -59,7 +55,6 @@
- CL_SCAN_MAILURL
- CL_SCAN_BLOCKMAX
- CL_SCAN_ALGORITHMIC
-- CL_SCAN_PHISHING_DOMAINLIST
- CL_SCAN_PHISHING_BLOCKSSL
-
- CL_SCAN_PHISHING_BLOCKCLOAK