mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
Make OpenSSL support to be configurable and get the install target footprint to be as small as possible. Also clean up the clean target. "Clean up, clean up, everybody lend a hand! Clean up, clean up, you can do it, yes you can."
This commit is contained in:
parent
afab848a5e
commit
bf45b77078
@ -1,13 +1,21 @@
|
|||||||
config BR2_PACKAGE_LIGHTTPD
|
config BR2_PACKAGE_LIGHTTPD
|
||||||
bool "lighttpd"
|
bool "lighttpd"
|
||||||
default n
|
default n
|
||||||
select BR2_PACKAGE_OPENSSL
|
|
||||||
help
|
help
|
||||||
lighttpd a secure, fast, compliant and very flexible web-server
|
lighttpd a secure, fast, compliant and very flexible web-server
|
||||||
which has been optimized for high-performance environments. It has a very
|
which has been optimized for high-performance environments. It
|
||||||
low memory footprint compared to other webservers and takes care of cpu-load.
|
has a very low memory footprint compared to other webservers and
|
||||||
Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression,
|
takes care of cpu-load. Its advanced feature-set (FastCGI, CGI,
|
||||||
URL-Rewriting and many more) make lighttpd the perfect webserver-software
|
Auth, Output-Compression, URL-Rewriting and many more) make
|
||||||
for every server that is suffering load problems.
|
lighttpd the perfect webserver-software for every server that
|
||||||
|
is suffering load problems.
|
||||||
|
|
||||||
http://www.lighttpd.net/
|
http://www.lighttpd.net/
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIGHTTPD_OPENSSL
|
||||||
|
bool "lighttpd-openssl"
|
||||||
|
default y
|
||||||
|
depends on BR2_PACKAGE_LIGHTTPD
|
||||||
|
select BR2_PACKAGE_OPENSSL
|
||||||
|
help
|
||||||
|
Enable OpenSSL support for libghttpd.
|
||||||
|
@ -13,11 +13,11 @@ LIGHTTPD_BINARY:=src/lighttpd
|
|||||||
LIGHTTPD_TARGET_BINARY:=usr/sbin/lighttpd
|
LIGHTTPD_TARGET_BINARY:=usr/sbin/lighttpd
|
||||||
|
|
||||||
$(DL_DIR)/$(LIGHTTPD_SOURCE):
|
$(DL_DIR)/$(LIGHTTPD_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_SOURCE)
|
$(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_SOURCE)
|
||||||
ifneq ($(LIGHTTPD_PATCH),)
|
ifneq ($(LIGHTTPD_PATCH),)
|
||||||
LIGHTTPD_PATCH_FILE:=$(DL_DIR)/$(LIGHTTPD_PATCH)
|
LIGHTTPD_PATCH_FILE:=$(DL_DIR)/$(LIGHTTPD_PATCH)
|
||||||
$(LIGHTTPD_PATCH_FILE):
|
$(LIGHTTPD_PATCH_FILE):
|
||||||
$(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_PATCH)
|
$(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_PATCH)
|
||||||
endif
|
endif
|
||||||
lighttpd-source: $(DL_DIR)/$(LIGHTTPD_SOURCE) $(LIGHTTPD_PATCH_FILE)
|
lighttpd-source: $(DL_DIR)/$(LIGHTTPD_SOURCE) $(LIGHTTPD_PATCH_FILE)
|
||||||
|
|
||||||
@ -34,6 +34,12 @@ endif
|
|||||||
$(SED) 's/-lfs/-largefile/g;s/_lfs/_largefile/g' $(LIGHTTPD_DIR)/configure
|
$(SED) 's/-lfs/-largefile/g;s/_lfs/_largefile/g' $(LIGHTTPD_DIR)/configure
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
ifeq ($(strip $(BR2_PACKAGE_LIGHTTPD_OPENSSL)),y)
|
||||||
|
LIGHTTPD_OPENSSL:=--with-openssl
|
||||||
|
else
|
||||||
|
LIGHTTPD_OPENSSL:=--without-openssl
|
||||||
|
endif
|
||||||
|
|
||||||
$(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked
|
$(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked
|
||||||
(cd $(LIGHTTPD_DIR); rm -rf config.cache; \
|
(cd $(LIGHTTPD_DIR); rm -rf config.cache; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
@ -43,11 +49,11 @@ $(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked
|
|||||||
--host=$(GNU_TARGET_NAME) \
|
--host=$(GNU_TARGET_NAME) \
|
||||||
--build=$(GNU_HOST_NAME) \
|
--build=$(GNU_HOST_NAME) \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=/lib \
|
--libdir=/usr/lib/lighttpd \
|
||||||
--libexecdir=/usr/lib \
|
--libexecdir=/usr/lib \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--with-openssl \
|
$(LIGHTTPD_OPENSSL) \
|
||||||
--without-pcre \
|
--without-pcre \
|
||||||
--program-prefix="" \
|
--program-prefix="" \
|
||||||
$(DISABLE_IPV6) \
|
$(DISABLE_IPV6) \
|
||||||
@ -60,12 +66,27 @@ $(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY): $(LIGHTTPD_DIR)/.configured
|
|||||||
|
|
||||||
$(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY): $(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY)
|
$(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY): $(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY)
|
||||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(LIGHTTPD_DIR) install
|
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(LIGHTTPD_DIR) install
|
||||||
|
@rm -rf $(TARGET_DIR)/usr/share/man $(TARGET_DIR)/usr/man
|
||||||
|
@rm -rf $(TARGET_DIR)/usr/lib/lighttpd/*.la
|
||||||
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/lighttpd/*.so
|
||||||
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
|
||||||
|
@if [ ! -f $(TARGET_DIR)/etc/lighttpd/lighttpd.conf ] ; then \
|
||||||
|
$(INSTALL) -m 0644 -D $(LIGHTTPD_DIR)/doc/lighttpd.conf $(TARGET_DIR)/etc/lighttpd/lighttpd.conf; \
|
||||||
|
fi;
|
||||||
$(INSTALL) -m 0755 -D $(LIGHTTPD_DIR)/openwrt/S51lighttpd $(TARGET_DIR)/etc/init.d/S99lighttpd
|
$(INSTALL) -m 0755 -D $(LIGHTTPD_DIR)/openwrt/S51lighttpd $(TARGET_DIR)/etc/init.d/S99lighttpd
|
||||||
|
|
||||||
|
ifeq ($(strip $(BR2_PACKAGE_LIGHTTPD_OPENSSL)),y)
|
||||||
lighttpd: uclibc openssl $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
|
lighttpd: uclibc openssl $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
|
||||||
|
else
|
||||||
|
lighttpd: uclibc $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
|
||||||
|
endif
|
||||||
|
|
||||||
lighttpd-clean:
|
lighttpd-clean:
|
||||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(LIGHTTPD_DIR) uninstall
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(LIGHTTPD_DIR) uninstall
|
||||||
|
@rm -rf $(TARGET_DIR)/usr/lib/lighttpd
|
||||||
|
@rm -f $(TARGET_DIR)/etc/init.d/S99lighttpd
|
||||||
|
@rm -f $(TARGET_DIR)/etc/lighttpd/lighttpd.conf
|
||||||
|
@rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/etc/lighttpd
|
||||||
-$(MAKE) -C $(LIGHTTPD_DIR) clean
|
-$(MAKE) -C $(LIGHTTPD_DIR) clean
|
||||||
|
|
||||||
lighttpd-dirclean:
|
lighttpd-dirclean:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user