summaryrefslogtreecommitdiff
path: root/www/lighttpd
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-05-14 11:11:00 +0000
committernia <nia@pkgsrc.org>2021-05-14 11:11:00 +0000
commit0dd88799b454b936a4314731a4487e6be7f2f4e9 (patch)
treea6071315bbdce60ee0665879ce002359c1152434 /www/lighttpd
parent0d7fa9a6ffd4fba850eea5131bca949e213bbe0e (diff)
downloadpkgsrc-0dd88799b454b936a4314731a4487e6be7f2f4e9.tar.gz
lighttpd: improve options support
as well as adding options for other SSL libraries, disabling options explicitly should cause less problems when the OS contains libraries used by the options.
Diffstat (limited to 'www/lighttpd')
-rw-r--r--www/lighttpd/Makefile6
-rw-r--r--www/lighttpd/PLIST10
-rw-r--r--www/lighttpd/options.mk103
3 files changed, 96 insertions, 23 deletions
diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile
index f6dbc2b64ea..14440b4d678 100644
--- a/www/lighttpd/Makefile
+++ b/www/lighttpd/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.97 2021/04/21 11:42:54 adam Exp $
+# $NetBSD: Makefile,v 1.98 2021/05/14 11:11:00 nia Exp $
DISTNAME= lighttpd-1.4.59
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= https://download.lighttpd.net/lighttpd/releases-1.4.x/
EXTRACT_SUFX= .tar.xz
@@ -17,6 +17,8 @@ USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
GNU_CONFIGURE_LIBSUBDIR= ${PKGBASE}
CONFIGURE_ARGS+= --with-pcre
+# used for digest auth when no SSL library is available
+CONFIGURE_ARGS+= --without-nettle
TEST_TARGET= check
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
diff --git a/www/lighttpd/PLIST b/www/lighttpd/PLIST
index 576a4e1c151..9a01d75d55d 100644
--- a/www/lighttpd/PLIST
+++ b/www/lighttpd/PLIST
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.23 2021/02/03 08:49:49 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.24 2021/05/14 11:11:00 nia Exp $
lib/lighttpd/mod_access.la
lib/lighttpd/mod_accesslog.la
+lib/lighttpd/mod_ajp13.la
lib/lighttpd/mod_alias.la
lib/lighttpd/mod_auth.la
${PLIST.libdbi}lib/lighttpd/mod_authn_dbi.la
@@ -8,7 +9,6 @@ lib/lighttpd/mod_authn_file.la
${PLIST.gssapi}lib/lighttpd/mod_authn_gssapi.la
${PLIST.ldap}lib/lighttpd/mod_authn_ldap.la
${PLIST.mysql}lib/lighttpd/mod_authn_mysql.la
-lib/lighttpd/mod_ajp13.la
lib/lighttpd/mod_cgi.la
${PLIST.lua}lib/lighttpd/mod_cml.la
lib/lighttpd/mod_deflate.la
@@ -19,11 +19,14 @@ lib/lighttpd/mod_expire.la
lib/lighttpd/mod_extforward.la
lib/lighttpd/mod_fastcgi.la
lib/lighttpd/mod_flv_streaming.la
+${PLIST.gnutls}lib/lighttpd/mod_gnutls.la
lib/lighttpd/mod_indexfile.la
${PLIST.lua}lib/lighttpd/mod_magnet.la
${PLIST.geoip}lib/lighttpd/mod_maxminddb.la
+${PLIST.mbedtls}lib/lighttpd/mod_mbedtls.la
${PLIST.mysql}lib/lighttpd/mod_mysql_vhost.la
-${PLIST.ssl}lib/lighttpd/mod_openssl.la
+${PLIST.nss}lib/lighttpd/mod_nss.la
+${PLIST.openssl}lib/lighttpd/mod_openssl.la
lib/lighttpd/mod_proxy.la
lib/lighttpd/mod_redirect.la
lib/lighttpd/mod_rewrite.la
@@ -46,6 +49,7 @@ ${PLIST.libdbi}lib/lighttpd/mod_vhostdb_dbi.la
${PLIST.ldap}lib/lighttpd/mod_vhostdb_ldap.la
${PLIST.mysql}lib/lighttpd/mod_vhostdb_mysql.la
lib/lighttpd/mod_webdav.la
+${PLIST.wolfssl}lib/lighttpd/mod_wolfssl.la
lib/lighttpd/mod_wstunnel.la
man/man8/lighttpd-angel.8
man/man8/lighttpd.8
diff --git a/www/lighttpd/options.mk b/www/lighttpd/options.mk
index 2b2af581368..78cfe45afd7 100644
--- a/www/lighttpd/options.mk
+++ b/www/lighttpd/options.mk
@@ -1,13 +1,14 @@
-# $NetBSD: options.mk,v 1.25 2020/12/01 09:44:12 schmonz Exp $
+# $NetBSD: options.mk,v 1.26 2021/05/14 11:11:00 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.lighttpd
-PKG_SUPPORTED_OPTIONS= brotli bzip2 fam gdbm inet6 ldap libdbi lua mysql ssl memcached geoip gssapi webdav
-PKG_SUGGESTED_OPTIONS= inet6 ssl
+PKG_OPTIONS_OPTIONAL_GROUPS= ssl
+PKG_OPTIONS_GROUP.ssl= gnutls mbedtls nss openssl wolfssl
+PKG_SUPPORTED_OPTIONS+= brotli bzip2 fam gdbm inet6 ldap libdbi lua
+PKG_SUPPORTED_OPTIONS+= mysql memcached geoip gssapi webdav
+PKG_SUGGESTED_OPTIONS= inet6 openssl
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= gdbm geoip gssapi ldap libdbi lua memcached mysql ssl
-
###
### Allow using brotli as a compression method in the "deflate" module.
###
@@ -34,15 +35,20 @@ CONFIGURE_ARGS+= --without-bzip2
.if !empty(PKG_OPTIONS:Mfam)
. include "../../mk/fam.buildlink3.mk"
CONFIGURE_ARGS+= --with-fam
+.else
+CONFIGURE_ARGS+= --without-fam
.endif
###
### Support using GDBM for storage in the "trigger before download" module.
###
+PLIST_VARS+= gdbm
.if !empty(PKG_OPTIONS:Mgdbm)
. include "../../databases/gdbm/buildlink3.mk"
CONFIGURE_ARGS+= --with-gdbm
PLIST.gdbm= yes
+.else
+CONFIGURE_ARGS+= --without-gdbm
.endif
###
@@ -57,15 +63,19 @@ CONFIGURE_ARGS+= --disable-ipv6
###
### Allow using LDAP for "basic" authentication.
###
+PLIST_VARS+= ldap
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap
PLIST.ldap= yes
+.else
+CONFIGURE_ARGS+= --without-ldap
.endif
###
### libdbi
###
+PLIST_VARS+= libdbi
.if !empty(PKG_OPTIONS:Mlibdbi)
. include "../../databases/libdbi/buildlink3.mk"
CONFIGURE_ARGS+= --with-dbi
@@ -77,67 +87,124 @@ CONFIGURE_ARGS+= --without-dbi
###
### Support enabling the Cache Meta Language module with the Lua engine.
###
+PLIST_VARS+= lua
.if !empty(PKG_OPTIONS:Mlua)
. include "../../lang/lua/buildlink3.mk"
USE_TOOLS+= pkg-config
CONFIGURE_ARGS+= --with-lua
+PLIST.lua= yes
+.else
+CONFIGURE_ARGS+= --without-lua
.endif
###
### Support using memcached as an in-memory caching system for the
### "trigger before download" and CML modules.
###
+PLIST_VARS+= memcached
.if !empty(PKG_OPTIONS:Mmemcached)
. include "../../devel/libmemcached/buildlink3.mk"
CONFIGURE_ARGS+= --with-memcached
PLIST.memcached= yes
+.else
+CONFIGURE_ARGS+= --without-memcached
.endif
###
### Allow using MySQL for virtual host configuration.
###
+PLIST_VARS+= mysql
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
MYSQL_CONFIG?= ${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config
CONFIGURE_ARGS+= --with-mysql=${MYSQL_CONFIG:Q}
PLIST.mysql= yes
+.else
+CONFIGURE_ARGS+= --without-mysql
+.endif
+
+###
+### HTTPS support via GnuTLS
+###
+PLIST_VARS+= gnutls
+.if !empty(PKG_OPTIONS:Mgnutls)
+. include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+= --with-gnutls=${BUILDLINK_PREFIX.gnutls}
+PLIST.gnutls= yes
+.else
+CONFIGURE_ARGS+= --without-gnutls
+.endif
+
+###
+### HTTPS support via mbedTLS
+###
+PLIST_VARS+= mbedtls
+.if !empty(PKG_OPTIONS:Mmbedtls)
+. include "../../security/mbedtls/buildlink3.mk"
+CONFIGURE_ARGS+= --with-mbedtls=${BUILDLINK_PREFIX.mbedtls}
+PLIST.mbedtls= yes
+.else
+CONFIGURE_ARGS+= --without-mbedtls
+.endif
+
+###
+### HTTPS support via nss
+###
+PLIST_VARS+= nss
+.if !empty(PKG_OPTIONS:Mnss)
+. include "../../devel/nss/buildlink3.mk"
+CONFIGURE_ARGS+= --with-nss=${BUILDLINK_PREFIX.nss}
+PLIST.nss= yes
+.else
+CONFIGURE_ARGS+= --without-nss
.endif
###
-### HTTPS support
+### HTTPS support via OpenSSL
###
-.if !empty(PKG_OPTIONS:Mssl)
-. include "../../security/nettle/buildlink3.mk"
-CONFIGURE_ARGS+= --with-nettle
+PLIST_VARS+= openssl
+.if !empty(PKG_OPTIONS:Mopenssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
-PLIST.ssl= yes
+PLIST.openssl= yes
+.else
+CONFIGURE_ARGS+= --without-openssl
+.endif
+
+###
+### HTTPS support via WolfSSL
+###
+PLIST_VARS+= wolfssl
+.if !empty(PKG_OPTIONS:Mwolfssl)
+. include "../../security/wolfssl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-wolfssl=${BUILDLINK_PREFIX.wolfssl}
+PLIST.wolfssl= yes
+.else
+CONFIGURE_ARGS+= --without-wolfssl
.endif
###
### GeoIP support
###
+PLIST_VARS+= geoip
.if !empty(PKG_OPTIONS:Mgeoip)
. include "../../geography/libmaxminddb/buildlink3.mk"
CONFIGURE_ARGS+= --with-maxminddb
PLIST.geoip= yes
+.else
+CONFIGURE_ARGS+= --without-maxminddb
.endif
###
### gssapi
###
+PLIST_VARS+= gssapi
.if !empty(PKG_OPTIONS:Mgssapi)
.include "../../security/mit-krb5/buildlink3.mk"
CONFIGURE_ARGS+= --with-krb5
PLIST.gssapi= yes
-.endif
-
-###
-### lua
-###
-.if !empty(PKG_OPTIONS:Mlua)
-. include "../../lang/lua/buildlink3.mk"
-PLIST.lua= yes
+.else
+CONFIGURE_ARGS+= --without-krb5
.endif
###