You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
2.3 KiB

Index: clamav-milter/clamav-milter.c
--- clamav-milter/clamav-milter.c.orig 2018-11-29 14:52:31.000000000 +0100
+++ clamav-milter/clamav-milter.c 2018-12-04 07:38:02.287329000 +0100
@@ -35,7 +35,7 @@
#include <syslog.h>
#endif
#include <time.h>
-#include <libmilter/mfapi.h>
+#include "milter/mfapi.h"
#include "clamav.h"
Index: clamav-milter/clamfi.c
--- clamav-milter/clamfi.c.orig 2018-11-29 14:52:31.000000000 +0100
+++ clamav-milter/clamfi.c 2018-12-04 07:38:02.287539000 +0100
@@ -32,7 +32,7 @@
#include <ctype.h>
#include <errno.h>
-#include <libmilter/mfapi.h>
+#include "milter/mfapi.h"
#include "libclamav/clamav.h"
#include "shared/optparser.h"
Index: clamav-milter/clamfi.h
--- clamav-milter/clamfi.h.orig 2018-11-29 14:52:31.000000000 +0100
+++ clamav-milter/clamfi.h 2018-12-04 07:38:02.287653000 +0100
@@ -23,7 +23,7 @@
#define _CLAMFI_H
#include "shared/optparser.h"
-#include <libmilter/mfapi.h>
+#include "milter/mfapi.h"
extern uint64_t maxfilesize;
extern int addxvirus;
Index: configure
--- configure.orig 2018-11-29 14:52:31.000000000 +0100
+++ configure 2018-12-04 07:40:45.594548000 +0100
@@ -25205,9 +25205,6 @@
save_LIBS="$LIBS"
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $THREAD_LIBS"
- if test -d /usr/lib/libmilter ; then
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
- fi
LIBS="$LIBS -lmilter $CLAMAV_MILTER_LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
$as_echo_n "checking for mi_stop in -lmilter... " >&6; }
@@ -25355,7 +25352,7 @@
fi
LIBS="$save_LIBS"
- for ac_header in libmilter/mfapi.h
+ for ac_header in milter/mfapi.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "libmilter/mfapi.h" "ac_cv_header_libmilter_mfapi_h" "$ac_includes_default"
if test "x$ac_cv_header_libmilter_mfapi_h" = xyes; then :
Index: libclamav/others.c
--- libclamav/others.c.orig 2018-11-29 14:52:32.000000000 +0100
+++ libclamav/others.c 2018-12-04 07:38:02.292723000 +0100
@@ -180,8 +180,10 @@
if(have_rar) return;
+#if 0
rhandle = lt_dlfind("libclamunrar_iface", "unrar");
if (!rhandle)
+#endif
return;
if (!(cli_unrar_open = (cl_unrar_error_t(*)(const char *, void **, char **, uint32_t *, uint8_t))lt_dlsym(rhandle, "libclamunrar_iface_LTX_unrar_open")) ||