summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2015-12-10 09:02:45 -0500
committerMichael Orlitzky <mjo@gentoo.org>2015-12-10 09:02:45 -0500
commitc09a74e0b46e3cd72c5057d23b2ec2038b82a6f0 (patch)
tree797a04b3adba3e125de7cb0cb51d1240e65f98a3
parentUse fixed ".so" suffix for libphp instead of computing it. (diff)
downloadeselect-php-c09a74e0b46e3cd72c5057d23b2ec2038b82a6f0.tar.gz
eselect-php-c09a74e0b46e3cd72c5057d23b2ec2038b82a6f0.tar.bz2
eselect-php-c09a74e0b46e3cd72c5057d23b2ec2038b82a6f0.zip
Document the find_targets_apache2() and get_active_apache2() functions.
-rw-r--r--src/php.eselect.in28
1 files changed, 28 insertions, 0 deletions
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"