# HG changeset patch # User Michael Schloh von Bennewitz # Date 1347468406 -7200 # Node ID dd46abb0afa8d820e8e63c61592c5c2df6248773 # Parent 004b21be0b4c293e28d8b44879ba679957f606bf Correct problem of missing datadir (/share) directory, caused by recent policy change of distribution of empty virus definitions in database/Makefile.in. Additionally correct the permissions of the datadir to allow freshclam(1) to properly write to it. diff -r 004b21be0b4c -r dd46abb0afa8 clamav/clamav.spec --- a/clamav/clamav.spec Wed Sep 12 18:44:33 2012 +0200 +++ b/clamav/clamav.spec Wed Sep 12 18:46:46 2012 +0200 @@ -82,6 +82,9 @@ %{l_shtool} subst \ -e 's;lib\(milter/mfapi.h\);\1;' \ configure + %{l_shtool} subst \ + -e 's;test -s *\(.*\) *-a -s;test -e \1 -a -e;' \ + database/Makefile.in %build # configure package @@ -163,7 +166,8 @@ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %{l_prefix}/etc/clamav/*.conf' \ - '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/clamav' + '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/clamav' \ + '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/share/clamav' %files -f files