blob: 7ec40085d0bacb3b788194b39d3db77ac59c58a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# $NetBSD: Makefile,v 1.36 2022/06/30 11:19:00 nia Exp $
DISTNAME= varnish-7.1.0
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= https://varnish-cache.org/_downloads/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://varnish-cache.org/
COMMENT= High-performace HTTP accelerator
LICENSE= modified-bsd
BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils
PYTHON_VERSIONED_DEPENDENCIES= sphinx:tool
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
BUILD_DEFS+= VARBASE
BUILD_DEFS+= PKG_SYSCONFBASE
PKG_SYSCONFSUBDIR= varnish
EGDIR= ${PREFIX}/share/examples/varnish
CONF_FILES= ${EGDIR}/builtin.vcl \
${PKG_SYSCONFDIR}/builtin.vcl
.include "../../mk/bsd.prefs.mk"
VRNUSER?= varnish
VRNGROUP?= ${VRNUSER}
STATEDIR= ${VARBASE}/db
VRNDIR= ${STATEDIR}/${PKGBASE}
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}
REPLACE_PYTHON+= lib/libvcc/vmodtool.py
REPLACE_PYTHON+= lib/libvsc/vsctool.py
CONFIGURE_ARGS+= --localstatedir=${STATEDIR}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
CONFIGURE_ARGS+= --with-rst2html=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}
CONFIGURE_ARGS+= --with-rst2man=${PREFIX}/bin/rst2man-${PYVERSSUFFIX}
CONFIGURE_ARGS+= --with-sphinx-build=${PREFIX}/bin/sphinx-build-${PYVERSSUFFIX}
# Explicitly disable epoll on illumos, provided for Linux compat only.
CONFIGURE_ARGS.SunOS+= --disable-epoll
.include "../../mk/compiler.mk"
# Fixes build on at least SunOS/i386
# See https://github.com/varnishcache/varnish-cache/issues/1875
.if !empty(CC_VERSION:Mgcc*) && ${MACHINE_ARCH} == "i386"
CFLAGS+= -fexcess-precision=standard
.endif
LDFLAGS.NetBSD+= -lm # for ldexp
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
# not signed/unsigned char safe
BUILDLINK_TRANSFORM+= rm:-Werror
PKGCONFIG_OVERRIDE+= varnishapi.pc.in
RCD_SCRIPTS= varnishd varnishlog varnishncsa
TEST_TARGET= check
.include "../../devel/pcre2/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|