]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - clamav/clamav.nm
clamav: Add config files for clamd and freshclam.
[ipfire-3.x.git] / clamav / clamav.nm
index 87b03272f81f83e1c471e1583bd8e098ac3d83a6..1d2d08905cafd812014e42f83c807f90b67f4832 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = clamav
 version    = 0.103.7
-release    = 3
+release    = 4
 
 groups     = System Environment/Daemons
 url        = https://www.clamav.net
@@ -61,6 +61,17 @@ build
        test
                make check
        end
+
+       install_cmds
+               # Install config files.
+               cp -avf %{DIR_SOURCE}/config/*.conf %{BUILDROOT}%{sysconfdir}
+
+               # Own the config files by the clamav user/group.
+               chown clamav.clamav %{BUILDROOT}%{sysconfdir}/*.conf
+
+               # Remove example config files.
+               rm -rvf %{BUILDROOT}%{sysconfdir}/*.example
+       end
 end
 
 create_users