]> git.pld-linux.org Git - packages/cgiwrap.git/blame - cgiwrap.spec
- add -phprc.patch
[packages/cgiwrap.git] / cgiwrap.spec
CommitLineData
ef6678a7 1Summary: A gateway for more secure user access to CGI scripts
9214648f 2Summary(pl.UTF-8): Bramka do bezpieczniejszego dostępu użytkowników do skryptów CGI
ef6678a7 3Name: cgiwrap
96ceddfb 4Version: 4.1
a1d0e488 5Release: 5
ef6678a7
AM
6License: GPL
7Group: Utilities
8Source0: http://dl.sourceforge.net/cgiwrap/%{name}-%{version}.tar.gz
96ceddfb 9# Source0-md5: 14c02c57e4a0c6224951018e2f6b9211
447a66c2 10Patch0: %{name}-bs.patch
a1d0e488 11Patch1: %{name}-phprc.patch
7b553a06 12URL: http://cgiwrap.sourceforge.net/
ef6678a7 13BuildRequires: automake
447a66c2 14BuildRequires: libmagic-devel
ef6678a7
AM
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
8088838f
JB
17%define _cgibindir /home/services/httpd/cgi-bin
18
ef6678a7
AM
19%description
20A gateway that allows more secure user access to CGI programs on an
6f650a59 21HTTPd server than is provided by the HTTP server itself. The primary
ef6678a7
AM
22function of CGIwrap is to make certain that any CGI script runs with
23the permissions of the user who installed it, and not those of the
24server.
25
8117246f
JR
26%description -l pl.UTF-8
27Bramka pozwalająca na bardziej bezpieczny dostęp użytkowników do
28programów CGI na serwerze HTTP niż ten udostępniany przez sam serwer
29HTTP. Główna funkcja CGIwrap to upewnienie się, że skrypt CGI działa z
30uprawnieniami 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
38install %{_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
58rm -rf $RPM_BUILD_ROOT
8088838f 59install -d $RPM_BUILD_ROOT%{_cgibindir}
ef6678a7 60
8088838f 61install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}
db9c6340 62install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/cgiwrapd
63install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/nph-cgiwrap
64install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/nph-cgiwrapd
65install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/php-cgiwrap
66install cgiwrap $RPM_BUILD_ROOT%{_cgibindir}/php-cgiwrapd
ef6678a7
AM
67
68%clean
69rm -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}/*
This page took 0.062729 seconds and 4 git commands to generate.