60 Commits

Author SHA1 Message Date
Paul Donald
4c35b89332 clamav: all; init; add only non-empty parameters
Gate all parameters behind -n, a not-empty check. Prevents failed starts
where daemons expect a value for a parameter.

Closes #27430
Tested-on: 24.10.3
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-02 19:52:52 -03:00
Aleksey Vasilenko
d9310f430c clamav: update to 1.4.3
update to 1.4.3

Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
2025-08-24 19:40:23 +03:00
Paul Donald
8fca946384 clamav: bump PKG_RELEASE
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Paul Donald
0becc62f82 clamav: freshclam: Add documented options
Enable syslogging

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Paul Donald
c7d23b60cb clamav: freshclam: Remove UpdateLogFile option
( to instead use syslog options )

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Paul Donald
22a05a91b2 clamav: milter: Add Debug option
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Paul Donald
921279261c clamav: Add syslogging options
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Paul Donald
1631ad8e35 clamav: Align with milter options and remove LogFile* options
( to instead use syslog options )

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Paul Donald
fc26c6b4f8 clamav: milter: Remove deprecated AllowSupplementaryGroups option
clamav-milter 1.3.0 and onward log:

WARNING: Ignoring deprecated option AllowSupplementaryGroups at /tmp/clamav/clamav-milter.conf:5

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Paul Donald
85e44b4804 clamav: Fix UCI error
Hyphens in named sections are a no-no

uci: Parse error (invalid character in name field) at line 1, byte 37

Changed '-' to '_' to fix error to allow UCI parsing.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-27 15:59:04 -07:00
Aleksey Vasilenko
b892e7274f clamav: update to 1.4.1
Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
2024-09-23 18:24:41 +08:00
Aleksey Vasilenko
fbcce64d0a clamav: update to 1.4.0
Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
2024-08-31 00:12:36 +08:00
Tianling Shen
b806d77578 clamav: add missing dependency
clamav needs rust toolchain to build, add $(RUST_ARCH_DEPENDS) to
dependencies to avoid building on unsupported architectures.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-08-05 15:44:51 +08:00
Aleksey Vasilenko
1761ed0cbe clamav: update to 1.3.1
Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
2024-07-25 16:07:06 -07:00
krant
a9a1e7c3a6 clamav: update to 1.3.0
- Add build-time Rust dependency
- Don't set default and rename changed CMake options

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-02-22 16:01:54 -08:00
Andre Heider
e7d9c86503 treewide: refactor to use PKG_BUILD_FLAGS:=lto
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This
fixes it and properly enables LTO.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Andre Heider
35f4ef76e0 treewide: refactor to use PKG_BUILD_FLAGS:=gc-sections
See commit da370098 "treewide: add support for "gc-sections" in
PKG_BUILD_FLAGS" on the main repository.

