1 Summary: A gateway for more secure user access to CGI scripts
2 Summary(pl): Bramka do bezpieczniejszego dostêpu u¿ytkowników do skryptów CGI
8 Source0: http://dl.sourceforge.net/cgiwrap/%{name}-%{version}.tar.gz
9 # Source0-md5: 0f9c88802658f45231ee463c351bd2a7
10 URL: http://cgilib.sourceforge.net/
11 BuildRequires: automake
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 %define _cgibindir /home/services/httpd/cgi-bin
17 A gateway that allows more secure user access to CGI programs on an
18 HTTPd server than is provided by the http server itself. The primary
19 function of CGIwrap is to make certain that any CGI script runs with
20 the permissions of the user who installed it, and not those of the
24 Bramka pozwalaj±ca na bardziej bezpieczny dostêp u¿ytkowników do
25 programów CGI na serwerze HTTP ni¿ ten udostêpniany przez sam serwer
26 HTTP. G³ówna funkcja CGIwrap to upewnienie siê, ¿e skrypt CGI dzia³a z
27 uprawnieniami u¿ytkownika, który go zainstalowa³, a nie serwera.
33 install %{_datadir}/automake/config.* .
35 --with-perl=%{_bindir}/perl \
36 --with-php=%{_bindir}/php \
37 --with-local-contact-email=root@localhost \
38 --with-httpd-user=http \
39 --with-minimum-uid=500 \
40 --with-minimum-gid=500 \
41 --with-allow-file=%{_sysconfdir}/cgiwrap/cgiwrap.allow \
42 --with-deny-file=%{_sysconfdir}/cgiwrap/cgiwrap.deny
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_cgibindir}
50 install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}
51 ln -s cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/cgiwrapd
52 ln -s cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/nph-cgiwrap
53 ln -s cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/nph-cgiwrapd
54 ln -s cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/php-cgiwrap
55 ln -s cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/php-cgiwrapd
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %attr(4755,root,root) %{_cgibindir}/*