Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
From bb0a1cc656b2df4184a0794fb67ae74c634c1ecd Mon Sep 17 00:00:00 2001
|
||||
From: Maxime Ripard <maxime.ripard@free-electrons.com>
|
||||
Date: Mon, 13 Dec 2021 22:07:17 +0100
|
||||
Subject: [PATCH] Modify the default lighttpd configuration file to have one a
|
||||
starting conf
|
||||
|
||||
* Changed the log path to /var/log and logs filenames
|
||||
* Disable IPv6 (Dropped since 1.4.68)
|
||||
* Do not setuid to a user that doesn't exist on the system
|
||||
* Change the network backend to writev since linux-sendfile fails on buildroot
|
||||
|
||||
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
||||
Signed-off-by: Simon Dawson <spdawson@gmail.com>
|
||||
[Gustavo: update for 1.4.37]
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
[Thomas: update for 1.4.69 - drop server.use-ipv6]
|
||||
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
|
||||
[Thomas: update for 1.4.77 - move lighttpd.conf to lighttpd.annotated.conf]
|
||||
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
|
||||
---
|
||||
doc/config/conf.d/access_log.conf | 2 +-
|
||||
doc/config/lighttpd.annotated.conf | 14 +++++++-------
|
||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/doc/config/conf.d/access_log.conf b/doc/config/conf.d/access_log.conf
|
||||
index f8294802..9886cddf 100644
|
||||
--- a/doc/config/conf.d/access_log.conf
|
||||
+++ b/doc/config/conf.d/access_log.conf
|
||||
@@ -7,7 +7,7 @@ server.modules += ( "mod_accesslog" )
|
||||
##
|
||||
## Default access log.
|
||||
##
|
||||
-accesslog.filename = log_root + "/access.log"
|
||||
+accesslog.filename = log_root + "/lighttpd-access.log"
|
||||
|
||||
##
|
||||
## The default format produces CLF compatible output.
|
||||
diff --git a/doc/config/lighttpd.annotated.conf b/doc/config/lighttpd.annotated.conf
|
||||
index c94f703b..35263a1e 100644
|
||||
--- a/doc/config/lighttpd.annotated.conf
|
||||
+++ b/doc/config/lighttpd.annotated.conf
|
||||
@@ -13,8 +13,8 @@
|
||||
## if you add a variable here. Add the corresponding variable in the
|
||||
## chroot example as well.
|
||||
##
|
||||
-var.log_root = "/var/log/lighttpd"
|
||||
-var.server_root = "/srv/www"
|
||||
+var.log_root = "/var/log"
|
||||
+var.server_root = "/var/www"
|
||||
var.state_dir = "/run"
|
||||
var.home_dir = "/var/lib/lighttpd"
|
||||
var.conf_dir = "/etc/lighttpd"
|
||||
@@ -97,8 +97,8 @@ include conf_dir + "/modules.conf"
|
||||
## Run as a different username/groupname.
|
||||
## This requires root permissions during startup.
|
||||
##
|
||||
-server.username = "lighttpd"
|
||||
-server.groupname = "lighttpd"
|
||||
+server.username = "www-data"
|
||||
+server.groupname = "www-data"
|
||||
|
||||
##
|
||||
## Enable lighttpd to serve requests on sockets received from systemd
|
||||
@@ -114,7 +114,7 @@ server.groupname = "lighttpd"
|
||||
##
|
||||
## Document root
|
||||
##
|
||||
-server.document-root = server_root + "/htdocs"
|
||||
+server.document-root = server_root
|
||||
|
||||
##
|
||||
## The value for the "Server:" response field.
|
||||
@@ -140,7 +140,7 @@ server.pid-file = state_dir + "/lighttpd.pid"
|
||||
##
|
||||
## Path to the error log file
|
||||
##
|
||||
-server.errorlog = log_root + "/error.log"
|
||||
+server.errorlog = log_root + "/lighttpd-error.log"
|
||||
|
||||
##
|
||||
## If you want to log to syslog you have to unset the
|
||||
@@ -187,7 +187,7 @@ include conf_dir + "/conf.d/debug.conf"
|
||||
## and write(). Every modern OS provides its own syscall to help network
|
||||
## servers transfer files as fast as possible
|
||||
##
|
||||
-#server.network-backend = "sendfile"
|
||||
+server.network-backend = "writev"
|
||||
|
||||
##
|
||||
## As lighttpd is a single-threaded server, its main resource limit is
|
||||
--
|
||||
2.43.0
|
||||
|
||||
173
package/lighttpd/Config.in
Normal file
173
package/lighttpd/Config.in
Normal file
@@ -0,0 +1,173 @@
|
||||
comment "lighttpd needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD
|
||||
bool "lighttpd"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_XXHASH
|
||||
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.
|
||||
|
||||
https://www.lighttpd.net/
|
||||
|
||||
if BR2_PACKAGE_LIGHTTPD
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_BROTLI
|
||||
bool "brotli support"
|
||||
select BR2_PACKAGE_BROTLI
|
||||
help
|
||||
Enable brotli support for lighttpd mod_deflate.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_BZIP2
|
||||
bool "bzip2 support"
|
||||
select BR2_PACKAGE_BZIP2
|
||||
help
|
||||
Enable bzip2 support for lighttpd mod_deflate.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_DBI
|
||||
bool "dbi support"
|
||||
select BR2_PACKAGE_LIBDBI
|
||||
help
|
||||
Enable dbi support for lighttpd mod_auth mod_vhostdb_dbi.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_GNUTLS
|
||||
bool "gnutls support"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_GNUTLS
|
||||
help
|
||||
Enable gnutls support for lighttpd mod_auth.
|
||||
|
||||
comment "gnutls support needs a toolchain w/ wchar, dynamic library"
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_KRB5
|
||||
bool "krb5 support"
|
||||
select BR2_PACKAGE_LIBKRB5
|
||||
help
|
||||
Enable Kerberos5 support for lighttpd mod_auth.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_LDAP
|
||||
bool "ldap support"
|
||||
depends on BR2_USE_WCHAR # openldap
|
||||
select BR2_PACKAGE_OPENLDAP
|
||||
help
|
||||
Enable LDAP support for lighttpd mod_auth mod_vhostdb_ldap.
|
||||
|
||||
comment "ldap support needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_LUA
|
||||
bool "lua support"
|
||||
depends on BR2_PACKAGE_LUA
|
||||
help
|
||||
Enable Lua support. Needed to support mod_magnet
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_MAXMINDDB
|
||||
bool "maxminddb support"
|
||||
select BR2_PACKAGE_LIBMAXMINDDB
|
||||
help
|
||||
Enable MaxMind GeoIP2 support. Needed to support mod_maxminddb
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_MBEDTLS
|
||||
bool "mbedtls support"
|
||||
select BR2_PACKAGE_MBEDTLS
|
||||
help
|
||||
Enable mbedtls support for lighttpd mod_auth.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_MYSQL
|
||||
bool "mysql support"
|
||||
depends on BR2_PACKAGE_MARIADB
|
||||
help
|
||||
Enable mysql support for lighttpd mod_vhostdb_mysql.
|
||||
|
||||
comment "mysql support needs mariadb"
|
||||
depends on !BR2_PACKAGE_MARIADB
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_NETTLE
|
||||
bool "nettle support"
|
||||
select BR2_PACKAGE_NETTLE
|
||||
help
|
||||
Enable nettle support for lighttpd.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_OPENSSL
|
||||
bool "openssl support"
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
Enable OpenSSL support for lighttpd.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_PAM
|
||||
bool "pam authentication support"
|
||||
default y
|
||||
depends on BR2_PACKAGE_LINUX_PAM
|
||||
help
|
||||
Enable PAM authentication support for lighttpd.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_PCRE
|
||||
bool "pcre support"
|
||||
select BR2_PACKAGE_PCRE2
|
||||
help
|
||||
Enable PCRE support. Needed to support mod_rewrite
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_PGSQL
|
||||
bool "pgsql support"
|
||||
depends on BR2_USE_MMU # postgresql
|
||||
depends on !BR2_sparc # postgresql
|
||||
depends on BR2_USE_WCHAR # postgresql
|
||||
depends on BR2_ENABLE_LOCALE # postgresql
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # postgresql
|
||||
depends on !BR2_STATIC_LIBS # postgresql
|
||||
depends on !BR2_OPTIMIZE_FAST # postgresql
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
help
|
||||
Enable postgres support for lighttpd mod_vhostdb_pgsql.
|
||||
|
||||
comment "pgsql support needs a toolchain w/ wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_sparc
|
||||
depends on !BR2_USE_WCHAR
|
||||
|
||||
comment "pgsql support can't be built with Optimize for fast"
|
||||
depends on BR2_OPTIMIZE_FAST
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_WEBDAV
|
||||
bool "webdav support"
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
Enable webdav support. Needed to support mod_webdav
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_WOLFSSL
|
||||
bool "wolfssl support"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_WOLFSSL
|
||||
select BR2_PACKAGE_WOLFSSL_ALL
|
||||
help
|
||||
Enable wolfssl support for lighttpd mod_auth.
|
||||
|
||||
comment "wolfssl support needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_ZLIB
|
||||
bool "zlib support"
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Enable zlib support for lighttpd mod_deflate.
|
||||
|
||||
config BR2_PACKAGE_LIGHTTPD_ZSTD
|
||||
bool "zstd support"
|
||||
select BR2_PACKAGE_ZSTD
|
||||
help
|
||||
Enable zstd support for lighttpd mod_deflate.
|
||||
|
||||
endif
|
||||
43
package/lighttpd/S50lighttpd
Normal file
43
package/lighttpd/S50lighttpd
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Starts lighttpd.
|
||||
#
|
||||
NAME=lighttpd
|
||||
DAEMON=/usr/sbin/$NAME
|
||||
PID_FILE="/var/run/$NAME.pid"
|
||||
CONF_FILE="/etc/$NAME/$NAME.conf"
|
||||
|
||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||
|
||||
start() {
|
||||
printf "Starting lighttpd: "
|
||||
start-stop-daemon -S -q -p $PID_FILE --exec $DAEMON -- -f $CONF_FILE
|
||||
echo "OK"
|
||||
}
|
||||
stop() {
|
||||
printf "Stopping lighttpd: "
|
||||
start-stop-daemon -K -q -p $PID_FILE
|
||||
echo "OK"
|
||||
}
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
|
||||
6
package/lighttpd/lighttpd.hash
Normal file
6
package/lighttpd/lighttpd.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.84.sha512sum
|
||||
sha512 47d3e802093822f5aa42b9b3324a95668d305c2e2074366b12be9bc812291ba423576e08b2a163a5f752b110139a76c7973086fbc01051f8f639998d8146ed00 lighttpd-1.4.84.tar.xz
|
||||
# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.84.sha256sum
|
||||
sha256 076dd43bec8f2ba9ce6db7e7ca7e8ad72271cd529805ead2400b56efaa026f70 lighttpd-1.4.84.tar.xz
|
||||
# Locally calculated
|
||||
sha256 5c98cad2fbaf5c5e2562bcbab401a7c557c1bb1bac9914ecc63730925052fb13 COPYING
|
||||
209
package/lighttpd/lighttpd.mk
Normal file
209
package/lighttpd/lighttpd.mk
Normal file
@@ -0,0 +1,209 @@
|
||||
################################################################################
|
||||
#
|
||||
# lighttpd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIGHTTPD_VERSION_MAJOR = 1.4
|
||||
LIGHTTPD_VERSION = $(LIGHTTPD_VERSION_MAJOR).84
|
||||
LIGHTTPD_SOURCE = lighttpd-$(LIGHTTPD_VERSION).tar.xz
|
||||
LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-$(LIGHTTPD_VERSION_MAJOR).x
|
||||
LIGHTTPD_LICENSE = BSD-3-Clause
|
||||
LIGHTTPD_LICENSE_FILES = COPYING
|
||||
LIGHTTPD_CPE_ID_VENDOR = lighttpd
|
||||
LIGHTTPD_DEPENDENCIES = host-pkgconf xxhash
|
||||
LIGHTTPD_CONF_OPTS = \
|
||||
-Dwith_fam=disabled \
|
||||
-Dwith_nss=false \
|
||||
-Dwith_pcre=disabled \
|
||||
-Dwith_sasl=disabled \
|
||||
-Dwith_xattr=false \
|
||||
-Dwith_xxhash=enabled \
|
||||
-Dbuild_extra_warnings=false \
|
||||
-Dbuild_static=false \
|
||||
-Dmoduledir=lib/lighttpd
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
|
||||
LIGHTTPD_DEPENDENCIES += libxcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
||||
LIGHTTPD_DEPENDENCIES += libunwind
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_libunwind=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_libunwind=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_BROTLI),y)
|
||||
LIGHTTPD_DEPENDENCIES += brotli
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_brotli=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_brotli=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_BZIP2),y)
|
||||
LIGHTTPD_DEPENDENCIES += bzip2
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_bzip=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_bzip=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_DBI),y)
|
||||
LIGHTTPD_DEPENDENCIES += libdbi
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_dbi=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_dbi=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_GNUTLS),y)
|
||||
LIGHTTPD_DEPENDENCIES += gnutls
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_gnutls=true
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_gnutls=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_KRB5),y)
|
||||
LIGHTTPD_DEPENDENCIES += libkrb5
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_krb5=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_krb5=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_LDAP),y)
|
||||
LIGHTTPD_DEPENDENCIES += openldap
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_ldap=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_ldap=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_LUA),y)
|
||||
LIGHTTPD_DEPENDENCIES += lua
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_lua=true
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_lua=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_MAXMINDDB),y)
|
||||
LIGHTTPD_DEPENDENCIES += libmaxminddb
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_maxminddb=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_maxminddb=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_MBEDTLS),y)
|
||||
LIGHTTPD_DEPENDENCIES += mbedtls
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_mbedtls=true
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_mbedtls=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_MYSQL),y)
|
||||
LIGHTTPD_DEPENDENCIES += mariadb
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_mysql=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_mysql=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_NETTLE),y)
|
||||
LIGHTTPD_DEPENDENCIES += nettle
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_nettle=true
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_nettle=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
|
||||
LIGHTTPD_DEPENDENCIES += openssl
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_openssl=true
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_openssl=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_PAM),y)
|
||||
LIGHTTPD_DEPENDENCIES += linux-pam
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_pam=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_pam=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_PCRE),y)
|
||||
LIGHTTPD_DEPENDENCIES += pcre2
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_pcre2=true
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_pcre2=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_PGSQL),y)
|
||||
LIGHTTPD_DEPENDENCIES += postgresql
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_pgsql=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_pgsql=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_WEBDAV),y)
|
||||
LIGHTTPD_DEPENDENCIES += libxml2 sqlite
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_webdav_props=enabled
|
||||
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_webdav_locks=enabled
|
||||
LIGHTTPD_DEPENDENCIES += util-linux
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_webdav_locks=disabled
|
||||
endif
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_webdav_props=disabled -Dwith_webdav_locks=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_WOLFSSL),y)
|
||||
LIGHTTPD_DEPENDENCIES += wolfssl
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_wolfssl=true
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_wolfssl=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_ZLIB),y)
|
||||
LIGHTTPD_DEPENDENCIES += zlib
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_zlib=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_zlib=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIGHTTPD_ZSTD),y)
|
||||
LIGHTTPD_DEPENDENCIES += zstd
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_zstd=enabled
|
||||
else
|
||||
LIGHTTPD_CONF_OPTS += -Dwith_zstd=disabled
|
||||
endif
|
||||
|
||||
define LIGHTTPD_INSTALL_CONFIG
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/lighttpd/conf.d
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/var/www
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/config/lighttpd.conf \
|
||||
$(TARGET_DIR)/etc/lighttpd/lighttpd.conf
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/config/lighttpd.annotated.conf \
|
||||
$(TARGET_DIR)/etc/lighttpd/lighttpd.annotated.conf
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/config/modules.conf \
|
||||
$(TARGET_DIR)/etc/lighttpd/modules.conf
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/access_log.conf \
|
||||
$(TARGET_DIR)/etc/lighttpd/conf.d/access_log.conf
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/debug.conf \
|
||||
$(TARGET_DIR)/etc/lighttpd/conf.d/debug.conf
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/dirlisting.conf \
|
||||
$(TARGET_DIR)/etc/lighttpd/conf.d/dirlisting.conf
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/config/conf.d/mime.conf \
|
||||
$(TARGET_DIR)/etc/lighttpd/conf.d/mime.conf
|
||||
endef
|
||||
|
||||
LIGHTTPD_POST_INSTALL_TARGET_HOOKS += LIGHTTPD_INSTALL_CONFIG
|
||||
|
||||
define LIGHTTPD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/lighttpd/S50lighttpd \
|
||||
$(TARGET_DIR)/etc/init.d/S50lighttpd
|
||||
endef
|
||||
|
||||
define LIGHTTPD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 $(@D)/doc/systemd/lighttpd.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/lighttpd.service
|
||||
$(INSTALL) -D -m 644 package/lighttpd/lighttpd_tmpfiles.conf \
|
||||
$(TARGET_DIR)/usr/lib/tmpfiles.d/lighttpd.conf
|
||||
endef
|
||||
|
||||
$(eval $(meson-package))
|
||||
2
package/lighttpd/lighttpd_tmpfiles.conf
Normal file
2
package/lighttpd/lighttpd_tmpfiles.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
f /var/log/lighttpd-access.log 0640 www-data www-data -
|
||||
f /var/log/lighttpd-error.log 0640 www-data www-data -
|
||||
Reference in New Issue
Block a user