From aa01641a281298fed7ae12579fa2cb2b79181797 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 31 Jul 2021 00:13:08 +0100 Subject: [PATCH] app-antivirus/clamav: [QA] call tmpfiles_process in pkg_postinst This is needed to actually apply the tmpfiles configuration we've installed in the ebuild. See tmpfiles.eclass documentation. Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sam James --- app-antivirus/clamav/clamav-0.103.2.ebuild | 6 ++++++ app-antivirus/clamav/clamav-0.103.3-r1.ebuild | 6 ++++++ app-antivirus/clamav/clamav-0.103.3.ebuild | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/app-antivirus/clamav/clamav-0.103.2.ebuild b/app-antivirus/clamav/clamav-0.103.2.ebuild index 2a26103218b36..62e7fa4618a6a 100644 --- a/app-antivirus/clamav/clamav-0.103.2.ebuild +++ b/app-antivirus/clamav/clamav-0.103.2.ebuild @@ -215,6 +215,12 @@ src_test() { } pkg_postinst() { + if ! use libclamav-only ; then + if use systemd ; then + tmpfiles_process clamav.conf + fi + fi + if use milter ; then elog "For simple instructions how to setup the clamav-milter read the" elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" diff --git a/app-antivirus/clamav/clamav-0.103.3-r1.ebuild b/app-antivirus/clamav/clamav-0.103.3-r1.ebuild index 95b7377cd0836..1eb403b442516 100644 --- a/app-antivirus/clamav/clamav-0.103.3-r1.ebuild +++ b/app-antivirus/clamav/clamav-0.103.3-r1.ebuild @@ -215,6 +215,12 @@ src_test() { } pkg_postinst() { + if ! use libclamav-only ; then + if use systemd ; then + tmpfiles_process clamav.conf + fi + fi + if use milter ; then elog "For simple instructions how to setup the clamav-milter read the" elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" diff --git a/app-antivirus/clamav/clamav-0.103.3.ebuild b/app-antivirus/clamav/clamav-0.103.3.ebuild index 2e786a0b7c00f..533e4dc2d083f 100644 --- a/app-antivirus/clamav/clamav-0.103.3.ebuild +++ b/app-antivirus/clamav/clamav-0.103.3.ebuild @@ -215,6 +215,12 @@ src_test() { } pkg_postinst() { + if ! use libclamav-only ; then + if use systemd ; then + tmpfiles_process clamav.conf + fi + fi + if use milter ; then elog "For simple instructions how to setup the clamav-milter read the" elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"