]> git.pld-linux.org Git - SPECS.git/blob - jesred.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / jesred.spec
1 Summary:        Filter, redirector and access controller plugin for Squid
2 Summary(pl.UTF-8):      Wtyczka do filtrowania, przekierowywania i kontroli dostępu dla Squida
3 Name:           jesred
4 Version:        1.2pl1
5 Release:        0.1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://ivs.cs.uni-magdeburg.de/~elkner/webtools/src/%{name}-%{version}.tar.gz
9 # Source0-md5:  8d7009e0700996dbc28540d1a8f7c36d
10 Source1:        %{name}.conf
11 Patch0:         %{name}-DEFAULT_PATH.patch
12 URL:            http://www.linofee.org/~elkner/webtools/jesred/
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 Requires:       squid
15
16 %define         _sysconfdir     /etc/%{name}
17
18 %description
19 Redirector for squid proxy.
20
21 %description -l pl.UTF-8
22 Wtyczka przekierowująca dla Squida.
23
24 %prep
25 %setup -q
26 %patch0 -p1
27 %build
28 %{__make} CFLAGS="%{rpmcflags} -I." DEFS="-DUSE_ACCEL" XTRA_LIBS=""
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
33
34 install jesred          $RPM_BUILD_ROOT%{_bindir}
35 install etc/redirect.*  $RPM_BUILD_ROOT%{_sysconfdir}
36 install %{SOURCE1}      $RPM_BUILD_ROOT%{_sysconfdir}
37
38 %post
39 echo "WARNING !!! WARNING !!! WARNING !!! WARNING !!!"
40 echo
41 echo "Modify the following line in the /etc/squid/squid.conf file:"
42 echo "redirect_program /usr/bin/jesred"
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README
50 %attr(755,root,root) %{_bindir}/*
51 %attr(750,root,squid) %dir %{_sysconfdir}
52 %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
This page took 0.224176 seconds and 3 git commands to generate.