summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-10-01 16:02:24 +0200
committerLars Wendler <polynomial-c@gentoo.org>2020-10-01 16:07:34 +0200
commit1d6db64aabaa548998f60aa99acb8ce204973e54 (patch)
treead1d4804a63a0686c1fd48772af686746a0ba783 /eclass/apache-2.eclass
parentapache-2.eclass: Removed version specific suexec handling (diff)
downloadgentoo-1d6db64aabaa548998f60aa99acb8ce204973e54.tar.gz
gentoo-1d6db64aabaa548998f60aa99acb8ce204973e54.tar.bz2
gentoo-1d6db64aabaa548998f60aa99acb8ce204973e54.zip
apache-2.eclass: Mark some variables as local
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'eclass/apache-2.eclass')
-rw-r--r--eclass/apache-2.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
index 29f6edda53cf..601a7fb08735 100644
--- a/eclass/apache-2.eclass
+++ b/eclass/apache-2.eclass
@@ -242,7 +242,7 @@ check_module_critical() {
# This internal function selects all built-in modules based on USE flags and
# APACHE2_MODULES USE_EXPAND flags
setup_modules() {
- local mod_type=
+ local mod_type= x=
if use static ; then
mod_type="static"
@@ -328,7 +328,7 @@ setup_modules() {
# This internal function generates the LoadModule lines for httpd.conf based on
# the current module selection and MODULE_DEFINES
generate_load_module() {
- local endit=0 mod_lines= mod_dir="${ED%/}/usr/$(get_libdir)/apache2/modules"
+ local def= endit=0 m= mod_lines= mod_dir="${ED%/}/usr/$(get_libdir)/apache2/modules"
if use static; then
sed -i -e "/%%LOAD_MODULE%%/d" \
@@ -631,6 +631,7 @@ apache-2_src_install() {
fi
# empty dirs
+ local i
for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do
keepdir ${i}
fowners apache:apache ${i}