diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2005-08-06 19:40:15 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2005-08-06 19:40:15 +0000 |
commit | d2b9e0c7a4734202247caf2b12f9d1fed01472a3 (patch) | |
tree | acbd69c41c212599f544751025a6d5f901fb17bb /www-apache/mod_suphp | |
parent | Got rid of strange tmp directory, adjusted the 2.0* ebuild's descriptions to ... (diff) | |
download | gentoo-2-d2b9e0c7a4734202247caf2b12f9d1fed01472a3.tar.gz gentoo-2-d2b9e0c7a4734202247caf2b12f9d1fed01472a3.tar.bz2 gentoo-2-d2b9e0c7a4734202247caf2b12f9d1fed01472a3.zip |
initial ebuild
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'www-apache/mod_suphp')
-rw-r--r-- | www-apache/mod_suphp/ChangeLog | 10 | ||||
-rw-r--r-- | www-apache/mod_suphp/Manifest | 6 | ||||
-rw-r--r-- | www-apache/mod_suphp/files/70_mod_suphp.conf | 30 | ||||
-rw-r--r-- | www-apache/mod_suphp/files/digest-mod_suphp-0.6.0 | 1 | ||||
-rw-r--r-- | www-apache/mod_suphp/files/suphp.conf | 47 | ||||
-rw-r--r-- | www-apache/mod_suphp/metadata.xml | 8 | ||||
-rw-r--r-- | www-apache/mod_suphp/mod_suphp-0.6.0.ebuild | 89 |
7 files changed, 191 insertions, 0 deletions
diff --git a/www-apache/mod_suphp/ChangeLog b/www-apache/mod_suphp/ChangeLog new file mode 100644 index 000000000000..f79bcc447869 --- /dev/null +++ b/www-apache/mod_suphp/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for www-apache/mod_suphp +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/ChangeLog,v 1.1 2005/08/06 19:40:15 hollow Exp $ + +*mod_suphp-0.6.0 (06 Aug 2005) + + 06 Aug 2005; Benedikt Boehm <hollow@gentoo.org> +files/70_mod_suphp.conf, + +files/suphp.conf, +metadata.xml, +mod_suphp-0.6.0.ebuild: + initial ebuild. bug #57666 + diff --git a/www-apache/mod_suphp/Manifest b/www-apache/mod_suphp/Manifest new file mode 100644 index 000000000000..cc91e17daee7 --- /dev/null +++ b/www-apache/mod_suphp/Manifest @@ -0,0 +1,6 @@ +MD5 6595e99bd28f854e034021862dc5174f mod_suphp-0.6.0.ebuild 2394 +MD5 0d18f0fe5d603b41b988373892caf195 metadata.xml 226 +MD5 e66286b7431c296621259476e9027fcf ChangeLog 320 +MD5 cc7f45f9730b3d1b90fc2056e6b80a28 files/70_mod_suphp.conf 923 +MD5 140d0ff2066123c76f80fca983f4a561 files/suphp.conf 945 +MD5 350380d3dd8b4a29db78e1f336344688 files/digest-mod_suphp-0.6.0 63 diff --git a/www-apache/mod_suphp/files/70_mod_suphp.conf b/www-apache/mod_suphp/files/70_mod_suphp.conf new file mode 100644 index 000000000000..12426697790b --- /dev/null +++ b/www-apache/mod_suphp/files/70_mod_suphp.conf @@ -0,0 +1,30 @@ +# Please note that using -DSUPHP in conjunction with -DPHP4 will currently +# not work. Whilst it is possible to run both using combinations of +# 'php_admin_flag engine off' and 'suPHP_Engine on', which can be configured +# per-vhost, this is not a supported configuration. + +<IfDefine SUPHP> + <IfModule !mod_suphp.c> + LoadModule suphp_module modules/mod_suphp.so + </IfModule> + + <IfModule mod_mime.c> + AddType application/x-httpd-php .php + AddType application/x-httpd-php5 .php5 + AddType application/x-httpd-php4 .php4 + AddType application/x-httpd-phtml .phtml + </IfModule> + + suPHP_Engine on + + <Location /> + SuPHP_AddHandler application/x-httpd-php + SuPHP_AddHandler application/x-httpd-php5 + SuPHP_AddHandler application/x-httpd-php4 + SuPHP_AddHandler application/x-httpd-phtml + </Location> + + SuPHP_UserGroup apache apache + + AddDirectoryIndex index.php index.php5 index.php4 index.php3 index.phtml +</IfDefine> diff --git a/www-apache/mod_suphp/files/digest-mod_suphp-0.6.0 b/www-apache/mod_suphp/files/digest-mod_suphp-0.6.0 new file mode 100644 index 000000000000..b2df809d235e --- /dev/null +++ b/www-apache/mod_suphp/files/digest-mod_suphp-0.6.0 @@ -0,0 +1 @@ +MD5 fa89691101b9ebf18f4922b1382186c6 suphp-0.6.0.tar.gz 247534 diff --git a/www-apache/mod_suphp/files/suphp.conf b/www-apache/mod_suphp/files/suphp.conf new file mode 100644 index 000000000000..005f77f188c9 --- /dev/null +++ b/www-apache/mod_suphp/files/suphp.conf @@ -0,0 +1,47 @@ +[global] +;Path to logfile +logfile=/var/log/suphp.log + +;Loglevel +loglevel=info + +;User Apache is running as +webserver_user=apache + +;Path all scripts have to be in +docroot=/var/www/ + +; Security options +allow_file_group_writeable=false +allow_file_others_writeable=false +allow_directory_group_writeable=false +allow_directory_others_writeable=false + +;Check wheter script is within DOCUMENT_ROOT +check_vhost_docroot=true + +;Send minor error messages to browser +errors_to_browser=true + +;PATH environment variable +env_path=/bin:/usr/bin + +;Umask to set, specify in octal notation +umask=0077 + +; Minimum UID +min_uid=1000 + +; Minimum GID +min_gid=100 + + +[handlers] +;Handler for php-scripts +application/x-httpd-php=php:/usr/lib/php5/bin/php-cgi +application/x-httpd-php5=php:/usr/lib/php5/bin/php-cgi +application/x-httpd-php4=php:/usr/lib/php4/bin/php-cgi +application/x-httpd-phtml=php:/usr/lib/php5/bin/php-cgi + +;Handler for CGI-scripts +x-suphp-cgi=execute:!self diff --git a/www-apache/mod_suphp/metadata.xml b/www-apache/mod_suphp/metadata.xml new file mode 100644 index 000000000000..10510cb8be95 --- /dev/null +++ b/www-apache/mod_suphp/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>apache</herd> +<maintainer> + <email>apache-devs@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/www-apache/mod_suphp/mod_suphp-0.6.0.ebuild b/www-apache/mod_suphp/mod_suphp-0.6.0.ebuild new file mode 100644 index 000000000000..00cff89b1c12 --- /dev/null +++ b/www-apache/mod_suphp/mod_suphp-0.6.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/mod_suphp-0.6.0.ebuild,v 1.1 2005/08/06 19:40:15 hollow Exp $ + +inherit apache-module eutils + +MY_P=${P/mod_/} + +DESCRIPTION="A PHP wrapper for Apache" +HOMEPAGE="http://www.suphp.org" +SRC_URI="http://www.suphp.org/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~x86" +IUSE="" +SLOT="0" + +S="${WORKDIR}/${MY_P}" + +APXS1_S="${S}/src/apache" +APACHE1_MOD_CONF="70_${PN}" +APACHE1_MOD_DEFINE="SUPHP" + +APXS2_S="${S}/src/apache2" +APACHE2_MOD_CONF="70_${PN}" +APACHE2_MOD_DEFINE="SUPHP" + +need_apache2 + +pkg_setup() { + einfo + einfo "You can manipulate several configure options of this" + einfo "ebuild through environment variables:" + einfo + einfo "SUPHP_MINUID: Minimum UID, which is allowed to run scripts (default: 1000)" + einfo "SUPHP_MINGID: Minimum GID, which is allowed to run scripts (default: 100)" + einfo "SUPHP_APACHEUSER: Name of the user Apache is running as (default: apache)" + einfo "SUPHP_LOGFILE: Path to suPHP logfile (default: /var/log/apache2/suphp_log)" + einfo "SUPHP_SETIDMODE: Mode to use for setting UID/GID (default: paranoid)" + einfo " MODE can be on of owner, config or paranoid" + einfo + + : ${SUPHP_MINUID:=1000} + : ${SUPHP_MINGID:=100} + : ${SUPHP_APACHEUSER:="apache"} + : ${SUPHP_LOGFILE:="/var/log/apache2/suphp_log"} + : ${SUPHP_SETIDMODE:="paranoid"} +} + +src_compile() { + local myargs= + + myargs="--with-setid-mode=${SUPHP_SETIDMODE} \ + --with-min-uid=${SUPHP_MINUID} \ + --with-min-gid=${SUPHP_MINGID} \ + --with-apache-user=${SUPHP_APACHEUSER} \ + --with-logfile=${SUPHP_LOGFILE} \ + --with-apxs=${APXS2}" + + CFLAGS="$(apr-config --includes) $(apu-config --includes)" \ + econf ${myargs} || die "econf failed" + + emake || die "make failed" +} + +src_install() { + apache-module_src_install + dosbin src/suphp + + dodoc ChangeLog doc/CONFIG + + docinto apache + dodoc doc/apache/CONFIG doc/apache/INSTALL + + insinto /etc + doins ${FILESDIR}/suphp.conf +} + +# See: http://forums.gentoo.org/viewtopic.php?t=208570 for the +# answer to another user +#pkg_postinst() { +# # Due to Apache APR requiring R_OK and X_OK for exec*(), we +# # must install suPHP with 4755 permissions or it will not work +# # from within Apache. +# chmod 4755 /usr/sbin/suphp +# einfo "if you (want to) use webapp-config don't forget to uncomment" +# einfo "the example suPHP_MinUser entry in the suphp-module file" +#} + |