Browse code

bugfixes

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@928 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/09/26 10:26:04
Showing 23 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
0
+Makefile
1
+autom4te.cache
2
+clamav-config.h
3
+config.log
4
+config.status
5
+libclamav.pc
6
+libtool
7
+stamp-h1
8
+target.h
... ...
@@ -1,3 +1,16 @@
1
+Sun Sep 26 03:11:48 CEST 2004 (tk)
2
+----------------------------------
3
+  * docs/MacOSX: update (Dale Enterprise L.L.C)
4
+  * freshclam: fix compilation problem on Max OS X (thanks to Mr Mailing List
5
+	       <maillist*smarttv.dk>)
6
+  * configure: do not test double for resolv.h (thanks to Masaki Ogawa
7
+	       <proc*mac.com>)
8
+  * docs/man: fix config paths (thanks to Tuomo Soini <tis*foobar.fi>)
9
+  * libclamav: fix compilation problem on Interix (Brian A. Reiter
10
+	       <breiter*wolfereiter.com>)
11
+  * configure: add check for __dn_expand (required for some new Linux
12
+	       distributions, thanks to Reinhard Max <max*tclers.tk>)
13
+
1 14
 Sat Sep 25 16:48:18 BST 2004 (njh)
2 15
 ----------------------------------
3 16
   * clamav-milter:	Didn't compile with some older Linuxes
... ...
@@ -12,7 +25,7 @@ Fri Sep 24 09:14:44 BST 2004 (trog)
12 12
 Thu Sep 23 09:46:06 BST 2004 (njh)
13 13
 ----------------------------------
14 14
   * libclamav/mbox.c:	Scan multipart/digest messages (suggested by "Andrey J.
15
-				Melnikoff (TEMHOTA)" <temnota@kmv.ru>)
15
+				Melnikoff (TEMHOTA)" <temnota*kmv.ru>)
16 16
 
17 17
 Wed Sep 22 17:11:23 BST 2004 (njh)
18 18
 ----------------------------------
... ...
@@ -58,9 +58,12 @@ target_triplet = @target@
58 58
 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
59 59
 	$(srcdir)/Makefile.in $(srcdir)/clamav-config.h.in \
60 60
 	$(srcdir)/clamav-config.in $(srcdir)/libclamav.pc.in \
61
-	$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
62
-	TODO config.guess config.sub depcomp install-sh ltmain.sh \
63
-	missing mkinstalldirs
61
+	$(top_srcdir)/configure $(top_srcdir)/docs/man/clamd.8.in \
62
+	$(top_srcdir)/docs/man/clamd.conf.5.in \
63
+	$(top_srcdir)/docs/man/freshclam.1.in \
64
+	$(top_srcdir)/docs/man/freshclam.conf.5.in AUTHORS COPYING \
65
+	ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
66
+	install-sh ltmain.sh missing mkinstalldirs
64 67
 subdir = .
65 68
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
66 69
 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
... ...
@@ -71,7 +74,9 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
71 71
  configure.lineno configure.status.lineno
72 72
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
73 73
 CONFIG_HEADER = clamav-config.h
74
-CONFIG_CLEAN_FILES = clamav-config libclamav.pc
74
+CONFIG_CLEAN_FILES = clamav-config libclamav.pc docs/man/clamd.8 \
75
+	docs/man/clamd.conf.5 docs/man/freshclam.1 \
76
+	docs/man/freshclam.conf.5
75 77
 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"
76 78
 binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
77 79
 SCRIPTS = $(bin_SCRIPTS)
... ...
@@ -269,6 +274,14 @@ clamav-config: $(top_builddir)/config.status $(srcdir)/clamav-config.in
269 269
 	cd $(top_builddir) && $(SHELL) ./config.status $@
270 270
 libclamav.pc: $(top_builddir)/config.status $(srcdir)/libclamav.pc.in
271 271
 	cd $(top_builddir) && $(SHELL) ./config.status $@
272
+docs/man/clamd.8: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamd.8.in
273
+	cd $(top_builddir) && $(SHELL) ./config.status $@
274
+docs/man/clamd.conf.5: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamd.conf.5.in
275
+	cd $(top_builddir) && $(SHELL) ./config.status $@
276
+docs/man/freshclam.1: $(top_builddir)/config.status $(top_srcdir)/docs/man/freshclam.1.in
277
+	cd $(top_builddir) && $(SHELL) ./config.status $@
278
+docs/man/freshclam.conf.5: $(top_builddir)/config.status $(top_srcdir)/docs/man/freshclam.conf.5.in
279
+	cd $(top_builddir) && $(SHELL) ./config.status $@
272 280
 install-binSCRIPTS: $(bin_SCRIPTS)
273 281
 	@$(NORMAL_INSTALL)
274 282
 	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
... ...
@@ -439,7 +452,7 @@ distclean-tags:
439 439
 distdir: $(DISTFILES)
440 440
 	$(am__remove_distdir)
441 441
 	mkdir $(distdir)
442
-	$(mkdir_p) $(distdir)/.
442
+	$(mkdir_p) $(distdir)/. $(distdir)/docs/man
443 443
 	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
444 444
 	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
445 445
 	list='$(DISTFILES)'; for file in $$list; do \
... ...
@@ -46,7 +46,7 @@ while test $# -gt 0; do
46 46
 	;;
47 47
 
48 48
     --version)
