diff --git a/clamav-unofficial-sigs.spec b/clamav-unofficial-sigs.spec index 5db192d..53335b1 100644 --- a/clamav-unofficial-sigs.spec +++ b/clamav-unofficial-sigs.spec @@ -14,7 +14,7 @@ Summary: Scripts to download unofficial clamav signatures Group: Applications/System License: BSD URL: https://github.com/extremeshok/%{name} -Source0: https://github.com/extremeshok/%{name}/archive/%{version}.tar.gz +Source0: https://github.com/extremeshok/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Source1: clamav-unofficial-sigs.cron Source2: clamav-unofficial-sigs.logrotate Source3: clamav-unofficial-sigs.man8 @@ -53,6 +53,8 @@ sed -i -e '/^#pkg_mgr/ s/^#//;s/""/"yum"/' config/master.conf %else sed -i -e '/^#pkg_mgr/ s/^#//;s/""/"dnf"/' config/master.conf %endif +# Fix script path +sed -i -e '/ExecStart=/ s^/usr/local/sbin^%{_sbindir}^ systemd/clamav-unofficial-sigs.service # Disable yara rules sed -i -e '/^enable_yararules/ s/yes/no/' config/master.conf sed -i -e '/^clamd_restart_opt/ s/systemctl restart/systemctl try-restart/' config/os/os.centos7.conf