f34a8c24a3
This is a semi-manual PKGREVISION bump.
68 lines
2 KiB
Makefile
68 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2019/04/25 07:33:28 maya Exp $
|
|
#
|
|
|
|
DISTNAME= varnish-3.0.6
|
|
PKGREVISION= 3
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://repo.varnish-cache.org/source/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://varnish-cache.org/
|
|
COMMENT= High-performace HTTP accelerator
|
|
LICENSE= modified-bsd
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= pkg-config gmake
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
EGDIR= ${PREFIX}/share/examples/varnish
|
|
CONF_FILES= ${EGDIR}/default.vcl ${PKG_SYSCONFDIR}/default.vcl
|
|
|
|
VRNUSER?= varnish
|
|
VRNGROUP?= ${VRNUSER}
|
|
STATEDIR= ${VARBASE}/db
|
|
VRNDIR= ${STATEDIR}/${PKGBASE}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${STATEDIR}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
OWN_DIRS+= ${VRNDIR}
|
|
OWN_DIRS_PERMS+= ${VRNDIR} ${VRNUSER} ${VRNGROUP} 0770
|
|
|
|
PKG_GROUPS+= ${VRNGROUP}
|
|
PKG_USERS+= ${VRNUSER}:${VRNGROUP}
|
|
PKG_HOME.${VRNUSER}= ${VRNDIR}
|
|
PKG_SHELL.${VRNUSER}= ${SH}
|
|
PKG_GECOS.${VRNUSER}= Varnish daemon user
|
|
|
|
FILES_SUBST+= VRNUSER=${VRNUSER}
|
|
FILES_SUBST+= VRNGROUP=${VRNGROUP}
|
|
|
|
RCD_SCRIPTS= varnishd varnishlog varnishncsa
|
|
PYTHON_FOR_BUILD_ONLY= yes
|
|
|
|
REPLACE_PYTHON+= lib/libvcl/generate.py
|
|
REPLACE_PYTHON+= lib/libvmod_std/vmod.py
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils
|
|
CONFIGURE_ARGS+= --with-rst2man=${PREFIX}/bin/rst2man-${PYVERSSUFFIX}.py
|
|
CONFIGURE_ARGS+= --with-rst2html=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py
|
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
# Explicitly disable epoll on illumos, provided for Linux compat only.
|
|
CONFIGURE_ENV+= ac_cv_func_epoll_ctl=no
|
|
. if ${PKGSRC_COMPILER} == "sunpro"
|
|
CONFIGURE_ENV+= VCC_CC="cc ${_COMPILER_ABI_FLAG.${ABI}} -Kpic -G -o %o %s"
|
|
. else
|
|
CONFIGURE_ENV+= VCC_CC="gcc ${_COMPILER_ABI_FLAG.${ABI}} -fpic -shared -o %o %s"
|
|
. endif
|
|
.endif
|
|
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|