From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TxyTI-0007Ey-LV for ptxdist@pengutronix.de; Wed, 23 Jan 2013 12:26:24 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TxyTI-00079j-IY for ptxdist@pengutronix.de; Wed, 23 Jan 2013 12:26:24 +0100 Date: Wed, 23 Jan 2013 12:26:24 +0100 From: Michael Olbrich Message-ID: <20130123112624.GD26180@pengutronix.de> References: <1358936152-14330-1-git-send-email-alexander.stein@systec-electronic.com> <1358936152-14330-2-git-send-email-alexander.stein@systec-electronic.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1358936152-14330-2-git-send-email-alexander.stein@systec-electronic.com> Subject: Re: [ptxdist] [PATCH 2/2] lighttpd: Add config option to select modules explicitly Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 > --- > 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 /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