Changeset 31097 for packages


Ignore:
Timestamp:
2012-03-27T21:20:26+02:00 (4 years ago)
Author:
florian
Message:

[package] lighttpd: configure with OpenSSL support only if the user asks for it

SSL support adds a quite large dependency to lighttpd when compiled
in. On a 32 bit platform, libcrypto is roughly 1MB, to which one must
add the size of libssl (roughly 250KB). This is 2 to 5 times the size
of a typical lighttpd embedded installation.

SSL support is only needed if one enables the SSL engine in the
lighttpd.conf configuration file.

This patch introduces a configuration option that allows the user to
choose whether or not he wants to compile SSL support in. It defaults
to 'y' only if libopenssl is already selected (either by active
selection or because libopenssl is a dependency of another package).

Signed-off-by: Emmanuel Deloget <logout@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/lighttpd/Makefile

    r30637 r31097  
    1010PKG_NAME:=lighttpd 
    1111PKG_VERSION:=1.4.30 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 
     
    3131  $(call Package/lighttpd/Default) 
    3232  MENU:=1 
    33   DEPENDS:=+libopenssl +libpcre +libpthread 
     33  DEPENDS:=+LIGHTTPD_SSL:libopenssl +libpcre +libpthread 
    3434  TITLE:=A flexible and lightweight web server 
     35endef 
     36 
     37define Package/lighttpd/config 
     38config LIGHTTPD_SSL 
     39        bool "SSL support" 
     40        depends on PACKAGE_lighttpd 
     41        default y if PACKAGE_libopenssl 
     42        help 
     43          Implements SSL support in lighttpd (using libopenssl). This 
     44          option is required if you enable the SSL engine in your 
     45          lighttpd confguration file. 
    3546endef 
    3647 
     
    223234        --without-memcache \ 
    224235        --without-mysql \ 
    225         --with-openssl="$(STAGING_DIR)/usr" \ 
    226236        --with-pcre \ 
    227237        --without-valgrind \ 
     
    230240CONFIGURE_VARS+= \ 
    231241        PCRE_LIB="-lpcre" \ 
     242 
     243ifneq ($(strip $(CONFIG_LIGHTTPD_SSL)),) 
     244  CONFIGURE_ARGS+= \ 
     245        --with-openssl="$(STAGING_DIR)/usr" 
     246else 
     247  CONFIGURE_ARGS+= \ 
     248        --without-openssl 
     249endif 
    232250 
    233251ifneq ($(SDK)$(CONFIG_PACKAGE_lighttpd-mod-webdav),) 
Note: See TracChangeset for help on using the changeset viewer.