commit:     412f32ed8c733160b3e22e146c3e399444c8bb2c
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  4 09:53:10 2022 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Mar  4 10:12:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=412f32ed

apache-2.eclass: Add support for systemd module

Bug: https://bugs.gentoo.org/834568
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 eclass/apache-2.eclass | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
index cd930aaf54f4..e6ca32db3ea5 100644
--- a/eclass/apache-2.eclass
+++ b/eclass/apache-2.eclass
@@ -101,6 +101,9 @@ for module in ${IUSE_MODULES} ; do
                http2)
                        IUSE+=" +apache2_modules_${module}"
                ;;
+               systemd)
+                       IUSE+=" systemd"
+               ;;
                *)
                        IUSE+=" apache2_modules_${module}"
                ;;
@@ -163,6 +166,7 @@ RDEPEND="
                >=dev-libs/openssl-1.0.2:0=
                kernel_linux? ( sys-apps/util-linux )
        )
+       systemd? ( sys-apps/systemd )
 "
 
 DEPEND="${RDEPEND}"
@@ -347,7 +351,12 @@ setup_modules() {
                MY_CONF+=( --disable-suexec )
        fi
 
-       for x in ${IUSE_MODULES} ; do
+       if use systemd ; then
+               MY_CONF+=( --enable-systemd=${mod_type} )
+               MY_MODS+=( systemd )
+       fi
+
+       for x in ${IUSE_MODULES/ systemd} ; do
                if use apache2_modules_${x} ; then
                        MY_CONF+=( --enable-${x}=${mod_type} )
                        MY_MODS+=( ${x} )

Reply via email to