From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../eselect-php/files/70_mod_php5.backcompat.conf | 28 ++++++++++++++++++++++ app-eselect/eselect-php/files/php-fpm-launcher | 7 ++++++ app-eselect/eselect-php/files/php-fpm-launcher-r2 | 13 ++++++++++ app-eselect/eselect-php/files/php-fpm.conf | 1 + 4 files changed, 49 insertions(+) create mode 100644 app-eselect/eselect-php/files/70_mod_php5.backcompat.conf create mode 100644 app-eselect/eselect-php/files/php-fpm-launcher create mode 100644 app-eselect/eselect-php/files/php-fpm-launcher-r2 create mode 100644 app-eselect/eselect-php/files/php-fpm.conf (limited to 'app-eselect/eselect-php/files') diff --git a/app-eselect/eselect-php/files/70_mod_php5.backcompat.conf b/app-eselect/eselect-php/files/70_mod_php5.backcompat.conf new file mode 100644 index 000000000000..bd79f78aa6be --- /dev/null +++ b/app-eselect/eselect-php/files/70_mod_php5.backcompat.conf @@ -0,0 +1,28 @@ +########### +# WARNING # +########### +# +# This file is provided for backwards compatibility only. The Apache +# PHP configuration is now located in 70_mod_php.conf and requires you +# to set -DPHP in your Apache conf.d file. Please examine +# 70_mod_php.conf and update your Apache configuration to use -DPHP +# instead of -DPHP5. Afterwards you may delete this file. +# + + # Load the module first + + LoadModule php5_module modules/libphp5.so + + + # Set it to handle the files + # NOTE: Avoiding AddHandler/AddType for security (bug #538822) + # NOTE: Please read the related news item! + + SetHandler application/x-httpd-php + + + SetHandler application/x-httpd-php-source + + + DirectoryIndex index.php index.phtml + diff --git a/app-eselect/eselect-php/files/php-fpm-launcher b/app-eselect/eselect-php/files/php-fpm-launcher new file mode 100644 index 000000000000..7a1c1c9f918b --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm-launcher @@ -0,0 +1,7 @@ +#!/bin/sh + +PHPSLOT="${1}" +[ -z "${PHPSLOT}" ] && PHPSLOT="$(eselect php show fpm)" +shift + +exec /usr/lib/${PHPSLOT}/bin/php-fpm "${@}" diff --git a/app-eselect/eselect-php/files/php-fpm-launcher-r2 b/app-eselect/eselect-php/files/php-fpm-launcher-r2 new file mode 100644 index 000000000000..3a6b2720fa67 --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm-launcher-r2 @@ -0,0 +1,13 @@ +#!/bin/sh + +. /lib/gentoo/functions.sh + +# If there are no arguments, then "shift" will fail (bug 626496). +if [ $# -eq 0 ]; then + PHP_SLOT=$(eselect php show fpm) +else + PHP_SLOT=$1 + shift +fi + +exec "/usr/$(get_libdir)/${PHP_SLOT}/bin/php-fpm" "${@}" diff --git a/app-eselect/eselect-php/files/php-fpm.conf b/app-eselect/eselect-php/files/php-fpm.conf new file mode 100644 index 000000000000..801e74f1e620 --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm.conf @@ -0,0 +1 @@ +d /run/php-fpm 755 root root -- cgit v1.2.3