6168d6be84
- 1.4.50 - 2018-08-13 * [mod_extforward] allow explict IPs to be untrusted (#2860) * [core] fix crash if 'host' empty in config (fixes #2876) * [mod_magnet] fix regression in lighty.stat (fixes #2877) * [core] minor code cleanup in gw_recv_response() * [core] fix rare race condition from backends (fixes #2878) * [mod_proxy] fix segfault in Set-Cookie reverse map (fixes #2879) * [core] fdevent_accept_listenfd() nonblock cloexec * [build] remove m4 AC_PATH_PROG for PKG_CONFIG * [core] some header cleanup * [mod_wstunnel] better Sec-WebSocket-Protocol parse * [mod_magnet] code reuse * [mod_magnet] reduce buffer copies * [mod_fastcgi,mod_scgi] fastcgi.balance,scgi.balance (fixes #2882) * [core] check if SOCK_NONBLOCK is ignored (fixes #2883) * [core] buffer_append_string_encoded_hex_lc() * [core] more efficient hex2int() * [mod_secdownload] compare bin MAC instead of hex * [core] li_tohex_lc() explicitly uses lc hex chars * [core] buffer_append_uint_hex_lc() uses lc hex * [core] buffer_append_string_encoded() uc hex * [tests] reduce test_base64 brute force tests * [tests] remove test_buffer output, except on error * [core] check for continuation in server.tag * [core] CONNECT must be handled before fs hooks * [mod_redirect, mod_rewrite] code reuse (sharing) * [core] data_config_pcre_compile,exec() * [tests] test_request unit tests * [core] http_kv.[ch] method, status, version str * [core] remove unused get_http_status_body_name() * [core] remove proc_open.[ch], reduce stdio.h use * [tests] move src/test_*.c to src/t/ * [core] server.http-parseopts URL normalization opt (fixes #1720) * [core] inline some buffer.[ch] routines * [core] remove some duplicative code in log.c * [core] debug server.log-request-header-on-error * [mod_redirect,mod_rewrite] short-circuit earlier * [core] fix buffer_to_upper() * [mod_cgi] handle CGI partial response header write * [mod_redirect,mod_rewrite] pass request URI info * [mod_redirect,mod_rewrite] encoding options (fixes #443, fixes #911) * [mod_redirect,mod_rewrite] fix segfault w/ invalid syntax (fixes #2892) * [mod_fastcgi] fix memleak with FastCGI auth,resp (fixes #2894) * [mod_alias] security: potential path traversal with specific configs * [mod_wstunnel] quiet 32-bit compiler warnings * [core] POLLRDHUP handling for transparent proxying * [mod_redirect,mod_rewrite] support up to 19 match * [core] add missing includes to quiet compiler warn * [mod_redirect,mod_rewrite] base64url encoding opt * [mod_rewrite] require rewrite result to begin '/' * [core] security: use-after-free invalid Range req * [core] reset var if FAMMonitorDirectory() fails * [core] option to propagate TCP FIN to backend host * mod_sockproxy - socket forwarding * [core] workaround Coverity cov-build bug with gcc7 * [build] add missing file for test_burl * [core] quell insignificant coverity warning * [core] extend server.http-parseopts
83 lines
2.6 KiB
Makefile
83 lines
2.6 KiB
Makefile
# $NetBSD: Makefile,v 1.76 2018/08/14 06:24:54 wiz Exp $
|
|
|
|
DISTNAME= lighttpd-1.4.50
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://download.lighttpd.net/lighttpd/releases-1.4.x/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.lighttpd.net/
|
|
COMMENT= Fast, light-footprint HTTP server
|
|
LICENSE= modified-bsd
|
|
|
|
USE_LIBTOOL= yes
|
|
SHLIBTOOL_OVERRIDE= # empty
|
|
USE_TOOLS+= pkg-config
|
|
GNU_CONFIGURE= yes
|
|
GNU_CONFIGURE_LIBSUBDIR=${PKGBASE}
|
|
CONFIGURE_ARGS+= --with-pcre
|
|
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
|
|
|
|
PLIST_VARS+= gdbm geoip gssapi ldap lua memcached mysql ssl
|
|
|
|
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"
|