Note: This only touches packages which use all three parts
(-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by
this build flag. Some packages only use a subset, and these are left
unchanged for now.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Michal Vasilek
ba879a144d clamav: update to 0.104.4
* remove upstreamed 100-cmake-fix-findcurses.patch

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2023-02-23 17:27:33 +01:00
Rosen Penev
1e0aa44ce2 clamav: remove now obsolete iconv patch
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-13 23:35:25 -08:00
Rosen Penev
598bf7936a clamav: fix compilation without libiconv-stub
Ported similar patch from hidapi.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-08 23:43:54 -07:00
Marko Ratkaj
1981ca782e clamav: update maintainer email
Signed-off-by: Marko Ratkaj <markoratkaj@gmail.com>
2022-03-31 12:50:08 +02:00
Josef Schlehofer
eddbb64bc9 clamav: update to version 0.104.2
Backported upstream pending pull request to fix following error:

CMake Error at /foo/staging_dir/host/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find CURSES (missing: CURSES_LIBRARY)

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-01-28 15:22:32 +01:00
Lucian Cristian
44eb2ae619 clamav: update to 0.104.0
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2021-09-19 15:19:16 -07:00
Rosen Penev
2a685d665c clamav: update to 0.103.3
Switch to AUTORELEASE for simplicity.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-21 00:13:57 -07:00
Rosen Penev
2e654b19f3 treewide: back to cmake.mk
Ninja was merged to base and therefore we can now use normal cmake.mk

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-12 21:05:01 -07:00
Josef Schlehofer
87be6ffe60 clamav: add libiconv dependencies when build with NLS
NLS means Native Language Support and when you have it enabled (it is
not default), clamav can not be compiled as it shows following error:

Package clamav is missing dependencies for the following libraries:
libiconv.so.2

Also, it is required that package libiconv-full is compiled first/before
than clamav and then try to compile clamav.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-04-15 09:44:30 +02:00
Rosen Penev
a31b732007 treewide: build CMake projects with Ninja
faster to compile.

A small selection of packages was tested going from:

Executed in  696.30 secs   fish           external
   usr time   82.98 mins  395.00 micros   82.98 mins
   sys time    9.02 mins    0.00 micros    9.02 mins

to:

Executed in  592.20 secs   fish           external
   usr time   84.84 mins  361.00 micros   84.84 mins
   sys time    8.85 mins   57.00 micros    8.85 mins

Tested by running make -j 12 and wiping staging/build_dir/target_x

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-27 21:51:50 -07:00
Rosen Penev
7cd687cb7e clamav: update to 0.103.1
Convert to using CMake in order to speed up compilation and to fix
compilation under glibc.

Add extra dependencies since they're now needed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-05 01:19:30 -08:00
Jan Pavlinec
d8f5c577a9 clamav: update to version 0.103.0
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2021-01-25 15:14:50 +01:00
W. Michael Petullo
54016ddaf4 clamav: allow configuration to use TCP socket
Something having to do with passing a file descriptor over spamd's
Unix socket causes the ClamAV milter to fail. The milter says "ERROR:
Unknown reply from clamd," and running strace on spamd reveals "No file
descriptor received. ERROR."

Some work by others can be found on the Internet that suggests using
a TCP socket for the communication between the milter and spamd fixes
this. Lucian Cristian confirmed this on OpenWrt.

I am not sure why the Unix socket does not work. I suspect it is something
related to musl, but I have not yet found evidence of this.

This merge request adds the option to configure spamd to use a TCP
socket, and it uses this as the default. The merge request also adds an
init script for clamav-milter.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-01-09 18:29:46 -06:00
Jan Pavlinec
5d7164aaba clamav: update to version 0.102.4 (security fix)
Fixes
CVE-2020-3481

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-07-30 15:28:52 +02:00
Jan Pavlinec
168efe753d clamav: update to version 0.102.3 (security fix)
Fixes:
CVE-2020-3341
CVE-2020-3327

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-05-25 15:13:51 +02:00
Huangbin Zhan
0ec746ccb6 treewide: add conffiles
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
2020-05-09 06:06:43 +08:00
Lucian Cristian
24eeea366d clamav: update to 0.102.2
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2020-03-25 21:19:01 +02:00
Rosen Penev
2707a95d31 clamav: Shellcheck fixes
Fix SC2129

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-11-23 18:55:22 +01:00
Josef Schlehofer
c7ad27ebbd clamav: Update to version 0.101.4
Change deprecated options to a new one:
DetectBrokenExecutables to AlertBrokenExecutables
ArchiveBlockEncrypted to AlertEncrypted

Fixes: CVE-2019-12900 and CVE-2019-12625

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-11-23 18:55:22 +01:00
Josef Schlehofer
e19f753be5 clamav: update to version 0.101.3
Correct SPDX License Identifier

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-08-17 21:19:24 +02:00
Eneas U de Queiroz
815e05e38e clamav: don't install dev files into package
This avoids copying /usr/include, unversioned *.so files, pkgconfig,
/usr/lib/*.la, and the build-time libs/cflags configuration utility
clamav-config.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-08-14 09:20:27 -03:00
Eneas U de Queiroz
199ccc9475 clamav: avoid host pickup of libxml2
If libxml2 is installed in the host, then the host library is used and
compilation fails.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-08-14 09:20:27 -03:00
Rosen Penev
012e4c1d7f clamav: Remove build hacks
Simplified the Makefile and fixes compilation with uClibc-ng. Also added
IPv6 support.

Took the time to clean up the Makefile with other useful options.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-05-19 13:52:19 -07:00
Lucian Cristian
c70dd66691 clamav: update package to 0.101.2
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2019-04-07 23:55:56 +03:00
Jeffery To
9a7ffc7703 clamav: Update init scripts
This replaces the use of uci_validate_section() with
uci_load_validate(), which removes the need to declare local variables
for every config option.

This also removes some unnecessary curly brackets.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-02-01 16:39:34 +08:00
Rosen Penev
b8b9bc893b clamav: Update to 0.101.1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-19 22:16:49 -08:00
Rosen Penev
2c33e9f0eb clamav: Fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-06 21:09:23 -08:00
Rosen Penev
ac848c2af3 clamav: Change depends from uclibcxx to CXX_DEPENDS
The build system allows changing uclibc++ to libstdcpp globally. This
avoids an unnecessary depends in the case of libstdcpp usage.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-21 10:51:02 +08:00
Lucian Cristian
eefb46c590 clamav: update to 0.101.0
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2018-12-11 00:15:53 +02:00
Eneas U de Queiroz
3c1ca3b7d3 clamav: fixup disabling xml
--disable-xml is not doing its job, but--with-xml=no works.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-12-07 21:43:31 -02:00
Rosen Penev
c943833739 clamav: Update to 0.100.2
Fixes CVE-2018-15378. Added PKG_CPE_ID for proper CVE tracking.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-10-23 10:01:49 +08:00
Lucian Cristian
f8d6b64f7b clamav: enable clamav-milter
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2018-08-29 15:04:45 +03:00
Lucian Cristian
99eb143b66 clamav: update to 0.100.1
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2018-07-15 22:31:45 +03:00