f194511ab4
Add missing test dependency. - 1.4.61 - 2021-10-28 * [core] define __BEGIN_DECLS, __END_DECLS if needed * [core] Y2038: error log high-precision timestamps * [multiple] __attribute_nonnull__ now takes params * [core] bounds check while url-decoding * [mod_magnet] prefer lua_newuserdatauv() w/ lua 5.4 * [core] earlier macOS need define for errno_t (fixes #3107) * [tests] force POSIX::WNOHANG() autovivification (fixes #3110) * [mod_dirlisting] sort "../" to top (fixes #3109) * [tests] force Fcntl::F_SETFD() autovivification (#3110) * [core] avoid repeated typedef for fdlog_st * [doc] update INSTALL * [mod_extforward] keep remote IP thru request reset * [core] fix HTTP/2 upload > 64k w/ max-request-size (fixes #3108) * [mod_auth] fix Basic auth passwd cache (fixes #3112) * [mod_ajp13,mod_fastcgi] comment: no response body * [mod_webdav] ignore PROPFIND Depth for files * [core] add comment to ck_memeq_const_time() * [core] accept up to 5 digit port num in host cond * [core] expose chunkqueue_remove_empty_chunks() * [core] short-circuit if response body recv w/ hdrs (fixes #3111) * [core] resched HTTP/2 streams w/ pending data (#3111) * [core] separate func for gw_authorizer_ok() * [core] make ck_memeq_const_time() more generic (#3112) * [mod_auth] revert adjustment to auth passwd cache (#3112) * [core] thwart h2c smuggling when Upgrade enabled * [core] separate funcs to check for valid chars * [core] thwart h2 request tunnelling * [core] clear shared log buffer after writes * [mod_nss] quiet trace for PR_END_OF_FILE_ERROR * [core] allow debug.log-state-handling in condition * [core] combine more dup header processing code * [mod_ajp13,mod_fastcgi] check resp w/ content len * [mod_proxy] Length Req if proxy forcing HTTP/1.0 * [core] restart dead proc on connect error if local * [mod_ajp13,mod_fastcgi] recv_parse smaller funcs * [multiple] warn deprecated mods slated for removal * [core] remove redundant checks in same context * [core] tighten chunkqueue_steal* code; better asm * [build] check for preadv(), pwritev() * [core] pwritev w/ chunkqueue_steal_with_tempfiles * [core] tighten chunkqueue_mark_written; better asm * [doc] uncomment mod_auth load in conf.d/auth.conf * [core] tighten chunkqueue_small_resp_optim() * [core] chunkqueue_small_resp_optim if resp < 16k * [mod_auth] clear crypt() output if len >= 13 * [multiple] add assert after malloc in two spots * [core] add HTTP/2 check resp finished w/ empty cq (#3111) * [core] chunkqueue_small_resp_optim() comment
83 lines
2.6 KiB
Makefile
83 lines
2.6 KiB
Makefile
# $NetBSD: Makefile,v 1.103 2021/10/29 07:11:36 wiz Exp $
|
|
|
|
DISTNAME= lighttpd-1.4.61
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://download.lighttpd.net/lighttpd/releases-1.4.x/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.lighttpd.net/
|
|
COMMENT= Fast, light-footprint HTTP server
|
|
LICENSE= modified-bsd
|
|
|
|
USE_LIBTOOL= yes
|
|
SHLIBTOOL_OVERRIDE= # empty
|
|
USE_TOOLS+= pkg-config perl:test
|
|
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}
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
PKG_SYSCONFSUBDIR= ${PKGBASE}
|
|
RCD_SCRIPTS= lighttpd
|
|
|
|
.include "options.mk"
|
|
|
|
CNFS_cmd= ${SED} -ne "s,^share/examples/lighttpd/,,p" PLIST
|
|
CNFS= ${CNFS_cmd:sh}
|
|
.for file in ${CNFS}
|
|
CONF_FILES+= ${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/${file:Q}
|
|
.endfor
|
|
|
|
BUILD_DEFS+= VARBASE LIGHTTPD_LOGDIR LIGHTTPD_STATEDIR
|
|
BUILD_DEFS+= LIGHTTPD_CACHEDIR LIGHTTPD_HOMEDIR
|
|
BUILD_DEFS+= LIGHTTPD_USER LIGHTTPD_GROUP
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
LIGHTTPD_CACHEDIR?= ${VARBASE}/cache/lighttpd
|
|
LIGHTTPD_HOMEDIR?= ${VARBASE}/lib/lighttpd
|
|
LIGHTTPD_LOGDIR?= ${VARBASE}/log/lighttpd
|
|
LIGHTTPD_STATEDIR?= ${VARBASE}/run
|
|
LIGHTTPD_USER?= lighttpd
|
|
LIGHTTPD_GROUP?= lighttpd
|
|
PKG_GROUPS+= ${LIGHTTPD_GROUP}
|
|
PKG_USERS+= ${LIGHTTPD_USER}:${LIGHTTPD_GROUP}
|
|
PKG_GROUPS_VARS+= LIGHTTPD_GROUP
|
|
PKG_USERS_VARS+= LIGHTTPD_USER
|
|
|
|
INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR} ${EGDIR}/conf.d ${EGDIR}/vhosts.d
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/conf.d
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/vhosts.d
|
|
OWN_DIRS_PERMS= ${LIGHTTPD_LOGDIR} ${LIGHTTPD_USER} ${LIGHTTPD_GROUP} 0755
|
|
OWN_DIRS+= ${LIGHTTPD_STATEDIR}
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_MESSAGE.path= Fixing config file paths
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_FILES.path= doc/config/lighttpd.conf doc/lighttpd.8
|
|
SUBST_VARS.path= LIGHTTPD_LOGDIR LIGHTTPD_STATEDIR LIGHTTPD_USER \
|
|
LIGHTTPD_CACHEDIR LIGHTTPD_HOMEDIR \
|
|
LIGHTTPD_GROUP PKG_SYSCONFDIR VARBASE
|
|
|
|
post-install:
|
|
set -e; cd ${WRKSRC}/doc; \
|
|
for f in *.css outdated/*.dot outdated/*.txt; do \
|
|
${INSTALL_DATA} $$f ${DESTDIR}${DOCDIR}; \
|
|
done; \
|
|
for f in config/*.conf scripts/*.sh; do \
|
|
${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}; \
|
|
done; \
|
|
for f in config/conf.d/*.conf config/conf.d/mod.*; do \
|
|
${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}/conf.d; \
|
|
done; \
|
|
${INSTALL_DATA} config/vhosts.d/*.template ${DESTDIR}${EGDIR}/vhosts.d
|
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|