[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/suphp/devel suphp.conf, NONE, 1.1 suphp.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2



Author: ixs

Update of /cvs/extras/rpms/suphp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14293/devel

Modified Files:
	.cvsignore sources 
Added Files:
	suphp.conf suphp.spec 
Log Message:
auto-import suphp-0.5.2-4 on branch devel from suphp-0.5.2-4.src.rpm
Initial checkin


--- NEW FILE suphp.conf ---
# This is the Apache server configuration file providing suPHP support..
# It contains the configuration directives to instruct the server how to
# serve php pages while switching to the user context before rendering.
# For directives see <URL:http://httpd.apache.org/docs-2.0/mod/mod_suphp.html>

LoadModule suphp_module modules/mod_suphp.so

# To use suPHP to parse PHP-Files
#AddHandler x-httpd-php .php
#AddHandler x-httpd-php .php .php4 .php3 .phtml

# This option tells mod_suphp if a PHP-script requested on this server (or
# VirtualHost) should be run with the PHP-interpreter or returned to the
# browser "as it is".
suPHP_Engine off


# This option tells mod_suphp which path to pass on to the PHP-interpreter
# (by setting the PHPRC environment variable).
# Do *NOT* refer to a file but to the directory the file resists in.
#
# E.g.: If you want to use "/path/to/server/config/php.ini", use "suPHP_Config
# /path/to/server/config".
#
# If you don't use this option, PHP will use its compiled in default path.
#suPHP_ConfigPath /etc


# If you compiled suphp with setid-mode "force" or "paranoid", you can
# specify the user- and groupname to run PHP-scripts with.
# Example: suPHP_UserGroup foouser bargroup
# suPHP_UserGroup apache apache


--- NEW FILE suphp.spec ---
# Depending on what version of Fedora we're on, use a different php binary
%if "%fedora" >= "4"
   %define php /usr/bin/php-cgi
%else
   %define php /usr/bin/php
%endif

Summary: An apache2 module for executing PHP scripts with the permissions of their owners
Name: suphp
Version: 0.5.2
Release: 4
License: GPL
Group: System Environment/Daemons
Source0: http://www.suphp.org/download/suphp-%{version}.tar.gz
Source1: suphp.conf
URL: http://www.suphp.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: httpd >= 2.0, php
BuildRequires: httpd-devel >= 2.0

%description
suPHP is an apache module for executing PHP scripts with the permissions of
their owners. It consists of an Apache module (mod_suphp) and a setuid root
binary (suphp) that is called by the Apache module to change the uid of the
process executing the PHP interpreter.

%prep
%setup -q

%build
%configure \
	--with-apache-user=apache \
	--with-min-uid=500 \
	--with-min-gid=500 \
	--with-php=%{php} \
	--with-logfile=/var/log/httpd/suphp_log \
	--with-setid-mode=owner \
	--disable-checkpath

pushd src
make %{_smp_mflags} suphp
popd

pushd src/apache2
%{_sbindir}/apxs -c mod_suphp.c
mv .libs/mod_suphp.so .
popd

%install
rm -rf $RPM_BUILD_ROOT

%{__install} -c -m 4755 -D src/suphp $RPM_BUILD_ROOT%{_sbindir}/suphp
%{__install} -m 755 -D src/apache2/mod_suphp.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/mod_suphp.so

# Install the config file
%{__install} -m 644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/suphp.conf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYING
%{_sbindir}/suphp
%{_libdir}/httpd/modules/*.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf

%changelog
* Thu Jun 30 2005 Andreas Thienemann <andreas bawue net> 0.5.2-4
- Cleanup of specfile, incorporated suggestions from "spot"
- Modified configure command to use cgi-php for FC4, php otherwise

* Sat Nov 13 2004 Andreas Thienemann <andreas bawue net> 0.5.2-3
- Added "--disable-checkpath" in order to allow /~user URLs

* Sat Nov 13 2004 Andreas Thienemann <andreas bawue net> 0.5.2-2
- Fixed the wrong path in the logfile directive

* Sat Nov 13 2004 Andreas Thienemann <andreas bawue net> 0.5.2-1
- initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/suphp/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	30 Jun 2005 16:47:09 -0000	1.1
+++ .cvsignore	30 Jun 2005 16:48:10 -0000	1.2
@@ -0,0 +1 @@
+suphp-0.5.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/suphp/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	30 Jun 2005 16:47:09 -0000	1.1
+++ sources	30 Jun 2005 16:48:10 -0000	1.2
@@ -0,0 +1 @@
+337909e87027af124052baddddbd2994  suphp-0.5.2.tar.gz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]