diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2022-03-04 10:53:10 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2022-03-04 11:12:54 +0100 |
commit | 412f32ed8c733160b3e22e146c3e399444c8bb2c (patch) | |
tree | 6d6f50085d336103d14a4d6adaf05e4ff1523fc1 /eclass/apache-2.eclass | |
parent | net-im/signal-desktop-bin: remove old version (diff) | |
download | gentoo-412f32ed8c733160b3e22e146c3e399444c8bb2c.tar.gz gentoo-412f32ed8c733160b3e22e146c3e399444c8bb2c.tar.bz2 gentoo-412f32ed8c733160b3e22e146c3e399444c8bb2c.zip |
apache-2.eclass: Add support for systemd module
Bug: https://bugs.gentoo.org/834568
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'eclass/apache-2.eclass')
-rw-r--r-- | eclass/apache-2.eclass | 11 |
1 files changed, 10 insertions, 1 deletions
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} ) |