Name: squidguard Version: 1.6.0 Release: 1mamba Summary: An ultrafast and free filter, redirector and access controller for Squid Group: Network/Monitoring Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://web.archive.org/web/20220728071047/http://www.squidguard.org/ Source: https://launchpad.net/debian/+archive/primary/+sourcefiles/squidguard/%{version}-1/squidguard_%{version}.orig.tar.gz #Source: http://www.squidguard.org/Downloads/squidGuard-%{version}.tar.gz Source3: squidGuard.cgi Patch0: squidGuard-1.4-patch-20091015.patch Patch1: squidGuard-1.4-patch-20091019.patch Patch2: squidGuard-1.4-configdir.patch Patch3: squidGuard-1.4-cgi_it.patch Patch4: squidguard-1.6.0-gcc10.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libdb53-devel BuildRequires: libopenldap-devel BuildRequires: libperl BuildRequires: perl-devel ## AUTOBUILDREQ-END Requires(post):squid Requires: apache Requires: squidguard_blacklists Provides: squidGuard Obsoletes: squidGuard < 1.6.0 %description SquidGuard is an ultrafast and free filter, redirector and access controller for Squid. %prep %setup -q #%patch0 -p0 #%patch1 -p0 %patch2 -p1 #%patch3 -p1 %patch4 -p0 -b .gcc10 #sed -i "s|-ldb|-ldb-4.8|" configure ./autogen.sh %build %configure \ --sysconfdir=%{_sysconfdir}/squid \ --with-ldap \ --with-sg-config=%{_sysconfdir}/squid/squidGuard.conf \ --with-sg-dbhome=/var/lib/squidGuard \ --with-sg-logdir=/var/log/squid/ # --with-mysql \ # --with-db=%{_prefix} \ # --with-db-inc=%{_includedir}/db4 \ %make cd samples make clean make cd .. %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeoldinstall SQUIDUSER=`id -u` \ dbhomedir=%{buildroot}/var/lib \ configfile=%{buildroot}%{_sysconfdir}/squid/squidGuard.conf.sample install -D -m0755 samples/squidGuard.cgi %{buildroot}/var/www/cgi-bin/squidGuard.cgi cp -a samples/babel.* %{buildroot}/var/www/cgi-bin/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -ge 1 ]; then grep squidGuard %{_sysconfdir}/squid/squid.conf &>/dev/null || { cat >> %{_sysconfdir}/squid/squid.conf << _EOF #url_rewrite_program %{_bindir}/squidGuard -c %{_sysconfdir}/squid/squidGuard.conf #url_rewrite_children 5 _EOF } # service squid status >/dev/null # [ $? -eq 0 ] && service squid reload fi : %preun # uninstall if [ $1 -eq 0 ]; then sed -i '/^url_rewrite_program .*/d' %{_sysconfdir}/squid/squid.conf sed -i '/^url_rewrite_children .*/d' %{_sysconfdir}/squid/squid.conf #service squid status >/dev/null #[ $? -eq 0 ] && service squid reload fi : %files %defattr(-,root,root) %{_sysconfdir}/squid/squidGuard.conf.sample %{_bindir}/squidGuard %config(noreplace) %attr(0755,root,root) %{_localstatedir}/www/cgi-bin/squidGuard.cgi %attr(0644,root,root) %{_localstatedir}/www/cgi-bin/babel.* %changelog * Sat Nov 26 2022 Silvan Calarco 1.6.0-1mamba - update to 1.6.0 * Thu Apr 28 2011 Silvan Calarco 1.4-3mamba - added patch to find configuration file without -c parameter to work with squidclamav - disable squid configuration by default to allow usage through icap and squidclamav - added italian cgi translation support and restored upstream cgi * Tue Apr 12 2011 Silvan Calarco 1.4-2mamba - added patches from official site - require external blacklist package * Mon May 18 2009 Silvan Calarco 1.4-1mamba - update to 1.4 * Thu Oct 05 2006 Davide Madrisan 1.2.0-4qilnx - database definitions updated to 20051119 - fixed compilation problems * Wed May 26 2004 Silvan Calarco 1.2.0-3qilnx - rebuilt and correctly linked with libdb3 * Wed Jan 14 2004 Silvan Calarco 1.2.0-2qilnx - changed libdir permissions from nobody.nobody to squid.squid - database definitions updated to 20040114 * Tue Jun 10 2003 Silvan Calarco 1.2.0-1qilnx - creation of squidGuard package