49
-	echo devel-20040921
49
+	echo devel-20040926
50 50
 	exit 0
51 51
 	;;
52 52
 
... ...
@@ -1,5 +1,8 @@
1 1
 /* clamav-config.h.in.  Generated from configure.in by autoheader.  */
2 2
 
3
+/* enable bind8 compatibility */
4
+#undef BIND_8_COMPAT
5
+
3 6
 /* Define if your snprintf is busted */
4 7
 #undef BROKEN_SNPRINTF
5 8
 
... ...
@@ -108,6 +111,9 @@
108 108
 /* Define to 1 if you have the <inttypes.h> header file. */
109 109
 #undef HAVE_INTTYPES_H
110 110
 
111
+/* in_addr_t is defined */
112
+#undef HAVE_IN_ADDR_T
113
+
111 114
 /* in_port_t is defined */
112 115
 #undef HAVE_IN_PORT_T
113 116
 
114 117
new file mode 100644
... ...
@@ -0,0 +1,2 @@
0
+.deps
1
+Makefile
0 2
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+.deps
1
+.libs
2
+Makefile
3
+clamd
0 4
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+.deps
1
+.libs
2
+Makefile
3
+clamdscan
0 4
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+.deps
1
+.libs
2
+Makefile
3
+clamscan
... ...
@@ -8542,8 +8542,7 @@ fi
8542 8542
 
8543 8543
 
8544 8544
 
8545
-
8546
-for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h resolv.h
8545
+for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h
8547 8546
 do
8548 8547
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8549 8548
 if eval "test \"\${$as_ac_Header+set}\" = set"; then
... ...
@@ -10547,7 +10546,75 @@ fi;
10547 10547
 
10548 10548
 if test "$want_dns" = "yes"
10549 10549
 then
10550
-    echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
10550
+    echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
10551
+echo $ECHO_N "checking for __dn_expand in -lresolv... $ECHO_C" >&6
10552
+if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
10553
+  echo $ECHO_N "(cached) $ECHO_C" >&6
10554
+else
10555
+  ac_check_lib_save_LIBS=$LIBS
10556
+LIBS="-lresolv  $LIBS"
10557
+cat >conftest.$ac_ext <<_ACEOF
10558
+/* confdefs.h.  */
10559
+_ACEOF
10560
+cat confdefs.h >>conftest.$ac_ext
10561
+cat >>conftest.$ac_ext <<_ACEOF
10562
+/* end confdefs.h.  */
10563
+
10564
+/* Override any gcc2 internal prototype to avoid an error.  */
10565
+#ifdef __cplusplus
10566
+extern "C"
10567
+#endif
10568
+/* We use char because int might match the return type of a gcc2
10569
+   builtin and then its argument prototype would still apply.  */
10570
+char __dn_expand ();
10571
+int
10572
+main ()
10573
+{
10574
+__dn_expand ();
10575
+  ;
10576
+  return 0;
10577
+}
10578
+_ACEOF
10579
+rm -f conftest.$ac_objext conftest$ac_exeext
10580
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581
+  (eval $ac_link) 2>conftest.er1
10582
+  ac_status=$?
10583
+  grep -v '^ *+' conftest.er1 >conftest.err
10584
+  rm -f conftest.er1
10585
+  cat conftest.err >&5
10586
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587
+  (exit $ac_status); } &&
10588
+	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10589
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590
+  (eval $ac_try) 2>&5
10591
+  ac_status=$?
10592
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593
+  (exit $ac_status); }; } &&
10594
+	 { ac_try='test -s conftest$ac_exeext'
10595
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596
+  (eval $ac_try) 2>&5
10597
+  ac_status=$?
10598
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599
+  (exit $ac_status); }; }; then
10600
+  ac_cv_lib_resolv___dn_expand=yes
10601
+else
10602
+  echo "$as_me: failed program was:" >&5
10603
+sed 's/^/| /' conftest.$ac_ext >&5
10604
+
10605
+ac_cv_lib_resolv___dn_expand=no
10606
+fi
10607
+rm -f conftest.err conftest.$ac_objext \
10608
+      conftest$ac_exeext conftest.$ac_ext
10609
+LIBS=$ac_check_lib_save_LIBS
10610
+fi
10611
+echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
10612
+echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6
10613
+if test $ac_cv_lib_resolv___dn_expand = yes; then
10614
+  resolv_lib="-lresolv"
10615
+fi
10616
+
10617
+    if test -z "$resolv_lib"; then
10618
+      echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
10551 10619
 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
10552 10620
 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
10553 10621
   echo $ECHO_N "(cached) $ECHO_C" >&6
... ...
@@ -10614,6 +10681,7 @@ if test $ac_cv_lib_resolv_dn_expand = yes; then
10614 10614
   resolv_lib="-lresolv"
