2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-01-23 20:46:56 +01:00
|
|
|
#
|
|
|
|
# lighttpd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-07-01 15:31:59 +02:00
|
|
|
|
2013-12-18 19:20:02 +01:00
|
|
|
LIGHTTPD_VERSION_MAJOR = 1.4
|
2017-01-16 14:17:48 +01:00
|
|
|
LIGHTTPD_VERSION = $(LIGHTTPD_VERSION_MAJOR).45
|
2013-09-06 08:14:15 +02:00
|
|
|
LIGHTTPD_SOURCE = lighttpd-$(LIGHTTPD_VERSION).tar.xz
|
2013-12-18 19:20:02 +01:00
|
|
|
LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-$(LIGHTTPD_VERSION_MAJOR).x
|
2017-03-30 15:43:38 +02:00
|
|
|
LIGHTTPD_LICENSE = BSD-3-Clause
|
2012-08-11 22:12:41 +02:00
|
|
|
LIGHTTPD_LICENSE_FILES = COPYING
|
2012-10-22 17:47:52 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES = host-pkgconf
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS = \
|
2008-04-24 15:18:50 +02:00
|
|
|
--libdir=/usr/lib/lighttpd \
|
2015-03-30 23:07:30 +02:00
|
|
|
--libexecdir=/usr/lib
|
2006-01-23 20:46:56 +01:00
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += openssl
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --with-openssl
|
2007-07-17 02:27:10 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --without-openssl
|
2007-09-19 22:13:08 +02:00
|
|
|
endif
|
2006-01-23 20:46:56 +01:00
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_ZLIB),y)
|
2008-07-05 10:20:34 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += zlib
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --with-zlib
|
2008-07-05 10:20:34 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --without-zlib
|
2008-07-05 10:20:34 +02:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_BZIP2),y)
|
2008-07-05 10:20:34 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += bzip2
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --with-bzip2
|
2008-07-05 10:20:34 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --without-bzip2
|
2008-07-05 10:20:34 +02:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_PCRE),y)
|
2010-07-22 09:08:34 +02:00
|
|
|
LIGHTTPD_CONF_ENV = PCRECONFIG=$(STAGING_DIR)/usr/bin/pcre-config
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += pcre
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --with-pcre
|
2007-07-17 02:27:10 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --without-pcre
|
2007-07-17 02:27:10 +02:00
|
|
|
endif
|
2006-01-23 20:46:56 +01:00
|
|
|
|
2011-03-03 14:53:30 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_WEBDAV),y)
|
|
|
|
LIGHTTPD_DEPENDENCIES += libxml2 sqlite
|
2016-07-23 16:56:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --with-webdav-props
|
|
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
|
|
|
LIGHTTPD_CONF_OPTS += --with-webdav-locks
|
|
|
|
LIGHTTPD_DEPENDENCIES += util-linux
|
|
|
|
else
|
|
|
|
LIGHTTPD_CONF_OPTS += --without-webdav-locks
|
|
|
|
endif
|
2011-03-03 14:53:30 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --without-webdav-props --without-webdav-locks
|
2011-03-03 14:53:30 +01:00
|
|
|
endif
|
|
|
|
|
2011-10-28 15:09:23 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_LUA),y)
|
|
|
|
LIGHTTPD_DEPENDENCIES += lua
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --with-lua
|
2011-10-28 15:09:23 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIGHTTPD_CONF_OPTS += --without-lua
|
2011-10-28 15:09:23 +02:00
|
|
|
endif
|
|
|
|
|
2012-04-20 06:04:20 +02:00
|
|
|
define LIGHTTPD_INSTALL_CONFIG
|
2012-07-21 20:47:51 +02:00
|
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/lighttpd/conf.d
|
|
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/var/www
|
2014-12-02 00:22:19 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/config/lighttpd.conf \
|
2014-11-30 15:18:44 +01:00
|
|
|
$(TARGET_DIR)/etc/lighttpd/lighttpd.conf
|
2014-12-02 00:22:19 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/config/modules.conf \
|
2014-11-30 15:18:44 +01:00
|
|
|
$(TARGET_DIR)/etc/lighttpd/modules.conf
|
2014-12-02 00:22:19 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/access_log.conf \
|
2014-11-30 15:18:44 +01:00
|
|
|
$(TARGET_DIR)/etc/lighttpd/conf.d/access_log.conf
|
2014-12-02 00:22:19 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/debug.conf \
|
2014-11-30 15:18:44 +01:00
|
|
|
$(TARGET_DIR)/etc/lighttpd/conf.d/debug.conf
|
2014-12-02 00:22:19 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/dirlisting.conf \
|
2014-11-30 15:18:44 +01:00
|
|
|
$(TARGET_DIR)/etc/lighttpd/conf.d/dirlisting.conf
|
2014-12-02 00:22:19 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/mime.conf \
|
2014-11-30 15:18:44 +01:00
|
|
|
$(TARGET_DIR)/etc/lighttpd/conf.d/mime.conf
|
2012-04-20 06:04:20 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
LIGHTTPD_POST_INSTALL_TARGET_HOOKS += LIGHTTPD_INSTALL_CONFIG
|
|
|
|
|
2012-07-28 09:21:21 +02:00
|
|
|
define LIGHTTPD_INSTALL_INIT_SYSV
|
2014-12-02 00:22:19 +01:00
|
|
|
$(INSTALL) -D -m 0755 package/lighttpd/S50lighttpd \
|
2014-11-30 15:18:44 +01:00
|
|
|
$(TARGET_DIR)/etc/init.d/S50lighttpd
|
2012-07-22 19:17:48 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-28 09:21:21 +02:00
|
|
|
define LIGHTTPD_INSTALL_INIT_SYSTEMD
|
2015-03-20 20:13:52 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/systemd/lighttpd.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/lighttpd.service
|
2012-07-28 09:21:21 +02:00
|
|
|
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
|
2015-07-13 20:37:39 +02:00
|
|
|
ln -fs ../../../../usr/lib/systemd/system/lighttpd.service \
|
2012-07-28 09:21:21 +02:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/lighttpd.service
|
|
|
|
endef
|
2012-07-22 19:17:48 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|