|
@@ -8,7 +8,7 @@
|
|
|
Summary: Clam AntiVirus
|
|
|
Summary(ja): Clamアンチウィルススキャナ
|
|
|
Name: clamav
|
|
|
-Version: 1.4.1
|
|
|
+Version: 1.4.2
|
|
|
Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
Group: security
|
|
|
Vendor: Project Vine
|
|
@@ -168,18 +168,19 @@ sed -ri \
|
|
|
-e 's!^Example!#Example!' \
|
|
|
-e 's|^#UpdateLogFile .*$|UpdateLogFile /var/log/clamav/freshclam.log|' \
|
|
|
%{buildroot}%_sysconfdir/freshclam.conf.sample
|
|
|
-
|
|
|
+#
|
|
|
sed -ri \
|
|
|
-e 's!^Example!#Example!' \
|
|
|
-e 's!^#?(LogFile ).*!#\1/var/log/clamav/clamd.log!g' \
|
|
|
-e 's!^#?(LocalSocket ).*!#\1%{_rundir}/clamav/clamd.sock!g' \
|
|
|
-e 's! /usr/local/share/clamav,! %{_sharedstatedir}/clamav,!g' \
|
|
|
%{buildroot}%_sysconfdir/clamd.conf.sample
|
|
|
-
|
|
|
+#
|
|
|
%if %{with systemd}
|
|
|
sed -i -e 's|^#PidFile /var/run/|PidFile %{_rundir}/clamav/|' \
|
|
|
%{buildroot}%{_sysconfdir}/clamd.conf.sample \
|
|
|
%{buildroot}%{_sysconfdir}/freshclam.conf.sample
|
|
|
+#
|
|
|
%else
|
|
|
sed -i -e 's|^#PidFile /var/run/|PidFile %{_localstatedir}/run/clamav/|' \
|
|
|
%{buildroot}%{_sysconfdir}/clamd.conf.sample \
|
|
@@ -194,13 +195,14 @@ sed -ri \
|
|
|
-e 's!^Example!#Example!' \
|
|
|
-e 's|^#LogFile .+$|LogFile /var/log/clamav/clamav-milter.log|' \
|
|
|
%{buildroot}%{_sysconfdir}/clamav-milter.conf.sample
|
|
|
-
|
|
|
+#
|
|
|
%if %{with systemd}
|
|
|
install -Dpm 0644 %{SOURCE330} %{buildroot}%{_unitdir}/clamav-milter.service
|
|
|
sed -ri \
|
|
|
-e 's|^#PidFile .+$|PidFile /run/clamav/clamav-milter.pid|' \
|
|
|
%{buildroot}%{_sysconfdir}/clamav-milter.conf.sample
|
|
|
install -m644 %{SOURCE7} %{buildroot}%{_sysconfdir}/logrotate.d/clamav-milter
|
|
|
+#
|
|
|
%else
|
|
|
install -m755 %{SOURCE3} %{buildroot}%{_initdir}/clamav-milter
|
|
|
sed -ri \
|
|
@@ -303,7 +305,6 @@ fi
|
|
|
|
|
|
|
|
|
%files
|
|
|
-%defattr(-,root,root)
|
|
|
%license COPYING*
|
|
|
%doc NEWS* README* examples
|
|
|
%doc pkgdoc/*
|
|
@@ -336,7 +337,6 @@ fi
|
|
|
|
|
|
%if %{?milter}
|
|
|
%files milter
|
|
|
-%defattr(-,root,root)
|
|
|
%if %{with systemd}
|
|
|
%{_unitdir}/clamav-milter.service
|
|
|
%else
|
|
@@ -349,7 +349,6 @@ fi
|
|
|
%endif
|
|
|
|
|
|
%files devel
|
|
|
-%defattr(-,root,root)
|
|
|
%{_bindir}/clamav-config
|
|
|
%{_libdir}/lib*.so
|
|
|
%exclude %{_libdir}/libclamunrar_iface.so
|
|
@@ -358,6 +357,9 @@ fi
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Jan 31 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.2-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Thu Sep 05 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.1-1
|
|
|
- new upstream release.
|
|
|
|