Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > ddc239813b04f73c575613e7b5e60270 > files > 1

apache-suexec-1.3.23-3mdk.src.rpm

%define name apache-suexec
%define version 1.3.23
%define release 3mdk

Name: %{name}
Group: System/Servers
Summary: Suexec binary for apache
Version: %{version}
Release: %{release}
Source0: apache-suexec.tar.bz2
URL: http://httpd.apache.org/docs/suexec.html
License: Apache License
BuildRoot:  %{_tmppath}/%{name}-root
Prereq:		apache-common >= %{apache_version}-%{apache_release}
Prereq:		apache-conf >= %{apache_version}-%{apache_release}
Prereq: 	mm >= %{mm_major}.%{mm_minor}
Requires:	apache
BuildRequires: apache-devel >= %{apache_version}-%{apache_release} apache >= %{apache_version}-%{apache_release}

%description
This package adds suexec to Apache. Suexec provides Apache users the ability
to run CGI and SSI programs under user IDs different from the user ID of the
calling web-server. Normally, when a CGI or SSI program executes, it runs as
the same user who is running the web server. 


%prep
%setup -n %{name}

APFLAGS=`/usr/sbin/apxs -q CFLAGS`
OPTIONS=$APFLAGS" \
-DHTTPD_USER=\"apache\" \
-DUID_MIN=100 \
-DGID_MIN=100 \
-DUSERDIR_SUFFIX=\"public_html\" \
-DLOG_EXEC=\"/var/log/httpd/suexec_log\" \
-DDOC_ROOT=\"/var/www\" \
-DSAFE_PATH=\"/usr/local/bin:/usr/bin:/bin\" \
-I/usr/include/apache"
echo Configuring with: $OPTIONS
gcc $OPTIONS -o suexec suexec.c

%install
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -m 4711 suexec $RPM_BUILD_ROOT%{_sbindir}
install suexec.8 $RPM_BUILD_ROOT%{_mandir}/man8


%files
%defattr(-,root,root)
%attr(4710,root,apache) %{_sbindir}/suexec
%{_mandir}/man8/*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Mon Mar 02 2002 Jean-Michel Dault <jmdault@mandrakesoft.com> 1.3.23-3mdk
- Moved suexec into its own SRPM so people can recompile it according to
  their settings without recompiling the whole apache.