clamav: updated reciped
PATCH 1/1 clamav: updated reciped
added packaged define and init scripts.
patches are all debian
--- ...paths-in-sample-conf-file-to-match-Debian.patch | 40 + ...itional-n-after-the-number-in-the-pidfile.patch | 56 + ...increment-test-timeout-from-40secs-to-5mi.patch | 30 + .../clamav-0.98.5/0004-Fix-compiling-on-Hurd.patch | 50 + .../0005-Workaround-a-bug-in-libc-on-Hurd.patch | 35 + ...necessary-harmful-flags-from-libclamav.pc.patch | 22 + .../0007-libclamav-use-libmspack.patch | 4042 ++ ...m-systemd-support-for-clamav-daemon-and-c.patch | 655 + ...-fix-ssize_t-size_t-off_t-printf-modifier.patch | 478 + ...VM-linker-flag-because-llvm-config-return.patch | 26 + ...ck-library-from-upstream-without-unnecess.patch | 56090 +++++++++++++++++++ ...e-internal-libmspack-if-the-external-is-n.patch | 106 + ...13-fix-autoreconf-with-embedded-libmspack.patch | 27 + ...ONFIG_SRCDIR-llvm-configure-from-libclama.patch | 23 + ...low-to-specificy-a-group-for-the-socket-o.patch | 229 + ...er-add-additinal-SMFIF_-flags-before-invo.patch | 86 + .../0017-Bump-.so-version-number.patch | 22 + .../0018-llvm-don-t-use-system-libs.patch | 26 + .../clamav-0.98.5/clamav-0001-clamdscan.patch | 21 + .../clamav/clamav-0.98.5/clamav-freshclam.service | 12 + .../clamav/clamav-0.98.5/clamav-milter.conf.sample | 293 + .../clamav/clamav-0.98.5/clamav.service | 17 + recipes-security/clamav/clamav-0.98.5/clamd.conf | 595 + .../clamav/clamav-0.98.5/freshclam.conf | 224 + recipes-security/clamav/clamav-0.98.5/series | 18 + .../clamav/clamav-0.98.5/volatiles.03_clamav | 3 + recipes-security/clamav/clamav_0.98.5.bb | 135 + 27 files changed, 63361 insertions(+) create mode 100644 recipes-security/clamav/clamav-0.98.5/0001-Change-paths-in-sample-conf-file-to-match-Debian.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0003-unit_tests-increment-test-timeout-from-40secs-to-5mi.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0004-Fix-compiling-on-Hurd.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0006-remove-unnecessary-harmful-flags-from-libclamav.pc.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0007-libclamav-use-libmspack.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0008-Add-upstream-systemd-support-for-clamav-daemon-and-c.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0009-fix-ssize_t-size_t-off_t-printf-modifier.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0010-hardcode-LLVM-linker-flag-because-llvm-config-return.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0011-Add-libmspack-library-from-upstream-without-unnecess.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0012-allow-to-use-internal-libmspack-if-the-external-is-n.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0013-fix-autoreconf-with-embedded-libmspack.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0014-remove-AC_CONFIG_SRCDIR-llvm-configure-from-libclama.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0015-bb-10731-Allow-to-specificy-a-group-for-the-socket-o.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0016-clamav-milter-add-additinal-SMFIF_-flags-before-invo.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0017-Bump-.so-version-number.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/0018-llvm-don-t-use-system-libs.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/clamav-0001-clamdscan.patch create mode 100644 recipes-security/clamav/clamav-0.98.5/clamav-freshclam.service create mode 100644 recipes-security/clamav/clamav-0.98.5/clamav-milter.conf.sample create mode 100644 recipes-security/clamav/clamav-0.98.5/clamav.service create mode 100644 recipes-security/clamav/clamav-0.98.5/clamd.conf create mode 100644 recipes-security/clamav/clamav-0.98.5/freshclam.conf create mode 100644 recipes-security/clamav/clamav-0.98.5/series create mode 100644 recipes-security/clamav/clamav-0.98.5/volatiles.03_clamav create mode 100644 recipes-security/clamav/clamav_0.98.5.bb
recipes-security/clamav/clamav-0.98.5/0001-Change-paths-in-sample-conf-file-to-match-Debian.patch new file +40 -0
@@ -0,0 +1,40 @@ +From a6d6189e25d0a1053dc1aaff1b4c71f84b4599cf Mon Sep 17 00:00:00 2001 +From: Scott Kitterman <[email protected]> +Date: Mon, 10 Mar 2014 19:20:18 -0400 +Subject: Change paths in sample conf file to match Debian + +--- + etc/clamav-milter.conf.sample | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/etc/clamav-milter.conf.sample b/etc/clamav-milter.conf.sample +index b7d66a4f9641..ed0d519ffb9b 100644 +--- a/etc/clamav-milter.conf.sample ++++ b/etc/clamav-milter.conf.sample +@@ -64,7 +64,7 @@ Example + # daemon (main thread). + # + # Default: disabled +-#PidFile /var/run/clamav-milter.pid ++#PidFile /var/run/clamav/clamav-milter.pid + + # Optional path to the global temporary directory. + # Default: system specific (usually /tmp or /var/tmp). +@@ -90,7 +90,7 @@ Example + # with the same socket: clamd servers will be selected in a round-robin fashion. + # + # Default: no default +-#ClamdSocket tcp:scanner.mydomain:7357 ++ClamdSocket /var/run/clamav/clamd + + + ## +@@ -212,7 +212,7 @@ Example + # A full path is required. + # + # Default: disabled +-#LogFile /tmp/clamav-milter.log ++#LogFile /var/log/clamav/clamav-milter.log + + # By default the log file is locked for writing - the lock protects against + # running clamav-milter multiple times.
recipes-security/clamav/clamav-0.98.5/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch new file +56 -0
56 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0003-unit_tests-increment-test-timeout-from-40secs-to-5mi.patch new file +30 -0
@@ -0,0 +1,30 @@ +From d5febd3fab63a6dc4af148ab1b94fe8a85412b46 Mon Sep 17 00:00:00 2001 +From: Sebastian Andrzej Siewior <[email protected]> +Date: Fri, 25 Apr 2014 22:06:23 +0200 +Subject: unit_tests: increment test-timeout from 40secs to 5mins + +I see now and then that tests on the slower archs (arm*, mips) fail due to +the timeout restriction. Often a second build even on the same buildd +succeeds. I think that the buildd is either close to the limit or has +something else (another sbuild running) going so it does not finish the +test in 40secs. +Therefore I raise the bar to a 5 minutes limit. The worst thing that can +happen is, that it takes more than 4 minutes before an enless loop will +be detected. + +Signed-off-by: Sebastian Andrzej Siewior <[email protected]> +--- + unit_tests/preload_run.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/unit_tests/preload_run.sh b/unit_tests/preload_run.sh +index 8b8c8e3954dd..365b3a8e0edb 100755 +--- a/unit_tests/preload_run.sh ++++ b/unit_tests/preload_run.sh +@@ -5,5 +5,5 @@ + ulimit -c 0 || true + LD_PRELOAD=$LIBPRELOAD + export LD_PRELOAD +-export CK_DEFAULT_TIMEOUT=40 ++export CK_DEFAULT_TIMEOUT=300 + exec $@
recipes-security/clamav/clamav-0.98.5/0004-Fix-compiling-on-Hurd.patch new file +50 -0
50 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch new file +35 -0
@@ -0,0 +1,35 @@ +From b8e7d19ec50c30c59fa1038cd9da6d37c2176833 Mon Sep 17 00:00:00 2001 +From: Andreas Cadhalpun <[email protected]> +Date: Sat, 21 Jun 2014 17:02:06 +0200 +Subject: Workaround a bug in libc on Hurd + +The send() function, when asked to send 0 characters, doesn't trigger a corresponding recv(), except on Hurd. + +This breaks the communication between clamd and clamdscan. + +See: https://bugs.debian.org/752237 +--- + clamd/scanner.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/clamd/scanner.c b/clamd/scanner.c +index cd3d07c4ad3e..d531c4420686 100644 +--- a/clamd/scanner.c ++++ b/clamd/scanner.c +@@ -119,6 +119,7 @@ int scan_callback(STATBUF *sb, char *filename, const char *msg, enum cli_ftw_rea + + /* detect disconnected socket, + * this should NOT detect half-shutdown sockets (SHUT_WR) */ ++#if !defined(__GNU__) + if (send(scandata->conn->sd, &ret, 0, 0) == -1 && errno != EINTR) { + logg("$Client disconnected while command was active!\n"); + thrmgr_group_terminate(scandata->conn->group); +@@ -126,7 +127,7 @@ int scan_callback(STATBUF *sb, char *filename, const char *msg, enum cli_ftw_rea + free(filename); + return CL_BREAK; + } +- ++#endif + if (thrmgr_group_need_terminate(scandata->conn->group)) { + logg("^Client disconnected while scanjob was active\n"); + if (reason == visit_file)
recipes-security/clamav/clamav-0.98.5/0006-remove-unnecessary-harmful-flags-from-libclamav.pc.patch new file +22 -0
@@ -0,0 +1,22 @@ +From 0fd50756af998fabc3393f67ff8b78a4855303d9 Mon Sep 17 00:00:00 2001 +From: Andreas Cadhalpun <[email protected]> +Date: Mon, 4 Aug 2014 22:44:40 +0200 +Subject: remove unnecessary/harmful flags from libclamav.pc + +--- + libclamav.pc.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libclamav.pc.in b/libclamav.pc.in +index 27db30e757ff..19ef1e4e0399 100644 +--- a/libclamav.pc.in ++++ b/libclamav.pc.in +@@ -6,6 +6,6 @@ includedir=@includedir@ + Name: libclamav + Description: A GPL virus scanner + Version: @PACKAGE_VERSION@ +-Libs: -L${libdir} -lclamav @LIBCLAMAV_LIBS@ +-Cflags: -I${includedir} @CFLAGS@ ++Libs: -L${libdir} -lclamav ++Cflags: -I${includedir} +
recipes-security/clamav/clamav-0.98.5/0007-libclamav-use-libmspack.patch new file +4042 -0
2,767 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0008-Add-upstream-systemd-support-for-clamav-daemon-and-c.patch new file +655 -0
655 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0009-fix-ssize_t-size_t-off_t-printf-modifier.patch new file +478 -0
478 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0010-hardcode-LLVM-linker-flag-because-llvm-config-return.patch new file +26 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/0011-Add-libmspack-library-from-upstream-without-unnecess.patch new file +56090 -0
56,090 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0012-allow-to-use-internal-libmspack-if-the-external-is-n.patch new file +106 -0
106 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0013-fix-autoreconf-with-embedded-libmspack.patch new file +27 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/0014-remove-AC_CONFIG_SRCDIR-llvm-configure-from-libclama.patch new file +23 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/0015-bb-10731-Allow-to-specificy-a-group-for-the-socket-o.patch new file +229 -0
229 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0016-clamav-milter-add-additinal-SMFIF_-flags-before-invo.patch new file +86 -0
86 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/0017-Bump-.so-version-number.patch new file +22 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/0018-llvm-don-t-use-system-libs.patch new file +26 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/clamav-0001-clamdscan.patch new file +21 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/clamav-freshclam.service new file +12 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/clamav-milter.conf.sample new file +293 -0
293 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/clamav.service new file +17 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/clamd.conf new file +595 -0
595 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/freshclam.conf new file +224 -0
224 lines not on this page · raw message
recipes-security/clamav/clamav-0.98.5/series new file +18 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav-0.98.5/volatiles.03_clamav new file +3 -0
Lines of this file are not shown. View the raw message.
recipes-security/clamav/clamav_0.98.5.bb new file +135 -0
135 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.