From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 582B91384B4 for ; Fri, 11 Dec 2015 00:40:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4593621C009; Fri, 11 Dec 2015 00:40:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70FE221C009 for ; Fri, 11 Dec 2015 00:40:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2B1634095A for ; Fri, 11 Dec 2015 00:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D485ACB1 for ; Fri, 11 Dec 2015 00:40:29 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1449756165.c09a74e0b46e3cd72c5057d23b2ec2038b82a6f0.mjo@gentoo> Subject: [gentoo-commits] proj/eselect-php:master commit in: src/ X-VCS-Repository: proj/eselect-php X-VCS-Files: src/php.eselect.in X-VCS-Directories: src/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: c09a74e0b46e3cd72c5057d23b2ec2038b82a6f0 X-VCS-Branch: master Date: Fri, 11 Dec 2015 00:40:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9839e8e6-679d-407c-b061-acc97959086f X-Archives-Hash: c1e2adf3f51ca3031b1db144adde8ade commit: c09a74e0b46e3cd72c5057d23b2ec2038b82a6f0 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Dec 10 14:02:45 2015 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Thu Dec 10 14:02:45 2015 +0000 URL: https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=c09a74e0 Document the find_targets_apache2() and get_active_apache2() functions. src/php.eselect.in | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/php.eselect.in b/src/php.eselect.in index 5bbb491..e08afbe 100644 --- a/src/php.eselect.in +++ b/src/php.eselect.in @@ -82,6 +82,22 @@ find_targets() { echo $dirs } +# List all valid apache2 targets. The list is obtained by searching +# for libphp*.so in locations determined by find_targets(). This list +# should therefore be a subset of find_targets(). +# +# INPUT: +# +# None. +# +# OUTPUT: +# +# The "display name" of every available apache PHP module, one per line. +# For example, +# +# php5.6 +# php7.0 +# find_targets_apache2() { local libs target libdir for target in $(find_targets); do @@ -143,6 +159,18 @@ get_active_fpm() { } +# Find the active (selected) version of the apache2 module. Used to +# decorate the output of the `eselect php list apache2` command. +# +# INPUT: +# +# None. +# +# OUTPUT: +# +# The "display name" of the active apache2 module. For example, +# "php5.6" or "php7.0". +# get_active_apache2() { local libs target ver libs="${EROOT}$(get_active_libdir)/apache2/modules/libphp[57].so"