diff --git a/squidclamav-6.10-config.patch b/squidclamav-6.10-config.patch deleted file mode 100644 index 5374e2f..0000000 --- a/squidclamav-6.10-config.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff -Nru squidclamav-6.10.orig/etc/squidclamav.conf squidclamav-6.10/etc/squidclamav.conf ---- squidclamav-6.10.orig/etc/squidclamav.conf 2012-10-27 17:35:50.000000000 +0200 -+++ squidclamav-6.10/etc/squidclamav.conf 2013-03-27 19:49:41.902943626 +0100 -@@ -14,16 +14,16 @@ - maxsize 5000000 - - # When a virus is found then redirect the user to this URL --redirect http://proxy.domain.dom/cgi-bin/clwarn.cgi -+redirect http://localhost/cgi-bin/squidclamav/clwarn.cgi - - # Path to the squiGuard binary if you want URL filtering, note that you'd better - # use the squid configuration directive 'url_rewrite_program' instead. --#squidguard /usr/local/squidGuard/bin/squidGuard -+#squidguard /usr/bin/squidGuard - - # Path to the clamd socket, use clamd_local if you use Unix socket or if clamd - # is listening on an Inet socket, comment clamd_local and set the clamd_ip and - # clamd_port to the corresponding value. --clamd_local /var/run/clamav/clamd.ctl -+clamd_local /var/run/clamav/clamd.socket - #clamd_ip 192.168.1.5,127.0.0.1 - #clamd_port 3310 - diff --git a/squidclamav-7.2-config.patch b/squidclamav-7.2-config.patch new file mode 100644 index 0000000..e74611d --- /dev/null +++ b/squidclamav-7.2-config.patch @@ -0,0 +1,17 @@ +--- squidclamav-7.2/etc/squidclamav.conf.orig 2023-08-05 19:41:18.097806854 +0200 ++++ squidclamav-7.2/etc/squidclamav.conf 2023-08-05 19:43:07.748235461 +0200 +@@ -17,12 +17,12 @@ + + # When a virus is found then redirect the user to this URL. If this directive + # is disabled squidclamav will use c-icap error templates to report issues. +-redirect http://proxy.domain.dom/cgi-bin/clwarn.cgi ++redirect http://localhost/cgi-bin/squidclamaw/clwarn.cgi + + # Path to the clamd socket, use clamd_local if you use Unix socket or if clamd + # is listening on an Inet socket, comment clamd_local and set the clamd_ip and + # clamd_port to the corresponding value. +-clamd_local /var/run/clamav/clamd.ctl ++clamd_local /var/run/clamav/clamd.socket + #clamd_ip 192.168.1.5,127.0.0.1 + #clamd_port 3310 + diff --git a/squidclamav.spec b/squidclamav.spec index cdba504..cae17ba 100644 --- a/squidclamav.spec +++ b/squidclamav.spec @@ -1,34 +1,36 @@ Name: squidclamav -Version: 6.11 +Version: 7.2 Release: 1mamba Summary: A dedicated ClamAV antivirus redirector for Squid Group: Network/Security Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://sourceforge.net/projects/squidclamav/ +URL: https://sourceforge.net/projects/squidclamav/ Source: http://downloads.sourceforge.net/project/squidclamav/squidclamav/%{version}/squidclamav-%{version}.tar.gz Patch0: %{name}-6.2-cgi-it_IT.patch -Patch1: %{name}-6.10-config.patch +Patch1: %{name}-7.2-config.patch License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: c-icap-devel BuildRequires: glibc-devel +BuildRequires: libarchive-devel +BuildRequires: libbzip2-devel +BuildRequires: libz-devel +BuildRequires: perl-CGI BuildRequires: perl-devel ## AUTOBUILDREQ-END Requires(pre): squid Requires: clamd Requires: clamav Requires(pre): c-icap -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description SquidClamAv is a dedicated ClamAV antivirus redirector for Squid. It can run antivirus checks based on filename regex, content-type regex, and more. It is easy to install and works even with heavy Squid access. %prep %setup -q -%patch0 -p1 -%patch1 -p1 +%patch 0 -p1 +%patch 1 -p1 %build %configure \ @@ -77,9 +79,8 @@ fi %files %defattr(-,root,root) -%config(noreplace) %{_sysconfdir}/squidclamav.conf -%{_sysconfdir}/squidclamav.conf.default -%{_libdir}/c_icap/squidclamav.la +%{_sysconfdir}/c-icap/squidclamav.conf +%{_sysconfdir}/c-icap/squidclamav.conf.default %{_libdir}/c_icap/squidclamav.so %{_datadir}/c_icap/templates/squidclamav/en/MALWARE_FOUND %attr(0755,root,root) /var/www/cgi-bin/squidclamav/clwarn.cgi* @@ -87,6 +88,9 @@ fi %doc AUTHORS COPYING ChangeLog README %changelog +* Tue Aug 08 2023 Automatic Build System 7.2-1mamba +- automatic version update by autodist + * Sun Mar 23 2014 Automatic Build System 6.11-1mamba - automatic update by autodist