10615 10615
 fi
10616 10616
 
10617
+    fi
10617 10618
     if test "${ac_cv_header_resolv_h+set}" = set; then
10618 10619
   echo "$as_me:$LINENO: checking for resolv.h" >&5
10619 10620
 echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6
... ...
@@ -11269,6 +11337,53 @@ fi
11269 11269
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11270 11270
 fi
11271 11271
 
11272
+if test "$cross_compiling" = yes; then
11273
+  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11274
+See \`config.log' for more details." >&5
11275
+echo "$as_me: error: cannot run test program while cross compiling
11276
+See \`config.log' for more details." >&2;}
11277
+   { (exit 1); exit 1; }; }
11278
+else
11279
+  cat >conftest.$ac_ext <<_ACEOF
11280
+/* confdefs.h.  */
11281
+_ACEOF
11282
+cat confdefs.h >>conftest.$ac_ext
11283
+cat >>conftest.$ac_ext <<_ACEOF
11284
+/* end confdefs.h.  */
11285
+
11286
+#include <sys/types.h>
11287
+#include <netinet/in.h>
11288
+int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; }
11289
+
11290
+_ACEOF
11291
+rm -f conftest$ac_exeext
11292
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293
+  (eval $ac_link) 2>&5
11294
+  ac_status=$?
11295
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11297
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298
+  (eval $ac_try) 2>&5
11299
+  ac_status=$?
11300
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301
+  (exit $ac_status); }; }; then
11302
+
11303
+cat >>confdefs.h <<\_ACEOF
11304
+#define HAVE_IN_ADDR_T 1
11305
+_ACEOF
11306
+
11307
+else
11308
+  echo "$as_me: program exited with status $ac_status" >&5
11309
+echo "$as_me: failed program was:" >&5
11310
+sed 's/^/| /' conftest.$ac_ext >&5
11311
+
11312
+( exit $ac_status )
11313
+echo "$as_me:$LINENO: result: in_addr_t is not defined" >&5
11314
+echo "${ECHO_T}in_addr_t is not defined" >&6
11315
+fi
11316
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11317
+fi
11318
+
11272 11319
 case "$target_os" in
11273 11320
 linux*)
11274 11321
 
... ...
@@ -11488,6 +11603,11 @@ cat >>confdefs.h <<\_ACEOF
11488 11488
 #define C_DARWIN 1
11489 11489
 _ACEOF
11490 11490
 
11491
+
11492
+cat >>confdefs.h <<\_ACEOF
11493
+#define BIND_8_COMPAT 1
11494
+_ACEOF
11495
+
11491 11496
     use_netinfo="yes"
11492 11497
     ;;
11493 11498
 sco*)
... ...
@@ -13393,7 +13513,7 @@ cat >>confdefs.h <<_ACEOF
13393 13393
 _ACEOF
13394 13394
 
13395 13395
 
13396
-                                                                                                                                  ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile etc/Makefile Makefile clamav-config libclamav.pc"
13396
+                                                                                                                                                                          ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/freshclam.1 docs/man/freshclam.conf.5"
13397 13397
 cat >confcache <<\_ACEOF
13398 13398
 # This file is a shell script that caches the results of configure
13399 13399
 # tests run on this system so they can be shared between configure
... ...
@@ -13984,6 +14104,10 @@ do
13984 13984
   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13985 13985
   "clamav-config" ) CONFIG_FILES="$CONFIG_FILES clamav-config" ;;
13986 13986
   "libclamav.pc" ) CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;;
13987
+  "docs/man/clamd.8" ) CONFIG_FILES="$CONFIG_FILES docs/man/clamd.8" ;;
13988
+  "docs/man/clamd.conf.5" ) CONFIG_FILES="$CONFIG_FILES docs/man/clamd.conf.5" ;;
13989
+  "docs/man/freshclam.1" ) CONFIG_FILES="$CONFIG_FILES docs/man/freshclam.1" ;;
13990
+  "docs/man/freshclam.conf.5" ) CONFIG_FILES="$CONFIG_FILES docs/man/freshclam.conf.5" ;;
13987 13991
   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13988 13992
   "clamav-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS clamav-config.h" ;;
13989 13993
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
... ...
@@ -37,7 +37,7 @@ AC_DEFINE(SCANBUFF, 131072, [scan buffer size])
37 37
 AC_DEFINE(FILEBUFF, 8192,   [file i/o buffer size])
38 38
 
39 39
 AC_HEADER_STDC
40
-AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h resolv.h)
40
+AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h)
41 41
 AC_CHECK_HEADER(syslog.h,AC_DEFINE(USE_SYSLOG,1,[use syslog]),)
42 42
 
43 43
 AC_TYPE_OFF_T
... ...
@@ -92,7 +92,10 @@ want_dns="no",)
92 92
 
93 93
 if test "$want_dns" = "yes"
94 94
 then
95
-    AC_CHECK_LIB(resolv, dn_expand, resolv_lib="-lresolv",)
95
+    AC_CHECK_LIB(resolv, __dn_expand, resolv_lib="-lresolv",)
96
+    if test -z "$resolv_lib"; then
97
+      AC_CHECK_LIB(resolv, dn_expand, resolv_lib="-lresolv",)
98
+    fi
96 99
     AC_CHECK_HEADER(resolv.h,[FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; AC_DEFINE(HAVE_RESOLV_H,1,have resolv.h)], AC_MSG_WARN([****** DNS support disabled]))
97 100
 fi
98 101
 
... ...
@@ -235,6 +238,13 @@ AC_TRY_RUN([
235 235
 int main(int argc, char **argv) { in_port_t pt; pt = 0; return pt; }
236 236
 ], AC_DEFINE(HAVE_IN_PORT_T,1,[in_port_t is defined]), AC_MSG_RESULT(in_port_t is not defined))
237 237
 
238
+dnl check for in_addr_t definition
239
+AC_TRY_RUN([
240
+#include <sys/types.h>
241
+#include <netinet/in.h>
242
+int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; }
243
+], AC_DEFINE(HAVE_IN_ADDR_T,1,[in_addr_t is defined]), AC_MSG_RESULT(in_addr_t is not defined))
244
+
238 245
 case "$target_os" in
239 246
 linux*)
240 247
     AC_DEFINE(C_LINUX,1,[target is linux])
... ...
@@ -344,6 +354,7 @@ beos*)
344 344
 darwin*)
345 345
     AC_DEFINE(C_BSD,1,[os is bsd flavor])
346 346
     AC_DEFINE(C_DARWIN,1,[os is darwin])
347
+    AC_DEFINE(BIND_8_COMPAT,1,[enable bind8 compatibility])
347 348
     use_netinfo="yes"
348 349
     ;;
349 350
 sco*)
... ...
@@ -709,4 +720,8 @@ etc/Makefile
709 709
 Makefile
710 710
 clamav-config
711 711
 libclamav.pc
712
+docs/man/clamd.8
713
+docs/man/clamd.conf.5
714
+docs/man/freshclam.1
715
+docs/man/freshclam.conf.5
712 716
 ])
713 717
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+Makefile
0 1
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+Makefile
0 1
Binary files a/docs/MacOSX/Macintosh.tar.gz and b/docs/MacOSX/Macintosh.tar.gz differ
1 2
deleted file mode 100644
... ...
@@ -1,58 +0,0 @@
1
-.\" Manual page created by Tomasz Kojm, 20020929
2
-.TH "Clam Daemon" "8" "November 11, 2003" "Tomasz Kojm" "Clam AntiVirus"
3
-.SH "NAME"
4
-.LP 
5
-clamd \- an anti\-virus daemon
6
-.SH "SYNOPSIS"
7
-.LP 
8
-clamd [options]
9
-.SH "DESCRIPTION"
10
-.LP 
11
-The daemon listens for incoming connections on Unix or TCP socket and scans files or directories on demand. It's a part of the Clam AntiVirus package. It reads its configuration information from a clamd.conf file. It provides on\-access scanning feature (clamuko) under Linux.
12
-.SH "COMMANDS"
13
-.LP 
14
-clamd recognizes the following commands:
15
-.TP 
16
-\fBPING\fR
17
-Check the server's state. It should reply with "PONG".
18
-.TP 
19
-\fBVERSION\fR
20
-Print a version information.
21
-.TP 
22
-\fBRELOAD\fR
23
-Reload the virus databases.
24
-.TP 
25
-\fBQUIT\fR
26
-Perform a clean exit.
27
-.TP 
28
-\fBSCAN file/directory\fR
29
-Scan a file or directory (recursively) with archive support enabled (if not disabled in clamd.conf). A full path is required.
30
-.TP 
31
-\fBRAWSCAN file/directory\fR
32
-Scan a file or directory (recursively) with archive support disabled. A full path is required.
33
-.TP 
34
-\fBCONTSCAN file/directory\fR
35
-Scan a file or directory (recursively) with archive support enabled and continue scanning even when virus is found. A full path is required.
36
-.TP 
37
-\fBSTREAM\fR
38
-Scan stream \- on this command clamd will return "PORT number" and you can connect to that port and send a data to scan.
39
-.SH "OPTIONS"
40
-.LP 
41
-
42
-.TP 
43
-\fB\-h, \-\-help\fR
44
-Output help information and exit.
45
-.TP 
46
-\fB\-V, \-\-version\fR
47
-Print the version number and exit.
48
-.TP 
49
-\fB\-c FILE, \-\-config\-file=FILE\fR
50
-Read configuration from FILE.
51
-.SH "CREDITS"
52
-Please check the full documentation for credits.
53
-.SH "AUTHOR"
54
-.LP 
55
-Tomasz Kojm <tkojm@clamav.net>
56
-.SH "SEE ALSO"
57
-.LP 
58
-clamdscan(1), clamscan(1), freshclam(1), sigtool(1), clamd.conf(5), clamav\-milter(8)
59 1
deleted file mode 100644
... ...
@@ -1,285 +0,0 @@
1
-.\" Manual page created by Tomasz Kojm, 20021001.
2
-.TH "clamd.conf" "5" "September 2, 2004" "Tomasz Kojm" "Clam AntiVirus"
3
-.SH "NAME"
4
-.LP 
5
-\fBclamd.conf\fR \- a configuration file for Clam AntiVirus Daemon
6
-.SH "DESCRIPTION"
7
-.LP 
8
-clamd.conf configures the Clam AntiVirus daemon, clamd(8).
9
-.SH "FILE FORMAT"
10
-The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
11
-.TP 
12
-\fBSTRING\fR
13
-String without blank characters.
14
-.TP 
15
-\fBSIZE\fR
16
-Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.
17
-.TP 
18
-\fBNUMBER\fR
19
-Unsigned integer.
20
-.SH "DIRECTIVES"
21
-.LP 
22
-When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
23
-.TP 
24
-\fBExample\fR
25
-If this option is set clamd will not run.
26
-.TP 
27
-\fBLogFile STRING\fR
28
-Enable logging to selected file.
29
-.br 
30
-Default: disabled.
31
-.TP 
32
-\fBLogFileUnlock\fR
33
-Disable a system lock that protects against running clamd with a same configuration file multiple times.
34
-.br 
35
-Default: disabled.
36
-.TP 
37
-\fBLogFileMaxSize SIZE\fR
38
-Limit a size of a log file. The logger will be automatically disabled  if the file is greater than SIZE. Value of 0 disables the limit.
39
-.br 
40
-Default: 1M
41
-.TP 
42
-\fBLogTime\fR
43
-Log time with each message.
44
-.br 
45
-Default: disabled.
46
-.TP 
47
-\fBLogClean\fR
48
-Log clean files.
49
-.br 
50
-Default: disabled.
51
-.TP 
52
-\fBLogSyslog\fR
53
-Use system logger (can work together with LogFile).
54
-.br 
55
-Default: disabled.
56
-.TP 
57
-\fBLogVerbose\fR
58
-Enable verbose logging.
59
-.br 
60
-Default: disabled.
61
-.TP 
62
-\fBPidFile STRING\fR
63
-Save a process identifier of a listening daemon (main thread) to a specified file.
64
-.br 
65
-Default: disabled.
66
-.TP 
67
-\fBDatabaseDirectory STRING\fR
68
-Path to a directory containing database files.
69
-.br 
70
-Default: hardcoded directory.
71
-.TP 
72
-\fBLocalSocket STRING\fR
73
-Path to a local (Unix) socket the daemon will listen on.
74
-.br 
75
-Default: disabled.
76
-.TP 
77
-\fBFixStaleSocket\fR
78
-Remove stale socket after unclean shutdown.
79
-.br 
80
-Default: disabled.
81
-.TP 
82
-\fBTCPSocket NUMBER\fR
83
-TCP port number the daemon will listen on.
84
-.br 
85
-Default: disabled.
86
-.TP 
87
-\fBTCPAddr STRING\fR
88
-TCP address to bind to. By default clamd binds to INADDR_ANY.
89
-.br 
90
-Default: disabled.
91
-.TP 
92
-\fBMaxConnectionQueueLength NUMBER\fR
93
-Maximum length the queue of pending connections may grow to.
94
-.br 
95
-Default: 15
96
-.TP 
97
-\fBMaxThreads NUMBER\fR
98
-Maximal number of threads running at the same time.
99
-.br 
100
-Default: 5.
101
-.TP 
102
-\fBThreadTimeout NUMBER\fR
103
-Stop thread\-scanner after specified time (in seconds). Value of 0 disables the timeout.
104
-.br 
105
-Default: 180
106
-.TP 
107
-\fBMaxDirectoryRecursion NUMBER\fR
108
-Maximal depth a directories are scanned at.
109
-.br 
110
-Default: disabled.
111
-.TP 
112
-\fBFollowDirectorySymlinks\fR
113
-Follow a directory symlinks. You should have enabled directory recursion limit to avoid a potential problems.
114
-.br 
115
-Default: disabled.
116
-.TP 
117
-\fBFollowFileSymlinks\fR
118
-Follow regular file symlinks.
119
-.br 
120
-Default: disabled.
121
-.TP 
122
-\fBSelfCheck NUMBER\fR
123
-Do internal checks every NUMBER seconds.
124
-.br 
125
-Default: 3600
126
-.TP 
127
-\fBVirusEvent COMMAND\fR
128
-Execute the COMMAND when virus is found. In the command string %v will be replaced by a virus name.
129
-\fR
130
-.br 
131
-Default: disabled.
132
-.TP 
133
-\fBUser STRING\fR
134
-Drop priviledges to a selected user.
135
-.br 
136
-Default: disabled.
137
-.TP 
138
-\fBAllowSupplementaryGroups\fR
139
-When started by root and the User option is activated, it will initialize all the groups from /etc/group for which user is a member.
140
-.br 
141
-Default: disabled.
142
-.TP 
143
-\fBForeground\fR
144
-Don't fork into background. Useful in debugging.
145
-.br 
146
-Default: disabled.
147
-.TP 
148
-\fBDebug\fR
149
-Enable debug messages from libclamav. You need to enable the \fBForeground\fR option to see them.
150
-.TP 
151
-\fBStreamSaveToDisk\fR
152
-When activated the input stream (see STREAM command) will be saved to disk before scanning \- this allows scanning within archives.
153
-.br 
154
-Default: disabled.
155
-.TP 
156
-\fBStreamMaxLength SIZE\fR
157
-Close the connection when this limit is exceeded.
158
-.br 
159
-Default: disabled.
160
-.TP 
161
-\fBScanPE\fR
162
-PE stands for Portable Executable \- it's an executable file format used in all 32\-bit versions of Windows operating systems. This option allows ClamAV to perform a deeper analysis of executable files and it's also required for decompression of popular executable packers such as UPX.
163
-.br 
164
-Default: enabled.
165
-.TP 
166
-\fBDetectBrokenExecutables\fR
167
-With this option clamav will try to detect broken executables and mark them as Broken.Executable.
168
-.br 
169
-Default: disabled.
170
-.TP 
171
-\fBScanOLE2\fR
172
-Enables scanning of Microsoft Office document macros.
173
-.br 
174
-Default: enabled.
175
-.TP 
176
-\fBScanHTML\fR
177
-Enables HTML detection and normalisation.
178
-.br 
179
-Default: enabled.
180
-.TP 
181
-\fBScanMail\fR
182
-Enable scanning of mail files.
183
-.br 
184
-Default: enabled.
185
-.TP 
186
-\fBMailFollowURLs\fR
187
-If an email contains URLs ClamAV can download and scan them. \fBWARNING: This option may open your system to a DoS attack. Never use it on loaded servers.\fR
188
-.br 
189
-Default: disabled.
190
-.TP 
191
-\fBScanArchive\fR
192
-Enable archive scanning.
193
-.br 
194
-Default: disabled.
195
-.TP 
196
-\fBScanRAR\fR
197
-The built\-in RAR unpacker is disabled by default because the code leaks.
198
-.br 
199
-Default: disabled.
200
-.TP 
201
-\fBArchiveMaxFileSize SIZE\fR
202
-Files in archives larger than this limit won't be scanned. Value of 0 disables the limit.
203
-.br 
204
-Default: 10M
205
-.TP 
206
-\fBArchiveMaxRecursion NUMBER\fR
207
-Limit archive recursion level. Value of 0 disables the limit.
208
-.br 
209
-Default: 5
210
-.TP 
211
-\fBArchiveMaxFiles NUMBER\fR
212
-Number of files to be scanned within archive. Value of 0 disables the limit.
213
-.br 
214
-Default: 1000
215
-.TP 
216
-\fBArchiveMaxCompressionRatio NUMBER\fR
217
-Analyze compression ratio and mark potential archive bombs as viruses (0 disables the limit).
218
-.br 
219
-Default: 200
220
-.TP 
221
-\fBArchiveLimitMemoryUsage\fR
222
-Use slower decompression algorithm which uses less memory. This option affects bzip2 decompressor only.
223
-.br 
224
-Default: disabled
225
-.TP 
226
-\fBArchiveBlockEncrypted\fR
227
-Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
228
-.br 
229
-Default: disabled
230
-.TP 
231
-\fBArchiveBlockMax\fR
232
-Mark archives as viruses if ArchiveMaxFiles, ArchiveMaxFileSize, or ArchiveMaxRecursion limit is reached.
233
-.br 
234
-Default: disabled
235
-.TP 
236
-\fBClamukoScanOnLine\fR
237
-Enable Clamuko \- on\-access scanner for Linux. Dazuko must be already running.
238
-.br 
239
-Default: disabled.
240
-.TP 
241
-\fBClamukoScanOnOpen\fR
242
-Scan a file on open.
243
-.br 
244
-Default: disabled.
245
-.TP 
246
-\fBClamukoScanOnClose\fR
247
-Scan a file on close.
248
-.br 
249
-Default: disabled.
250
-.TP 
251
-\fBClamukoScanOnExec\fR
252
-Scan a file on execute.
253
-.br 
254
-Default: disabled.
255
-.TP 
256
-\fBClamukoIncludePath STRING\fR
257
-Set the include paths (all files and directories in them will be scanned). You can have multiple ClamukoIncludePath options but each directory must be added with a seperate option.
258
-.br 
259
-Default: disabled. Required.
260
-.TP 
261
-\fBClamukoExcludePath\fR
262
-Set the exclude paths. All subdirectories are also excluded.
263
-.br 
264
-Default: disabled.
265
-.TP 
266
-\fBClamukoMaxFileSize SIZE\fR
267
-Don't scan files larger than SIZE.
268
-.br 
269
-Default: 5M
270
-.TP 
271
-\fBClamukoScanArchive\fR
272
-Enable archive scanning. It uses ArchiveMax* limits.
273
-.br 
274
-Default: disabled.
275
-.SH "FILES"
276
-.LP 
277
-/etc/clamd.conf
278
-.br 
279
-/usr/local/etc/clamd.conf
280
-.SH "AUTHOR"
281
-.LP 
282
-Tomasz Kojm <tkojm@clamav.net>
283
-.SH "SEE ALSO"
284
-.LP 
285
-clamd(8), clamdscan(1), clamscan(1), freshclam(1), sigtool(1), clamav\-milter(8)
286 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-.\" Manual page created by Tomasz Kojm, 20020415
2
-.TH "freshclam" "1" "September 1, 2004" "Tomasz Kojm" "Clam AntiVirus"
3
-.SH "NAME"
4
-.LP 
5
-freshclam \- update virus databases
6
-.SH "SYNOPSIS"
7
-.LP 
8
-freshclam [options]
9
-.SH "DESCRIPTION"
10
-.LP 
11
-freshclam updates the virus database. It's a part of the Clam AntiVirus package. It requires an Internet connection.
12
-.SH "OPTIONS"
13
-.LP 
14
-Freshclam reads its configuration from freshclam.conf. The settings can be overwritten with command line options.
15
-.TP 
16
-\fB\-h, \-\-help\fR
17
-Output help information and exit.
18
-.TP 
19
-\fB\-V, \-\-version\fR
20
-Print version number and exit.
21
-.TP 
22
-\fB\-v, \-\-verbose\fR
23
-Be verbose. This option causes freshclam to print many additional informations.
24
-.TP 
25
-\fB\-\-quiet\fR
26
-Be quiet \- output only error messages.
27
-.TP 
28
-\fB\-\-stdout\fR
29
-Write all messages to the standard output (stdout), instead of the standard error output (stderr).
30
-.TP 
31
-\fB\-l FILE, \-\-log=FILE\fR
32
-Save download report in FILE.
33
-.TP 
34
-\fB\-\-datadir=DIRECTORY\fR
35
-Install new database in DIRECTORY. The directory must be writeable for the 'clamav' user or unprivileged user running freshclam.
36
-.TP 
37
-\fB\-u USER, \-\-user USER\fR
38
-Run as USER. By default (when started by root) freshclam drops privileges and works as the 'clamav' user.
39
-.TP 
40
-\fB\-d, \-\-daemon\fR
41
-Run in a daemon mode. This option requires \-\-checks.
42
-.TP 
43
-\fB\-p FILE, \-\-pid=FILE\fR
44
-Save daemon's pid in FILE.
45
-.TP 
46
-\fB\-\-no\-dns\fR
47
-This option forces old non\-DNS verification method (without a TTL delay).
48
-.TP 
49
-\fB\-c #n, \-\-checks=#n\fR
50
-Check #n times per day for a new database. #n must be between 1 and 50.
51
-.TP 
52
-\fB\-\-daemon\-notify=/path/to/clamd.conf\fR
53
-Notify the daemon about the new database. By default it reads a hardcoded config file but you can use an another one. Both local and TCP sockets are supported.
54
-.TP 
55
-\fB\-\-on\-error\-execute=COMMAND\fR
56
-Execute COMMAND if error occured. Remeber, that virus database freshness is the most important thing in anti\-virus system. With this option freshclam can alert you (eg. send SMS) when something is going wrong.
57
-.TP 
58
-\fB\-\-on\-update\-execute=COMMAND\fR
59
-Execute COMMAND after succesful update.
60
-.SH "EXAMPLES"
61
-.LP 
62
-.TP 
63
-(0) Download database to default directory:
64
-
65
-\fBfreshclam\fR
66
-.TP 
67
-(1) Download database to current directory:
68
-
69
-\fBfreshclam \-\-datadir=.\fR
70
-.TP 
71
-(2) Run as a daemon and check 2 times per day for new database:
72
-
73
-\fBfreshclam \-d \-c 2\fR
74
-.SH "RETURN CODES"
75
-0 : Database succesfully updated.
76
-.TP 
77
-1 : Database is up\-to\-date.
78
-.TP 
79
-40: Unknown option passed.
80
-.TP 
81
-50: Can't change directory.
82
-.TP 
83
-51: Can't check MD5 sum.
84
-.TP 
85
-52: Connection (network) problem.
86
-.TP 
87
-53: Can't unlink a file.
88
-.TP 
89
-54: MD5 or digital signature verification error.
90
-.TP 
91
-55: Error reading file.
92
-.TP 
93
-56: Config file error.
94
-.TP 
95
-57: Can't create a new file.
96
-.TP 
97
-58: Can't read database from remote server.
98
-.TP 
99
-59: Mirrors are not fully synchronized (try again later).
100
-.TP 
101
-60: Can't get information about clamav user from /etc/passwd.
102
-.TP 
103
-61: Can't drop privileges.
104
-.SH "CREDITS"
105
-Please check the full documentation for credits.
106
-.SH "AUTHOR"
107
-.LP 
108
-Tomasz Kojm <tkojm@clamav.net>
109
-.SH "SEE ALSO"
110
-.LP 
111
-clamd(8), clamdscan(1), clamscan(1), sigtool(1), clamd.conf(5)
112 1
deleted file mode 100644
... ...
@@ -1,94 +0,0 @@
1
-.\" Manual page created by Magnus Ekdahl and Thomas Lamy
2
-.TH "freshclam.conf" "5" "September 2, 2004" "Thomas Lamy" "Clam AntiVirus"
3
-.SH "NAME"
4
-.LP 
5
-\fBfreshclam.conf\fR \- Configuration file for Clam AntiVirus Database Updater
6
-.SH "DESCRIPTION"
7
-.LP 
8
-The file freshclam.conf configures the Clam AntiVirus Database Updater, freshclam(1).
9
-.SH "FILE FORMAT"
10
-The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
11
-.TP 
12
-\fBSTRING\fR
13
-String without blank characters.
14
-.TP 
15
-\fBSIZE\fR
16
-Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.
17
-.TP 
18
-\fBNUMBER\fR
19
-Unsigned integer.
20
-.SH "DIRECTIVES"
21
-.LP 
22
-When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
23
-.TP 
24
-\fBExample\fR
25
-If this option is set clamd will not run.
26
-.TP 
27
-\fBDatabaseOwner STRING\fR
28
-When started by root, drop privileges to a specified user. Default is \"clamav\".
29
-.TP 
30
-\fBDatabaseDirectory STRING\fR
31
-Path to a directory containing database files.
32
-.br 
33
-Default: hardcoded directory
34
-.TP 
35
-\fBChecks NUM\fR
36
-Number of database checks per day. 12 is the recommended number.
37
-.TP 
38
-\fBUpdateLogFile STRING\fR
39
-Enable logging to a specified file. Highly recommended.
40
-.br 
41
-Default: disabled.
42
-.TP 
43
-\fBLogSyslog\fR
44
-Enable logging to Syslog.  May be used in combination with UpdateLogFile
45
-.br 
46
-Default: disabled.
47
-.TP 
48
-\fBLogVerbose\fR
49
-Enable verbose logging.
50
-.TP 
51
-\fBDatabaseMirror STRING\fR
52
-Server name where database updates are downloaded from. The default is database.clamav.net, which points to all official mirrors.
53
-.br .
54
-If this option is given multiple times, freshclam(1) tries them in the order given if one download fails.
55
-.br 
56
-There is no default, which results in an error when running freshclam(1).
57
-.TP 
58
-\fBMaxAttempts NUM\fR
59
-Freshclam(1) tries every mirror this number of times before switching to the next mirror.
60
-.br .
61
-Default is to try once per mirror.
62
-.TP 
63
-\fBHTTPProxyServer STR\fR, \fBHTTPProxyPort NUM\fR
64
-Use given proxy server and TCP port for database downloads.
65
-.TP 
66
-\fBHTTPProxyUsername STR\fR,\fBHTTPProxyPassword STR\fR
67
-Proxy usage is authenticated through given username and password.
68
-.br .
69
-Default: no proxy authentication
70
-.TP 
71
-\fBNotifyClamd \[STRING\]\fR
72
-Notify a running clamd(8) to reload it\'s database after a download has occured. Optionally a clamd.conf(5) file location may be given to tell freshclam(1) how to communicate with clamd(8).
73
-.br .
74
-The default is to not notify clamd. See clamd.conf(5)\'s option SelfCheck for how clamd(8) handles database updates in this case.
75
-.TP 
76
-\fBOnUpdateExecute STRING\fR
77
-Execute this command after the database has been successfully updated.
78
-.TP 
79
-\fBOnErrorExecute\fR
80
-Execute this command after a database update has failed.
81
-.SH "NOTE"
82
-While not reasonable, any configuration option from clamd.conf(5) may be given.
83
-.SH "FILES"
84
-.LP 
85
-/usr/local/etc/freshclam.conf
86
-.br 
87
-/etc/clamav/freshclam.conf
88
-.SH "AUTHOR"
89
-.LP 
90
-Thomas Lamy <thomas.lamy@netwake.de>
91
-.SH "SEE ALSO"
92
-.LP 
93
-freshclam(1), clamd.conf(5), clamd(8), clamscan(1)
94
-
95 1
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+Makefile
0 1
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+.deps
1
+.libs
2
+Makefile
3
+freshclam
0 4
new file mode 100644
... ...
@@ -0,0 +1,5 @@
0
+*.lo
1
+.deps
2
+.libs
3
+Makefile
4
+libclamav.la
... ...
@@ -53,4 +53,17 @@
53 53
 # endif
54 54
 #endif
55 55
 
56
+/*
57
+** Interix Support: Brian A. Reiter <breiter@wolfereiter.com>
58
+** In Interix, <sys/typedef.h> defines int64_t but not uint64_t.
59
+** Interix defines u_int64_t instead.
60
+*/
61
+#if __INTERIX
62
+#ifdef __GNUC__
63
+    typedef unsigned long long 	uint64_t;  
64
+#elif MSC_VER
65
+    typedef unsigned __int64 	uint64_t;
66
+#endif/*__GNUC__*/
67
+#endif /*Interix*/
68
+
56 69
 #endif
57 70
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+.deps
1
+.libs
2
+Makefile
3
+sigtool