]>
Commit | Line | Data |
---|---|---|
ef6678a7 | 1 | Summary: A gateway for more secure user access to CGI scripts |
9214648f | 2 | Summary(pl.UTF-8): Bramka do bezpieczniejszego dostępu użytkowników do skryptów CGI |
ef6678a7 | 3 | Name: cgiwrap |
96ceddfb | 4 | Version: 4.1 |
dfd5e644 | 5 | Release: 3 |
ef6678a7 AM |
6 | License: GPL |
7 | Group: Utilities | |
8 | Source0: http://dl.sourceforge.net/cgiwrap/%{name}-%{version}.tar.gz | |
96ceddfb | 9 | # Source0-md5: 14c02c57e4a0c6224951018e2f6b9211 |
db9c6340 | 10 | Patch0: %{name}-php.patch |
dfd5e644 | 11 | Patch1: %{name}-fetch.patch |
7b553a06 | 12 | URL: http://cgiwrap.sourceforge.net/ |
ef6678a7 AM |
13 | BuildRequires: automake |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
8088838f JB |
16 | %define _cgibindir /home/services/httpd/cgi-bin |
17 | ||
ef6678a7 AM |
18 | %description |
19 | A gateway that allows more secure user access to CGI programs on an | |
6f650a59 | 20 | HTTPd server than is provided by the HTTP server itself. The primary |
ef6678a7 AM |
21 | function of CGIwrap is to make certain that any CGI script runs with |
22 | the permissions of the user who installed it, and not those of the | |
23 | server. | |
24 | ||
8117246f JR |
25 | %description -l pl.UTF-8 |
26 | Bramka pozwalająca na bardziej bezpieczny dostęp użytkowników do | |
27 | programów CGI na serwerze HTTP niż ten udostępniany przez sam serwer | |
28 | HTTP. Główna funkcja CGIwrap to upewnienie się, że skrypt CGI działa z | |
29 | uprawnieniami użytkownika, który go zainstalował, a nie serwera. | |
8088838f | 30 | |
ef6678a7 AM |
31 | %prep |
32 | %setup -q | |
db9c6340 | 33 | %patch0 -p0 |
dfd5e644 | 34 | %patch1 -p0 |
ef6678a7 AM |
35 | |
36 | %build | |
37 | install %{_datadir}/automake/config.* . | |
38 | %configure \ | |
39 | --with-perl=%{_bindir}/perl \ | |
db9c6340 | 40 | --with-php=%{_bindir}/php.cgi \ |
ef6678a7 AM |
41 | --with-local-contact-email=root@localhost \ |
42 | --with-httpd-user=http \ | |
43 | --with-minimum-uid=500 \ | |
44 | --with-minimum-gid=500 \ | |
db9c6340 | 45 | --with-block-svn-paths \ |
46 | --with-block-cvs-paths \ | |
47 | --with-php-interpreter \ | |
48 | --with-soft-rlimit-only \ | |
dfd5e644 | 49 | --with-cgi-dir=public_html \ |
db9c6340 | 50 | --without-check-group |
8088838f | 51 | |
ef6678a7 AM |
52 | %{__make} |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
8088838f | 56 | install -d $RPM_BUILD_ROOT%{_cgibindir} |
ef6678a7 | 57 | |
8088838f | 58 | install cgiwrap $RPM_BUILD_ROOT%{_cgibindir} |
db9c6340 | 59 | install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/cgiwrapd |
60 | install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/nph-cgiwrap | |
61 | install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/nph-cgiwrapd | |
62 | install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/php-cgiwrap | |
63 | install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/php-cgiwrapd | |
ef6678a7 AM |
64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
ef6678a7 AM |
68 | %files |
69 | %defattr(644,root,root,755) | |
70 | %doc htdocs/* | |
8088838f | 71 | %attr(4755,root,root) %{_cgibindir}/* |