mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2] lighttpd: make more modules configurable
Date: Thu, 31 Jul 2014 10:30:43 +0200	[thread overview]
Message-ID: <1406795443-9075-1-git-send-email-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20140731081709.GC29377@pengutronix.de>

This comes handy if a package installs config sniplets to
/etc/lighttpd/conf.d that require the respective modules.

The three modules that used to be the default for LIGHTTPD_MOD_EXTRA got
a "default y".

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 rules/lighttpd.in   | 35 ++++++++++++++++++++++++++++++++++-
 rules/lighttpd.make |  5 +++++
 2 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/rules/lighttpd.in b/rules/lighttpd.in
index 5e132f286ddb..aac0756bad3e 100644
--- a/rules/lighttpd.in
+++ b/rules/lighttpd.in
@@ -83,6 +83,33 @@ endmenu
 
 menu "modules                     "
 
+config LIGHTTPD_MOD_ACCESS
+	bool
+	prompt "mod_access"
+	default y
+	help
+	  Deny access to some files.
+
+config LIGHTTPD_MOD_ACCESSLOG
+	bool
+	prompt "mod_accesslog"
+	default y
+	help
+	  flexible logging of requests served
+
+config LIGHTTPD_MOD_ALIAS
+	bool
+	prompt "mod_alias"
+	help
+	  Specify a special document-root for a given url-subset.
+
+config LIGHTTPD_MOD_AUTH
+	bool
+	prompt "mod_auth"
+	default y
+	help
+	  User authentication
+
 config LIGHTTPD_MOD_CML
 	bool
 	select LIGHTTPD_LUA
@@ -136,6 +163,12 @@ config LIGHTTPD_MOD_MAGNET
 	help
 	  A module to control the request handling
 
+config LIGHTTPD_MOD_REWRITE
+	bool
+	prompt "mod_rewrite"
+	help
+	  Module for URL rewriting
+
 config LIGHTTPD_MOD_TRIGGER_B4_DL
 	bool
 	select LIGHTTPD_MEMCACHE
@@ -170,7 +203,7 @@ endif
 config LIGHTTPD_MOD_EXTRA
 	string
 	prompt "extra modules"
-	default "mod_access mod_accesslog mod_auth"
+	default ""
 	help
 	  Space sparated list of modules to add to lighttpd.conf
 
diff --git a/rules/lighttpd.make b/rules/lighttpd.make
index 2a1f19200877..60dc494d1120 100644
--- a/rules/lighttpd.make
+++ b/rules/lighttpd.make
@@ -63,10 +63,15 @@ LIGHTTPD_AUTOCONF := \
 # ----------------------------------------------------------------------------
 
 LIGHTTPD_MODULES-y :=
+LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_ACCESS)		+= mod_access
+LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_ACCESSLOG)	+= mod_accesslog
+LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_ALIAS)		+= mod_alias
+LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_AUTH)		+= mod_auth
 LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_CML)		+= mod_cml
 LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_COMPRESS)	+= mod_compress
 LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_FASTCGI)	+= mod_fastcgi
 LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_MAGNET)		+= mod_magnet
+LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_REWRITE)	+= mod_rewrite
 LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_TRIGGER_B4_DL)	+= mod_trigger_b4_dl
 LIGHTTPD_MODULES-$(PTXCONF_LIGHTTPD_MOD_WEBDAV)		+= mod_webdav
 LIGHTTPD_MODULES-y += $(call remove_quotes,$(PTXCONF_LIGHTTPD_MOD_EXTRA))
-- 
2.0.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2014-07-31  8:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 18:12 [ptxdist] [PATCH] " Uwe Kleine-König
2014-07-31  8:17 ` Michael Olbrich
2014-07-31  8:30   ` Uwe Kleine-König [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406795443-9075-1-git-send-email-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox