pkgsrc/www/lighttpd/Makefile
mef 0c338a2059 Update to 1.4.37
----------------
- 1.4.37
  * [mod_proxy] remove debug log line from error log (fixes #2659)
  * [mod_dirlisting] fix dir-listing.set-footer not showing
  * fix out-of-filedescriptors when uploading "large" files (fixes #2660, thx rmilecki)
  * increase upload temporary chunk file size from 1MB to 16MB
  * fix undefined integer shift
  * rewrite network sendfile/mmap/writev/write backends
  * fix some unchecked return value warnings
  * [kqueue] fix kevent call
  * [autoconf] define HAVE_CRYPT when crypt() is present
  * [bsd xattr] fix compile break with BSD extended attributes in stat_cache
  * [mod_cgi] rewrite mmap and generic (post body) send error handling
  * [mmap] fix mmap alignment
  * [plugins] when modules are linked statically still only load the modules given in the config
  * [mmap] handle SIGBUS in network; those get triggered if the file gets smaller during reading
  * fix some warnings found by coverity ("leak" in setup phase, not catching too long unix socket paths in mod_proxy)
2015-09-01 11:54:30 +00:00

75 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.51 2015/09/01 11:54:30 mef Exp $
DISTNAME= lighttpd-1.4.37
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
GNU_CONFIGURE= yes
GNU_CONFIGURE_LIBSUBDIR=${PKGBASE}
CONFIGURE_ARGS+= --with-pcre
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_USER LIGHTTPD_GROUP
.include "../../mk/bsd.prefs.mk"
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
SUBST_VARS.path= LIGHTTPD_LOGDIR LIGHTTPD_STATEDIR LIGHTTPD_USER \
LIGHTTPD_GROUP PKG_SYSCONFDIR
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"