From 6bd63d24f0d147ca891332fe408eb279c9117dc3 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 26 Jan 2020 19:09:34 +0100 Subject: [PATCH] apache: don't load session_crypto mod by default 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 --- net/apache/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/apache/Makefile b/net/apache/Makefile index 12094629c..ad83aa716 100644 --- a/net/apache/Makefile +++ b/net/apache/Makefile @@ -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