From 1c5c6d95d148072274b86a0b53d65b8967b2ef5f Mon Sep 17 00:00:00 2001 From: Viorel Date: Fri, 23 Jan 2026 14:50:43 +0200 Subject: [PATCH] app-eselect/eselect-php: new package, add 2 --- app-eselect/eselect-php/eselect-php-2.ebuild | 50 ++++++++++++++++++++ app-eselect/eselect-php/metadata.xml | 12 +++++ 2 files changed, 62 insertions(+) create mode 100644 app-eselect/eselect-php/eselect-php-2.ebuild create mode 100644 app-eselect/eselect-php/metadata.xml diff --git a/app-eselect/eselect-php/eselect-php-2.ebuild b/app-eselect/eselect-php/eselect-php-2.ebuild new file mode 100644 index 0000000..2236fac --- /dev/null +++ b/app-eselect/eselect-php/eselect-php-2.ebuild @@ -0,0 +1,50 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +TMPFILES_OPTIONAL="yes" +inherit tmpfiles + +DESCRIPTION="Gentoo config file for missing eselect-php" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +S="${WORKDIR}" + +LICENSE="GPL-2+" +SLOT="ceamac" +KEYWORDS="~amd64" +IUSE="fpm apache2" + +RESTRICT="bindist" + +RDEPEND="fpm? ( virtual/tmpfiles )" +BDEPEND="app-eselect/eselect-php:0[fpm?,apache2?]" + +pkg_setup() { + [[ ${ROOT} != ${BROOT} ]] && export COPYFILES=1 +} + +src_install() { + if [[ -n ${COPYFILES} ]]; then + local files_to_copy=( + /etc/apache2/modules.d/70_mod_php.conf + /etc/conf.d/php-fpm + /etc/init.d/php-fpm + /etc/logrotate.d/php-fpm.logrotate + /usr/lib/tmpfiles.d/php-fpm.conf + /usr/libexec/php-fpm-launcher + ) + + local i + for i in "${files_to_copy[@]}"; do + if [[ -e "${BROOT}"/"${i}" ]]; then + dodir "$(dirname "${i}")" + cp -p "${BROOT}"/"${i}" "${ED}"/"${i}" || die + fi + done + fi +} + +pkg_postinst() { + use fpm && tmpfiles_process php-fpm.conf +} diff --git a/app-eselect/eselect-php/metadata.xml b/app-eselect/eselect-php/metadata.xml new file mode 100644 index 0000000..366fe07 --- /dev/null +++ b/app-eselect/eselect-php/metadata.xml @@ -0,0 +1,12 @@ + + + + + ceamac@gentoo.org + Viorel Munteanu + + + Enable the FastCGI Process Manager SAPI + + +