Created attachment 251878 [details] rename clamav rc scripts Hi, The attached patch fixes some issues with the rc script. A generic discussion about the rc scripts in the ports collection which contains a lot more background information about the "why" of this patch is at https://lists.freebsd.org/archives/freebsd-ports/2024-July/006342.html Short: - the filename shall be the same as the content of the name variable inside the script - (already OK) PROVIDE shall be the same as the content of the name variable inside the script - this fixes the use of the script with service jails (new feature in -current) Additionally to what is discussed there and fixed in the patch, I made the following additional changes: - add an UPATING entry (date needs to be adapted, this may conflict at the time when you apply/commit) You may want to run the following before applying the patch: git mv security/clamav-lts/files/clamav-clamd.in security/clamav-lts/files/clamav_clamd.in git mv security/clamav-lts/files/clamav-freshclam.in security/clamav-lts/files/clamav_freshclam.in git mv security/clamav-lts/files/clamav-milter.in security/clamav-lts/files/clamav_milter.in git mv security/clamav/files/clamav-freshclam.in security/clamav/files/clamav_freshclam.in git mv security/clamav/files/clamav-clamd.in security/clamav/files/clamav_clamd.in git mv security/clamav/files/clamav-milter.in security/clamav/files/clamav_milter.in This was run-tested with security/clamav (clamd+freshclam) inside service jails. Bye, Alexander.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=36e211c572f8b975ec8852ec394e83005cbd6385 commit 36e211c572f8b975ec8852ec394e83005cbd6385 Author: Alexander Leidinger <netchild@FreeBSD.org> AuthorDate: 2024-07-05 08:20:03 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2024-09-12 03:59:14 +0000 security/{clamav,clamav-lts}: Fix filename of the rc script to comply to the rc scripting recommendations PR: 280135 UPDATING | 17 +++++++++++++++++ security/clamav-lts/Makefile | 6 +++--- .../files/{clamav-clamd.in => clamav_clamd.in} | 0 .../files/{clamav-freshclam.in => clamav_freshclam.in} | 0 .../files/{clamav-milter.in => clamav_milter.in} | 0 security/clamav/Makefile | 6 +++--- .../clamav/files/{clamav-clamd.in => clamav_clamd.in} | 0 .../files/{clamav-freshclam.in => clamav_freshclam.in} | 0 .../clamav/files/{clamav-milter.in => clamav_milter.in} | 0 9 files changed, 23 insertions(+), 6 deletions(-)
Committed with minor change. Thanks!