apache: don't load session_crypto mod by default
authorSebastian Kemper <redacted>
Sun, 26 Jan 2020 18:09:34 +0000 (19:09 +0100)
committerSebastian Kemper <redacted>
Sun, 26 Jan 2020 18:09:36 +0000 (19:09 +0100)
In OpenWrt this module is available, but not part of the main package.
This commit disables the LoadModule directive for this module. Otherwise
following the installation of the main apache package the start of the
server would fail (due to the absence of this particular module).

Signed-off-by: Sebastian Kemper <redacted>
net/apache/Makefile

index 12094629ca5b1f5432f564ab97c1e6da35fda5fa..ad83aa716fce4d5d21fca52eda050f1ca10b8c05 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=apache
 PKG_VERSION:=2.4.41
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_SOURCE_NAME:=httpd
 
 PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.bz2
@@ -297,6 +297,8 @@ define Package/apache/install
        $(INSTALL_DIR) $(1)/etc/apache2/extra
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/apache2/extra/* \
                                        $(1)/etc/apache2/extra
+       $(SED) '/^LoadModule session_crypto_module/s/^/#/' \
+               $(PKG_INSTALL_DIR)/etc/apache2/apache2.conf
        $(INSTALL_DATA) \
                $(PKG_INSTALL_DIR)/etc/apache2/{apache2.conf,magic,mime.types} \
                                                                $(1)/etc/apache2
git clone https://git.99rst.org/PROJECT