blob: b3650028645306ea053dd2802cfe76c017c4ce67 (
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
|
# $NetBSD: Makefile,v 1.45 2019/06/13 23:47:05 ryoon Exp $
DISTNAME= knot-2.8.2
CATEGORIES= net
MASTER_SITES= https://secure.nic.cz/files/knot-dns/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= https://www.knot-dns.cz/
COMMENT= Knot (auth) DNS server
LICENSE= gnu-gpl-v3
BUILD_DEFS+= VARBASE
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/knot
CONFIGURE_ARGS+= --with-rundir=${VARBASE}/run/knot
CONFIGURE_ARGS+= --with-storage=${VARBASE}/knot/lib
CONFIGURE_ARGS+= --with-urcu=${BUILDLINK_PREFIX.userspace-rcu}
CONFIGURE_ARGS+= --with-libidn=${BUILDLINK_PREFIX.libidn}
CONFIGURE_ARGS.NetBSD+= --enable-recvmmsg=no
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386"
CFLAGS += -march=i586
.endif
USE_LIBTOOL= yes
USE_TOOLS+= bison flex gmake pkg-config
REPLACE_PYTHON= src/utils/pykeymgr/pykeymgr.in
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
PKGCONFIG_OVERRIDE= src/dnssec/libdnssec.pc.in
PKGCONFIG_OVERRIDE+= src/knotd.pc.in
PKGCONFIG_OVERRIDE+= src/libknot.pc.in
PKGCONFIG_OVERRIDE+= src/zscanner/libzscanner.pc.in
RCD_SCRIPTS= knot
EGDIR= ${PREFIX}/share/examples/knot
PKG_SYSCONFSUBDIR= knot
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKSRC}/samples/Makefile.in
SUBST_STAGE.paths= pre-configure
SUBST_VARS.paths= EGDIR
CONF_FILES= ${EGDIR}/knot.sample.conf \
${PKG_SYSCONFDIR}/knot.conf
CONF_FILES+= ${EGDIR}/example.com.zone \
${PKG_SYSCONFDIR}/example.com.zone
INSTALLATION_DIRS= ${EGDIR}
OWN_DIRS+= ${VARBASE}/knot
.include "../../devel/userspace-rcu/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../textproc/jansson/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|