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