mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
apache: add extra packages + apache user
This adds extra packages for certain modules (basically the ones that incur further dependencies), support files etc. This is pretty much follows Alpine's example. This updates the httpd.conf patch to _not_ uncomment MIMEMagicFile (because the module isn't loaded by default) and removes that changes that aren't needed anymore (because of the added module support). The patch now only changes the default user. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
@@ -1,63 +1,13 @@
|
||||
Index: httpd-2.4.25/docs/conf/httpd.conf.in
|
||||
===================================================================
|
||||
--- httpd-2.4.25.orig/docs/conf/httpd.conf.in
|
||||
+++ httpd-2.4.25/docs/conf/httpd.conf.in
|
||||
@@ -63,7 +63,6 @@ Listen @@Port@@
|
||||
# Example:
|
||||
# LoadModule foo_module modules/mod_foo.so
|
||||
#
|
||||
-@@LoadModule@@
|
||||
|
||||
<IfModule unixd_module>
|
||||
#
|
||||
@@ -74,8 +73,8 @@ Listen @@Port@@
|
||||
--- a/docs/conf/httpd.conf.in
|
||||
+++ b/docs/conf/httpd.conf.in
|
||||
@@ -74,8 +74,8 @@ Listen @@Port@@
|
||||
# It is usually good practice to create a dedicated user and group for
|
||||
# running httpd, as with most system services.
|
||||
#
|
||||
-User daemon
|
||||
-Group daemon
|
||||
+User nobody
|
||||
+Group nogroup
|
||||
+User apache
|
||||
+Group apache
|
||||
|
||||
</IfModule>
|
||||
|
||||
@@ -188,7 +187,7 @@ ErrorLog "@rel_logfiledir@/error_log"
|
||||
# Possible values include: debug, info, notice, warn, error, crit,
|
||||
# alert, emerg.
|
||||
#
|
||||
-LogLevel warn
|
||||
+LogLevel debug
|
||||
|
||||
<IfModule log_config_module>
|
||||
#
|
||||
@@ -330,7 +329,7 @@ LogLevel warn
|
||||
# contents of the file itself to determine its type. The MIMEMagicFile
|
||||
# directive tells the module where the hint definitions are located.
|
||||
#
|
||||
-#MIMEMagicFile @rel_sysconfdir@/magic
|
||||
+MIMEMagicFile @rel_sysconfdir@/magic
|
||||
|
||||
#
|
||||
# Customizable error responses come in three flavors:
|
||||
@@ -360,7 +359,7 @@ LogLevel warn
|
||||
# Defaults: EnableMMAP On, EnableSendfile Off
|
||||
#
|
||||
#EnableMMAP off
|
||||
-#EnableSendfile on
|
||||
+EnableSendfile off
|
||||
|
||||
# Supplemental configuration
|
||||
#
|
||||
@@ -411,8 +410,8 @@ Include @rel_sysconfdir@/extra/proxy-htm
|
||||
# starting without SSL on platforms with no /dev/random equivalent
|
||||
# but a statically compiled-in mod_ssl.
|
||||
#
|
||||
-<IfModule ssl_module>
|
||||
-SSLRandomSeed startup builtin
|
||||
-SSLRandomSeed connect builtin
|
||||
-</IfModule>
|
||||
+#<IfModule ssl_module>
|
||||
+#SSLRandomSeed startup builtin
|
||||
+#SSLRandomSeed connect builtin
|
||||
+#</IfModule>
|
||||
|
||||
|
||||
@@ -5,10 +5,8 @@ Author: Jean-Michel Vourgère <nirgal@debian.org>
|
||||
Forwarded: no
|
||||
Last-Update: 2015-08-11
|
||||
|
||||
Index: apache2/server/buildmark.c
|
||||
===================================================================
|
||||
--- apache2.orig/server/buildmark.c
|
||||
+++ apache2/server/buildmark.c
|
||||
--- a/server/buildmark.c
|
||||
+++ b/server/buildmark.c
|
||||
@@ -17,11 +17,7 @@
|
||||
#include "ap_config.h"
|
||||
#include "httpd.h"
|
||||
@@ -22,16 +20,14 @@ Index: apache2/server/buildmark.c
|
||||
|
||||
AP_DECLARE(const char *) ap_get_server_built()
|
||||
{
|
||||
Index: apache2/server/Makefile.in
|
||||
===================================================================
|
||||
--- apache2.orig/server/Makefile.in
|
||||
+++ apache2/server/Makefile.in
|
||||
--- a/server/Makefile.in
|
||||
+++ b/server/Makefile.in
|
||||
@@ -1,3 +1,4 @@
|
||||
+export LC_ALL = C
|
||||
|
||||
CLEAN_TARGETS = gen_test_char test_char.h \
|
||||
ApacheCoreOS2.def httpd.exp export_files \
|
||||
@@ -85,8 +86,8 @@ httpd.exp: exports.c export_vars.h
|
||||
@@ -87,8 +88,8 @@ httpd.exp: exports.c export_vars.h
|
||||
@echo "#! ." > $@
|
||||
@echo "* This file was AUTOGENERATED at build time." >> $@
|
||||
@echo "* Please do not edit by hand." >> $@
|
||||
|
||||
Reference in New Issue
Block a user