From ef9a628c595695b875f7ca018e7e4a27564a1317 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 23 Jan 2022 10:59:56 +0100 Subject: [PATCH] package/lighttpd: add krb5 support Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/lighttpd/Config.in | 6 ++++++ package/lighttpd/lighttpd.mk | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package/lighttpd/Config.in b/package/lighttpd/Config.in index 9a262dbe93..595c50c978 100644 --- a/package/lighttpd/Config.in +++ b/package/lighttpd/Config.in @@ -33,6 +33,12 @@ config BR2_PACKAGE_LIGHTTPD_BZIP2 help Enable bzip2 support for lighttpd mod_deflate. +config BR2_PACKAGE_LIGHTTPD_KRB5 + bool "krb5 support" + select BR2_PACKAGE_LIBKRB5 + help + Enable Kerberos5 support for lighttpd mod_auth. + config BR2_PACKAGE_LIGHTTPD_LUA bool "lua support" depends on BR2_PACKAGE_LUA diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk index b2e06c77a1..a25bb0bfcb 100644 --- a/package/lighttpd/lighttpd.mk +++ b/package/lighttpd/lighttpd.mk @@ -16,7 +16,6 @@ LIGHTTPD_CONF_OPTS = \ -Dwith_dbi=false \ -Dwith_fam=false \ -Dwith_gnutls=false \ - -Dwith_krb5=false \ -Dwith_ldap=false \ -Dwith_libev=false \ -Dwith_libunwind=false \ @@ -48,6 +47,13 @@ else LIGHTTPD_CONF_OPTS += -Dwith_bzip=false endif +ifeq ($(BR2_PACKAGE_LIGHTTPD_KRB5),y) +LIGHTTPD_DEPENDENCIES += libkrb5 +LIGHTTPD_CONF_OPTS += -Dwith_krb5=true +else +LIGHTTPD_CONF_OPTS += -Dwith_krb5=false +endif + ifeq ($(BR2_PACKAGE_LIGHTTPD_LUA),y) LIGHTTPD_DEPENDENCIES += lua LIGHTTPD_CONF_OPTS += -Dwith_lua=true