add package for lighttpd per case 0000509
This commit is contained in:
parent
3c0209f288
commit
7b4c855674
@ -62,6 +62,7 @@ source "package/libpng/Config.in"
|
||||
source "package/libsysfs/Config.in"
|
||||
source "package/libtool/Config.in"
|
||||
source "package/libusb/Config.in"
|
||||
source "package/lighttpd/Config.in"
|
||||
source "package/links/Config.in"
|
||||
source "package/lrzsz/Config.in"
|
||||
source "package/ltp-testsuite/Config.in"
|
||||
|
13
package/lighttpd/Config.in
Normal file
13
package/lighttpd/Config.in
Normal file
@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_LIGHTTPD
|
||||
bool "lighttpd"
|
||||
default n
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
lighttpd a secure, fast, compliant and very flexible web-server
|
||||
which has been optimized for high-performance environments. It has a very
|
||||
low memory footprint compared to other webservers and takes care of cpu-load.
|
||||
Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression,
|
||||
URL-Rewriting and many more) make lighttpd the perfect webserver-software
|
||||
for every server that is suffering load problems.
|
||||
|
||||
http://www.lighttpd.net/
|
70
package/lighttpd/lighttpd.mk
Normal file
70
package/lighttpd/lighttpd.mk
Normal file
@ -0,0 +1,70 @@
|
||||
#############################################################
|
||||
#
|
||||
# lighttpd
|
||||
#
|
||||
#############################################################
|
||||
LIGHTTPD_VER:=1.4.3
|
||||
LIGHTTPD_SOURCE:=lighttpd-$(LIGHTTPD_VER).tar.gz
|
||||
LIGHTTPD_SITE:=http://www.lighttpd.net/download
|
||||
LIGHTTPD_DIR:=$(BUILD_DIR)/lighttpd-$(LIGHTTPD_VER)
|
||||
LIGHTTPD_CAT:=zcat
|
||||
LIGHTTPD_BINARY:=src/lighttpd
|
||||
LIGHTTPD_TARGET_BINARY:=usr/sbin/lighttpd
|
||||
|
||||
$(DL_DIR)/$(LIGHTTPD_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(LIGHTTPD_SITE)/$(LIGHTTPD_SOURCE)
|
||||
|
||||
lighttpd-source: $(DL_DIR)/$(LIGHTTPD_SOURCE)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# build lighttpd for use on the target system
|
||||
#
|
||||
#############################################################
|
||||
$(LIGHTTPD_DIR)/.unpacked: $(DL_DIR)/$(LIGHTTPD_SOURCE)
|
||||
$(LIGHTTPD_CAT) $(DL_DIR)/$(LIGHTTPD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
toolchain/patch-kernel.sh $(LIGHTTPD_DIR) package/lighttpd/ lighttpd\*.patch
|
||||
touch $(LIGHTTPD_DIR)/.unpacked
|
||||
|
||||
$(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked
|
||||
(cd $(LIGHTTPD_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-openssl \
|
||||
--without-pcre \
|
||||
--program-prefix="" \
|
||||
);
|
||||
touch $(LIGHTTPD_DIR)/.configured
|
||||
|
||||
$(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY): $(LIGHTTPD_DIR)/.configured
|
||||
$(MAKE) -C $(LIGHTTPD_DIR)
|
||||
|
||||
$(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY): $(LIGHTTPD_DIR)/$(LIGHTTPD_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(LIGHTTPD_DIR) install
|
||||
$(INSTALL) -m 0755 -D $(LIGHTTPD_DIR)/debian/init.d $(TARGET_DIR)/etc/init.d/S99lighttpd
|
||||
|
||||
lighttpd: uclibc openssl $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
|
||||
|
||||
lighttpd-clean:
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(LIGHTTPD_DIR) uninstall
|
||||
-$(MAKE) -C $(LIGHTTPD_DIR) clean
|
||||
|
||||
lighttpd-dirclean:
|
||||
rm -rf $(LIGHTTPD_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(strip $(BR2_PACKAGE_LIGHTTPD)),y)
|
||||
TARGETS+=lighttpd
|
||||
endif
|
Loading…
Reference in New Issue
Block a user