]> git.pld-linux.org Git - packages/bannerfilter.git/blame - bannerfilter.spec
- tabs in preamble
[packages/bannerfilter.git] / bannerfilter.spec
CommitLineData
ab9789ed
PG
1# TODO:
2# - separate package with www-files
ab9789ed
PG
3%include /usr/lib/rpm/macros.perl
4Summary: A redirect script for the Squid proxy to block ad banners
d4378c8d 5Summary(pl.UTF-8): Skrypt dla Squida przekierowujący w celu blokowania bannerów reklamowych
ab9789ed 6Name: bannerfilter
d83b46a7 7Version: 1.31
ab9789ed 8Release: 1
bbb912f2 9Epoch: 1
ab9789ed
PG
10License: GPL v2
11Group: Applications/System
12Source0: http://phroggy.com/files/unix/%{name}-%{version}.tar.gz
d83b46a7 13# Source0-md5: 329a8a6e2b04b21a6f77a365e62e0881
bbb912f2 14Source1: %{name}.cron
ab9789ed
PG
15Patch0: %{name}-conf.patch
16URL: http://phroggy.com/bannerfilter/
ab9789ed
PG
17BuildRequires: rpm-perlprov >= 3.0.3-18
18Requires: squid
988acadb 19BuildArch: noarch
ab9789ed
PG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
87604fc4 22%define _http_dir /home/services/httpd/html/bannerfilter
ab9789ed
PG
23
24%description
25BannerFilter is a redirect script for the Squid proxy server, designed
26to block advertising banners on the Web. Unlike most other solutions,
27it also automatically closes popup windows.
28
89f6559a
JR
29%description -l pl.UTF-8
30BannerFilter to skrypt przekierowujący dla serwera proxy Squid,
31przeznaczony do blokowania bannerów reklamowych na WWW. W
32przeciwieństwie do innych rozwiązań, dodatkowo automatycznie zamyka
33wyskakujące okienka.
988acadb 34
ab9789ed
PG
35%prep
36%setup -q
37%patch0 -p1
38
39%install
40rm -rf $RPM_BUILD_ROOT
bbb912f2 41install -d $RPM_BUILD_ROOT{%{_sysconfdir}/squid/%{name},%{_sysconfdir}/cron.daily/,%{_sbindir},%{_http_dir}}
ab9789ed 42
bbb912f2 43install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/bannerfilter
ab9789ed
PG
44install bannerfilter.conf $RPM_BUILD_ROOT%{_sysconfdir}/squid
45install redirector.pl $RPM_BUILD_ROOT%{_sbindir}/redirector
46install update.sh $RPM_BUILD_ROOT%{_sbindir}/%{name}-update
47install www/* $RPM_BUILD_ROOT%{_http_dir}
48install *.data $RPM_BUILD_ROOT%{_sysconfdir}/squid/%{name}
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%post
54echo "Add to your squid config following line:"
55echo "redirect_program %{_sbindir}/redirector"
56
57%files
58%defattr(644,root,root,755)
59%doc CHANGES README TODO
60%attr(755,root,root) %{_sbindir}/redirector
61%attr(755,root,root) %{_sbindir}/%{name}-update
bbb912f2 62%attr(740,root,root) /etc/cron.daily/bannerfilter
0f8faf9c
SP
63%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid/*.conf
64%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid/%{name}/*.data
ab9789ed 65%attr(750,root,squid) %dir %{_sysconfdir}/squid/%{name}
14566add 66%{_http_dir}
This page took 0.062069 seconds and 4 git commands to generate.