- 1.4.66 - 2022-08-07 * [core] h2: optim: send window update in 16k units * [mod_magnet] reset for http-response-send-file * [multiple] fix json encoding * [core] buffer_append_bs_escaped_json() * [autoconf] update ax_prog_cc_for_build.m4 * [doc] add libdeflate to INSTALL * [mod_webdav] cold func if xml reqbody w/o db conf * [mod_webdav] check reqbody Content-Type is XML * [doc] more consistent use of vars in examples * [core] do not load indexfile, dirlisting if unused * [mod_dirlisting] send ETag, Cache-Control w/ cache * [mod_openssl] compile compat w/ openssl < 1.1.0 * [mod_webdav] webdav_reqbody_type_xml() fixes * [core] clarify server.username = "root" error msg * [mod_wolfssl] compat with older wolfssl versions * [core] fix li_base64_dec() on whitespace * [core] perf tweak buffer_eq_icase_ssn() * [mod_deflate] fix use of libdeflate for files>128k (fixes #3161) * [core] fix buffer_substr_replace() extend (fixes #3160) * [mod_webdav] build with Android NDK * [core] check r->http_status before handling Range * [core] preprocessor option to force crypto lib * [core] fix SIGUSR1 graceful restart w/ TLS (fixes #3164) * [mod_authn_gssapi] warn if no confidentiality flag (fixes #3163) * [mod_wstunnel] fix crash with bad hybivers (fixes #3165) * [core] perf: adjust max h2 stream send increment * [core] fix HTTP/2 downloads >= 4GiB (fixes #3166) Update diff from Brad, thanks
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
COMMENT= secure, fast, compliant, and very flexible web-server
|
|
|
|
DISTNAME= lighttpd-1.4.66
|
|
CATEGORIES= www net
|
|
MASTER_SITES= https://download.lighttpd.net/lighttpd/releases-1.4.x/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
HOMEPAGE= https://www.lighttpd.net/
|
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= c crypto m pcre2-8 ssl z ${MODLUA_WANTLIB}
|
|
|
|
COMPILER= base-clang ports-gcc base-gcc
|
|
|
|
MODULES= lang/lua
|
|
MODLUA_SA= Yes
|
|
|
|
LIB_DEPENDS+= devel/pcre2 \
|
|
${MODLUA_LIB_DEPENDS}
|
|
RUN_DEPENDS+= www/spawn-fcgi
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= --libdir="${PREFIX}/lib/lighttpd" \
|
|
--with-lua \
|
|
--with-openssl
|
|
CONFIGURE_ENV+= CC_FOR_BUILD="${CC}" \
|
|
CFLAGS_FOR_BUILD="${CFLAGS}" \
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
LUA_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \
|
|
LUA_LIBS="`pkg-config --libs ${MODLUA_DEP}`"
|
|
|
|
FLAVORS= ldap mysql
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mldap}
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
LIB_DEPENDS+= databases/openldap
|
|
WANTLIB+= lber ldap sasl2
|
|
.endif
|
|
|
|
.if ${FLAVOR:Mmysql}
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
LIB_DEPENDS+= databases/mariadb
|
|
WANTLIB+= mariadb pthread
|
|
.endif
|
|
|
|
post-extract:
|
|
@cp -f ${FILESDIR}/lighttpd.conf ${WRKSRC}/doc
|
|
|
|
pre-build:
|
|
@${SUBST_CMD} ${WRKSRC}/doc/lighttpd.conf ${WRKSRC}/doc/lighttpd.8
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lighttpd
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lighttpd
|
|
${INSTALL_DATA} ${WRKSRC}/doc/outdated/*.txt \
|
|
${PREFIX}/share/doc/lighttpd
|
|
${INSTALL_DATA} ${WRKSRC}/doc/lighttpd.conf \
|
|
${PREFIX}/share/examples/lighttpd
|
|
${INSTALL_DATA} ${WRKSRC}/doc/scripts/spawn-php.sh \
|
|
${PREFIX}/share/examples/lighttpd
|
|
${INSTALL_DATA} /dev/null \
|
|
${PREFIX}/share/examples/lighttpd/access.log
|
|
${INSTALL_DATA} /dev/null \
|
|
${PREFIX}/share/examples/lighttpd/error.log
|
|
rm -f ${PREFIX}/lib/lighttpd/*.la
|
|
|
|
.include <bsd.port.mk>
|