Group :: System/Servers
RPM: squidGuard
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: squidGuard
Version: 1.2.0
Release: alt7
%define _dbhomedir %_localstatedir/%name
Summary: Filter, redirector and access controller plugin for squid
License: GPL
Group: System/Servers
Url: http://www.squidguard.org/
Packager: Vladimir Lettiev <crux at altlinux.ru>
Source0: http://ftp.teledanmark.no/pub/www/proxy/squidGuard/%name-%version.tar.bz2
Source1: %name.logrotate
Source2: %name-blacklists-20050516.tar.bz2
Source3: %name.conf
Source4: sg-utils-0.2.tar.gz
Source5: %name-ru.cgi
Patch1: %name-paths.patch
Patch2: http://ftp.ru.debian.org/debian/pool/main/s/squidguard/%name-%version-debian.patch.bz2
Requires: squid-server logrotate
BuildRequires: flex libdb4.3-devel perl-DBM
%description
squidGuard can be used to
- limit the web access for some users to a list of accepted/well known
web servers and/or URLs only.
- block access to some listed or blacklisted web servers and/or URLs
for some users. **)
- block access to URLs matching a list of regular expressions or words
for some users. **)
- enforce the use of domainnames/prohibit the use of IP address in
URLs. **)
- redirect blocked URLs to an "intelligent" CGI based info page. **)
- redirect unregistered user to a registration form.
- redirect popular downloads like Netscape, MSIE etc. to local copies.
- redirect banners to an empty GIF. **)
- have different access rules based on time of day, day of the week,
date etc.
- have different rules for different user groups.
- and much more..
Neither squidGuard nor Squid can be used to
- filter/censor/edit text inside documents
- filter/censor/edit embeded scripting languages like JavaScript or
VBscript inside HTML
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%configure \
--with-sg-config=%_sysconfdir/squid/squidGuard.conf \
--with-sg-logdir=%_var/log/squid \
--with-sg-dbhome=%_dbhomedir
%__make
%__make test
%__chmod +x samples/*.cgi
%install
%__make DESTDIR=%buildroot install
%__mkdir_p %buildroot%_sysconfdir/logrotate.d
%__mkdir_p %buildroot%_dbhomedir
%__install -p -m 0644 %SOURCE1 %buildroot%_sysconfdir/logrotate.d/squidGuard
%__install -p -m 0644 %SOURCE3 %buildroot%_sysconfdir/squid/squidGuard.conf
%__install -p -m 0644 %SOURCE3 samples/default.conf
%__install -p -m 0755 %SOURCE5 samples/squidGuard-ru.cgi
%__mkdir_p %buildroot%_dbhomedir/{iplists,userlists,db}
%__tar xjCf %buildroot%_dbhomedir %SOURCE2
%__tar xzCf %buildroot%_bindir %SOURCE4
%post
squidGuard -d -c %_defaultdocdir/%name-%version/default.conf -C all 2>/dev/null
find %_dbhomedir/db/*/* -type f -name "*.db" -exec chmod 664 {} \;
%files
%doc samples/*.conf samples/*.cgi CHANGELOG
%doc doc/*.txt doc/*.html doc/*.gif samples/dest/blacklists.tar.gz
%_bindir/*
%config(noreplace) %_sysconfdir/squid/squidGuard.conf
%config(noreplace) %_sysconfdir/logrotate.d/*
%dir %_dbhomedir
%dir %_dbhomedir/db
%dir %_dbhomedir/iplists
%dir %_dbhomedir/userlists
%defattr(644, root, squid, 2775)
%_dbhomedir/db/*
%changelog
…
Full changelog you can see here
Version: 1.2.0
Release: alt7
%define _dbhomedir %_localstatedir/%name
Summary: Filter, redirector and access controller plugin for squid
License: GPL
Group: System/Servers
Url: http://www.squidguard.org/
Packager: Vladimir Lettiev <crux at altlinux.ru>
Source0: http://ftp.teledanmark.no/pub/www/proxy/squidGuard/%name-%version.tar.bz2
Source1: %name.logrotate
Source2: %name-blacklists-20050516.tar.bz2
Source3: %name.conf
Source4: sg-utils-0.2.tar.gz
Source5: %name-ru.cgi
Patch1: %name-paths.patch
Patch2: http://ftp.ru.debian.org/debian/pool/main/s/squidguard/%name-%version-debian.patch.bz2
Requires: squid-server logrotate
BuildRequires: flex libdb4.3-devel perl-DBM
%description
squidGuard can be used to
- limit the web access for some users to a list of accepted/well known
web servers and/or URLs only.
- block access to some listed or blacklisted web servers and/or URLs
for some users. **)
- block access to URLs matching a list of regular expressions or words
for some users. **)
- enforce the use of domainnames/prohibit the use of IP address in
URLs. **)
- redirect blocked URLs to an "intelligent" CGI based info page. **)
- redirect unregistered user to a registration form.
- redirect popular downloads like Netscape, MSIE etc. to local copies.
- redirect banners to an empty GIF. **)
- have different access rules based on time of day, day of the week,
date etc.
- have different rules for different user groups.
- and much more..
Neither squidGuard nor Squid can be used to
- filter/censor/edit text inside documents
- filter/censor/edit embeded scripting languages like JavaScript or
VBscript inside HTML
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%configure \
--with-sg-config=%_sysconfdir/squid/squidGuard.conf \
--with-sg-logdir=%_var/log/squid \
--with-sg-dbhome=%_dbhomedir
%__make
%__make test
%__chmod +x samples/*.cgi
%install
%__make DESTDIR=%buildroot install
%__mkdir_p %buildroot%_sysconfdir/logrotate.d
%__mkdir_p %buildroot%_dbhomedir
%__install -p -m 0644 %SOURCE1 %buildroot%_sysconfdir/logrotate.d/squidGuard
%__install -p -m 0644 %SOURCE3 %buildroot%_sysconfdir/squid/squidGuard.conf
%__install -p -m 0644 %SOURCE3 samples/default.conf
%__install -p -m 0755 %SOURCE5 samples/squidGuard-ru.cgi
%__mkdir_p %buildroot%_dbhomedir/{iplists,userlists,db}
%__tar xjCf %buildroot%_dbhomedir %SOURCE2
%__tar xzCf %buildroot%_bindir %SOURCE4
%post
squidGuard -d -c %_defaultdocdir/%name-%version/default.conf -C all 2>/dev/null
find %_dbhomedir/db/*/* -type f -name "*.db" -exec chmod 664 {} \;
%files
%doc samples/*.conf samples/*.cgi CHANGELOG
%doc doc/*.txt doc/*.html doc/*.gif samples/dest/blacklists.tar.gz
%_bindir/*
%config(noreplace) %_sysconfdir/squid/squidGuard.conf
%config(noreplace) %_sysconfdir/logrotate.d/*
%dir %_dbhomedir
%dir %_dbhomedir/db
%dir %_dbhomedir/iplists
%dir %_dbhomedir/userlists
%defattr(644, root, squid, 2775)
%_dbhomedir/db/*
%changelog
…
Full changelog you can see here