From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/2] lighttpd: Add config option to select modules explicitly
Date: Wed, 23 Jan 2013 12:26:24 +0100 [thread overview]
Message-ID: <20130123112624.GD26180@pengutronix.de> (raw)
In-Reply-To: <1358936152-14330-2-git-send-email-alexander.stein@systec-electronic.com>
Hi,
What's the usecase for this? This are a lot of options and hard to
maintain. And the plugins are so small, that I don't think it's worth it to
save the space.
Michael
On Wed, Jan 23, 2013 at 11:15:52AM +0100, Alexander Stein wrote:
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
> ---
> rules/lighttpd.in | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> rules/lighttpd.make | 99 ++++++++++++++++++++++++++
> 2 files changed, 300 insertions(+)
>
> diff --git a/rules/lighttpd.in b/rules/lighttpd.in
> index d84fec7..6a7f577 100644
> --- a/rules/lighttpd.in
> +++ b/rules/lighttpd.in
> @@ -146,5 +146,206 @@ config LIGHTTPD_GENERIC_SITE
> from <ptxdist-install>/generic/var/www/lighttpd.html
> and some php demos.
>
> +menuconfig LIGHTTPD_SELECT_MODULES
> + bool
> + prompt "Select single modules"
> + help
> + This installs single modules, which can be selected in this menu.
> +
> +if LIGHTTPD_SELECT_MODULES
> +
> +config LIGHTTPD_MOD_ACCESS
> + bool
> + prompt "mod_access"
> + help
> + Enable mod_access.
> +
> +config LIGHTTPD_MOD_ACCESSLOG
> + bool
> + prompt "mod_accesslog"
> + help
> + Enable mod_accesslog.
> +
> +config LIGHTTPD_MOD_ALIAS
> + bool
> + prompt "mod_alias"
> + help
> + Enable mod_alias.
> +
> +config LIGHTTPD_MOD_AUTH
> + bool
> + prompt "mod_auth"
> + help
> + Enable mod_auth.
> +
> +config LIGHTTPD_MOD_CGI
> + bool
> + prompt "mod_cgi"
> + help
> + Enable mod_cgi.
> +
> +config LIGHTTPD_MOD_CML
> + bool
> + prompt "mod_cml"
> + help
> + Enable mod_cml.
> +
> +config LIGHTTPD_MOD_COMPRESS
> + bool
> + prompt "mod_compress"
> + help
> + Enable mod_compress.
> +
> +config LIGHTTPD_MOD_DIRLISTING
> + bool
> + prompt "mod_dirlisting"
> + help
> + Enable mod_dirlisting.
> +
> +config LIGHTTPD_MOD_EVASIVE
> + bool
> + prompt "mod_evasive"
> + help
> + Enable mod_evasive.
> +
> +config LIGHTTPD_MOD_EVHOST
> + bool
> + prompt "mod_evhost"
> + help
> + Enable mod_evhost.
> +
> +config LIGHTTPD_MOD_EXPIRE
> + bool
> + prompt "mod_expire"
> + help
> + Enable mod_expire.
> +
> +config LIGHTTPD_MOD_EXTFORWARD
> + bool
> + prompt "mod_extforward"
> + help
> + Enable mod_extforward.
> +
> +config LIGHTTPD_MOD_FASTCGI
> + bool
> + prompt "mod_fastcgi"
> + help
> + Enable mod_fastcgi.
> +
> +config LIGHTTPD_MOD_FLV_STREAMING
> + bool
> + prompt "mod_flv_streaming"
> + help
> + Enable mod_flv_streaming.
> +
> +config LIGHTTPD_MOD_INDEXFILE
> + bool
> + prompt "mod_indexfile"
> + help
> + Enable mod_indexfile.
> +
> +config LIGHTTPD_MOD_MAGNET
> + bool
> + prompt "mod_magnet"
> + help
> + Enable mod_magnet.
> +
> +config LIGHTTPD_MOD_MYSQL_VHOST
> + bool
> + prompt "mod_mysql_vhost"
> + help
> + Enable mod_mysql_vhost.
> +
> +config LIGHTTPD_MOD_PROXY
> + bool
> + prompt "mod_proxy"
> + help
> + Enable mod_proxy.
> +
> +config LIGHTTPD_MOD_REDIRECT
> + bool
> + prompt "mod_redirect"
> + help
> + Enable mod_redirect.
> +
> +config LIGHTTPD_MOD_REWRITE
> + bool
> + prompt "mod_rewrite"
> + help
> + Enable mod_rewrite.
> +
> +config LIGHTTPD_MOD_RRDTOOL
> + bool
> + prompt "mod_rrdtool"
> + help
> + Enable mod_rrdtool.
> +
> +config LIGHTTPD_MOD_SCGI
> + bool
> + prompt "mod_scgi"
> + help
> + Enable mod_scgi.
> +
> +config LIGHTTPD_MOD_SECDOWNLOAD
> + bool
> + prompt "mod_secdownload"
> + help
> + Enable mod_secdownload.
> +
> +config LIGHTTPD_MOD_SETENV
> + bool
> + prompt "mod_secdownload"
> + help
> + Enable mod_secdownload.
> +
> +config LIGHTTPD_MOD_SIMPLE_VHOST
> + bool
> + prompt "mod_simple_vhost"
> + help
> + Enable mod_simple_vhost.
> +
> +config LIGHTTPD_MOD_SSI
> + bool
> + prompt "mod_ssi"
> + help
> + Enable mod_ssi.
> +
> +config LIGHTTPD_MOD_STATICFILE
> + bool
> + prompt "mod_staticfile"
> + help
> + Enable mod_staticfile.
> +
> +config LIGHTTPD_MOD_STATUS
> + bool
> + prompt "mod_status"
> + help
> + Enable mod_status.
> +
> +config LIGHTTPD_MOD_TRIGGER_B4_DL
> + bool
> + prompt "mod_trigger_b4_dl"
> + help
> + Enable mod_trigger_b4_dl.
> +
> +config LIGHTTPD_MOD_USERDIR
> + bool
> + prompt "mod_userdir"
> + help
> + Enable mod_userdir.
> +
> +config LIGHTTPD_MOD_USERTRACK
> + bool
> + prompt "mod_usertrack"
> + help
> + Enable mod_usertrack.
> +
> +config LIGHTTPD_MOD_WEBDAV
> + bool
> + prompt "mod_webdav"
> + help
> + Enable mod_webdav.
> +
> +endif
>
> endif
> diff --git a/rules/lighttpd.make b/rules/lighttpd.make
> index 359a991..f5fc49a 100644
> --- a/rules/lighttpd.make
> +++ b/rules/lighttpd.make
> @@ -76,6 +76,7 @@ $(STATEDIR)/lighttpd.targetinstall:
> @$(call install_copy, lighttpd, 0, 0, 0755, -, \
> /usr/sbin/lighttpd-angel)
>
> +ifndef PTXCONF_LIGHTTPD_SELECT_MODULES
> # # modules
> @cd $(LIGHTTPD_PKGDIR) && \
> find ./usr/lib -name "*.so" | \
> @@ -83,6 +84,104 @@ $(STATEDIR)/lighttpd.targetinstall:
> $(call install_copy, lighttpd, 0, 0, 0644, -, \
> $${file##.}) \
> done
> +else
> +ifdef PTXCONF_LIGHTTPD_MOD_ACCESS
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_access.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_ACCESSLOG
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_accesslog.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_ALIAS
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_alias.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_AUTH
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_auth.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_CGI
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_cgi.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_CML
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_cml.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_COMPRESS
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_compress.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_DIRLISTING
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_dirlisting.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_EVASIVE
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_evasive.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_EVHOST
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_evhost.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_EXPIRE
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_expire.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_EXTFORWARD
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_extforward.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_FASTCGI
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_fastcgi.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_FLV_STREAMING
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_flv_streaming.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_INDEXFILE
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_indexfile.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_MAGNET
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_magnet.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_MYSQL_VHOST
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_mysql_vhost.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_PROXY
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_proxy.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_REDIRECT
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_redirect.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_REWRITE
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_rewrite.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_RRDTOOL
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_rrdtool.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_SCGI
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_scgi.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_SECDOWNLOAD
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_secdownload.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_SETENV
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_setenv.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_SIMPLE_VHOST
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_simple_vhost.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_SSI
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_ssi.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_STATICFILE
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_staticfile.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_STATUS
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_status.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_TRIGGER_B4_DL
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_trigger_b4_dl.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_USERDIR
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_userdir.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_USERTRACK
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_usertrack.so)
> +endif
> +ifdef PTXCONF_LIGHTTPD_MOD_WEBDAV
> + @$(call install_copy, lighttpd, 0, 0, 0644, -, /usr/lib/mod_webdav.so)
> +endif
> +endif
>
> # #
> # # configs
> --
> 1.8.1.1
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2013-01-23 11:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 10:15 [ptxdist] [PATCH 1/2] lighttpd: Bump to version 1.4.31 Alexander Stein
2013-01-23 10:15 ` [ptxdist] [PATCH 2/2] lighttpd: Add config option to select modules explicitly Alexander Stein
2013-01-23 11:26 ` Michael Olbrich [this message]
2013-01-23 12:28 ` Alexander Stein
2013-01-25 9:47 ` Michael Olbrich
2013-01-28 13:14 ` Alexander Stein
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=20130123112624.GD26180@pengutronix.de \
--to=m.olbrich@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