aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm
blob: 13ed5d038a43ed8948d0ea422697b32b070906fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- ClamAV.pm.orig	2007-02-20 11:42:16.000000000 -0200
+++ ClamAV.pm	2007-12-18 14:31:54.000000000 -0200
@@ -73,10 +73,6 @@
     CL_ESUPPORT
     CL_ELOCKDB
 
-    CL_ENCINIT
-    CL_ENCLOAD
-    CL_ENCIO
-
     CL_SCAN_RAW
     CL_SCAN_ARCHIVE
     CL_SCAN_MAIL
@@ -169,12 +165,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>
@@ -496,13 +489,7 @@
     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;