git: 4fe5d8b4ed08 - main - security/{clamav,clamav-lts}: Enable configuration of malloc(3) in rc script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Oct 2025 21:47:43 UTC
The branch main has been updated by yasu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4fe5d8b4ed08c0f7a71561fa83728264c9d5981d
commit 4fe5d8b4ed08c0f7a71561fa83728264c9d5981d
Author: Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2025-09-10 17:21:00 +0000
Commit: Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2025-10-07 21:44:50 +0000
security/{clamav,clamav-lts}: Enable configuration of malloc(3) in rc script
PR: 289440
---
security/clamav-lts/Makefile | 2 +-
security/clamav-lts/files/clamav_clamd.in | 3 +++
security/clamav/Makefile | 2 +-
security/clamav/files/clamav_clamd.in | 3 +++
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/security/clamav-lts/Makefile b/security/clamav-lts/Makefile
index 4f863dabe9f6..e46831bdd85e 100644
--- a/security/clamav-lts/Makefile
+++ b/security/clamav-lts/Makefile
@@ -1,6 +1,6 @@
PORTNAME= clamav
DISTVERSION= 1.0.9
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= https://www.clamav.net/downloads/production/
diff --git a/security/clamav-lts/files/clamav_clamd.in b/security/clamav-lts/files/clamav_clamd.in
index ad640c7c45f0..0fe5f9fe2329 100644
--- a/security/clamav-lts/files/clamav_clamd.in
+++ b/security/clamav-lts/files/clamav_clamd.in
@@ -26,6 +26,7 @@ load_rc_config "$name"
: ${clamav_clamd_enable:=NO}
: ${clamav_clamd_pidfile="%%CLAMAV_CLAMD_PIDFILE%%"}
+: ${clamav_clamd_malloc_conf:=""}
command=%%PREFIX%%/sbin/clamd
pidfile=${clamav_clamd_pidfile}
@@ -45,4 +46,6 @@ clamav_clamd_precmd()
fi
}
+export MALLOC_CONF="${clamav_clamd_malloc_conf}"
+
run_rc_command "$1"
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index 413f7af43016..710969cb7519 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -1,6 +1,6 @@
PORTNAME= clamav
DISTVERSION= 1.4.3
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= https://www.clamav.net/downloads/production/
diff --git a/security/clamav/files/clamav_clamd.in b/security/clamav/files/clamav_clamd.in
index ad640c7c45f0..0fe5f9fe2329 100644
--- a/security/clamav/files/clamav_clamd.in
+++ b/security/clamav/files/clamav_clamd.in
@@ -26,6 +26,7 @@ load_rc_config "$name"
: ${clamav_clamd_enable:=NO}
: ${clamav_clamd_pidfile="%%CLAMAV_CLAMD_PIDFILE%%"}
+: ${clamav_clamd_malloc_conf:=""}
command=%%PREFIX%%/sbin/clamd
pidfile=${clamav_clamd_pidfile}
@@ -45,4 +46,6 @@ clamav_clamd_precmd()
fi
}
+export MALLOC_CONF="${clamav_clamd_malloc_conf}"
+
run_rc_command "$1"