From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DNS_FROM_OPENWHOIS, DNS_FROM_RFC_DSN autolearn=no version=3.2.5 Message-ID: <4C2AF4B0.90509@ukr.net> Date: Wed, 30 Jun 2010 10:39:28 +0300 From: Vaso VV User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10pre) Gecko/20100406 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: sysadmins@lists.altlinux.org References: <4C21CBB3.8020608@ukr.net> <4C230647.8010804@ukr.net> <4C231AD7.1060107@gmail.com> <4C2351E6.5030009@ukr.net> <4C235823.1020703@gmail.com> In-Reply-To: <4C235823.1020703@gmail.com> Content-Type: multipart/mixed; boundary="------------040903030503020802050105" Subject: Re: [Sysadmins] =?koi8-r?b?U3F1aWQsINfJ0tXT2SDJIMXdoyDe1M8t1M8=?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux sysadmins' discussion List-Id: ALT Linux sysadmins' discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 07:39:39 -0000 Archived-At: List-Archive: This is a multi-part message in MIME format. --------------040903030503020802050105 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit здесь взял исходники: http://sourceforge.net/projects/squidclamav/files/squidclamav/5.3/squidclamav-5.3.tar.gz/download отсюда взял спек: > http://filebin.ca/sxsjz/squidclamav-3.9-alt0.1.src.rpm интуитивно его подправил, собралось* squidclamav-5.3, вроде работает (во всяком случае вирей с eicar распознаёт). * - собирается только в присутствии /etc/squidclamav.conf, c clwarn.cgi.pt_BR собрать не удалось (исключил). ЕСЛИ доработать (у меня пока скилов не хватает): 1. хаутушки (хороши, потому что русский, вот только бы немного освежить); 2. в squidclamav.conf добавить значение для работы "из коробки": logfile /var/log/squidclamav/squidclamav.log clamd_local /var/lib/clamav/clamd.socket 3. Чтобы *.cgi попали в /var/www/cgi-bin 4. Где-то БОЛЬШИМИ КРАСНЫМИ БУКВАМИ написать, что с localhost работоспособность squidclamav + squid проверить нельзя - будет много: CURLOPT_ERRORBUFFER: Operation timed out after 60001 milliseconds with 0 bytes received потому и redirector_access deny localhost в squid.conf ТО получим отличное решение для прикручивания squid к clamav. -- WBR........[x] TFTHAOT....[ ] AMF........[ ] --------------040903030503020802050105 Content-Type: text/plain; name="squidclamav.spec" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="squidclamav.spec" Name: squidclamav Version: 5.3 Release: alt0.1 Summary: Squid ClamAV, is a Squid helper Script, to get Virus scanning for defined Extensions License: GPLv3 Group: Monitoring Url: http://squidclamav.darold.net/ Packager: SomeOne Source: http://sourceforge.net/projects/squidclamav/files/%name/%version/%name-%version.tar.gz Source1: squidclamav-README.koi8-r Source2: squidclamav-README.utf8 Requires: clamav squid perl-CGI BuildRequires: libcurl-devel %description SquidClamAV is a Squid helper script which adds virus scanning for defined filename extensions. It has been tested with ClamAV, and Squid. Squid has to be configured to use "redirect_program" and to either deny access to a URL defined in the SquidClamAV configuration or to redirect to a remote Site which displays an error (and some information). SquidClamAV handles the request as given from Squid, downloads the URL, and scans it for known viruses. It rewrites the URL from Squid to a blocked URL or an information page with information about the scanning results. %prep %setup %build %configure %make_build %install mkdir -p %buildroot%_sysconfdir mkdir -p %buildroot%_logdir/%name install -m644 %SOURCE1 README.koi8-r install -m644 %SOURCE2 README.utf8 install -Dp -m 0644 etc/squidclamav.conf %buildroot%_sysconfdir/squidclamav.conf %makeinstall %files %doc INSTALL COPYING ChangeLog *README* %_bindir/* %_sysconfdir/squidclamav.conf %_mandir/* %_datadir/* %_libdir/%name/* %exclude %_libdir/%name/clwarn.cgi.pt_BR %dir %attr (0750,squid,squid) %_logdir/%name %changelog * Thu Jun 24 2010 SomeOne SomeOne 5.3-alt0.1 - New version * Wed Jan 21 2009 Motsyo Gennadi 3.9-alt0.1 - New version * Thu Oct 23 2008 Motsyo Gennadi 3.7-alt0.1 - New version * Wed May 07 2008 Motsyo Gennadi 3.5-alt0.1 - New version - Added README in UTF8 * Thu Nov 08 2007 Motsyo Gennadi 3.2-alt1 - New version * Mon Oct 08 2007 Grigory Fateyev 3.1-alt1 - New version for Sisyphus * Fri Jun 22 2007 Grigory Fateyev 3.0-alt1.M30 - Initial build for ALC 3.0 --------------040903030503020802050105--