Correct problem of missing datadir (/share) directory, caused by recent

Wed, 12 Sep 2012 18:46:46 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 12 Sep 2012 18:46:46 +0200
changeset 674
dd46abb0afa8
parent 673
004b21be0b4c
child 675
43d642154330

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.

clamav/clamav.spec file | annotate | diff | comparison | revisions
     1.1 --- a/clamav/clamav.spec	Wed Sep 12 18:44:33 2012 +0200
     1.2 +++ b/clamav/clamav.spec	Wed Sep 12 18:46:46 2012 +0200
     1.3 @@ -82,6 +82,9 @@
     1.4      %{l_shtool} subst \
     1.5          -e 's;lib\(milter/mfapi.h\);\1;' \
     1.6          configure
     1.7 +    %{l_shtool} subst \
     1.8 +        -e 's;test -s  *\(.*\)  *-a -s;test -e \1 -a -e;' \
     1.9 +        database/Makefile.in
    1.10  
    1.11  %build
    1.12      #   configure package
    1.13 @@ -163,7 +166,8 @@
    1.14      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    1.15          %{l_files_std} \
    1.16          '%config %{l_prefix}/etc/clamav/*.conf' \
    1.17 -        '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/clamav'
    1.18 +        '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/clamav' \
    1.19 +        '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/share/clamav'
    1.20  
    1.21  %files -f files
    1.22  

mercurial