Lines 1-7
Link Here
|
1 |
# Created by: Leo Vandewoestijne <freebsd@dns.company> |
1 |
# Created by: Leo Vandewoestijne <freebsd@dns.company> |
2 |
|
2 |
|
3 |
PORTNAME= knot |
3 |
PORTNAME= knot |
4 |
DISTVERSION= 3.0.6 |
4 |
DISTVERSION= 3.0.7 |
5 |
CATEGORIES= dns |
5 |
CATEGORIES= dns |
6 |
MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ |
6 |
MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ |
7 |
https://dns.company/downloads/knot-dns/ |
7 |
https://dns.company/downloads/knot-dns/ |
Lines 27-43
Link Here
|
27 |
HAS_CONFIGURE= yes |
27 |
HAS_CONFIGURE= yes |
28 |
BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed |
28 |
BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed |
29 |
CONFIGURE_ARGS= --enable-recvmmsg=no \ |
29 |
CONFIGURE_ARGS= --enable-recvmmsg=no \ |
30 |
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \ |
30 |
--mandir=${MANPREFIX}/man \ |
31 |
--mandir=${MANPREFIX}/man |
31 |
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig |
32 |
|
32 |
|
33 |
.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) |
33 |
.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) |
34 |
CONFIGURE_ARGS+= --with-rundir=/var/run/knot \ |
34 |
CONFIGURE_ARGS+= --with-rundir=/var/run/knot \ |
35 |
--with-storage=/var/db/knot |
35 |
--with-storage=/var/db/knot |
36 |
LIB_DEPENDS+= liburcu.so:sysutils/liburcu |
36 |
LIB_DEPENDS+= liburcu.so:sysutils/liburcu |
37 |
USE_RC_SUBR= ${PORTNAME} |
37 |
USE_RC_SUBR= ${PORTNAME} |
38 |
#PLIST_FILES= etc/rc.d/${PORTNAME} |
38 |
#PLIST_FILES= etc/rc.d/${PORTNAME} |
39 |
SUB_FILES= pkg-message |
39 |
SUB_FILES= pkg-message |
40 |
USES+= libedit |
40 |
USES+= libedit |
41 |
.endif |
41 |
.endif |
42 |
|
42 |
|
43 |
.if defined(UTILS_ONLY) || defined(LIB_ONLY) |
43 |
.if defined(UTILS_ONLY) || defined(LIB_ONLY) |
Lines 54-94
Link Here
|
54 |
|
54 |
|
55 |
USERS= knot |
55 |
USERS= knot |
56 |
GROUPS= knot |
56 |
GROUPS= knot |
57 |
SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}" |
57 |
SUB_LIST+= GROUPS="${GROUPS}" \ |
|
|
58 |
USERS="${USERS}" |
58 |
|
59 |
|
59 |
PORTDOCS= COPYING NEWS |
60 |
PORTDOCS= COPYING NEWS |
60 |
|
61 |
|
61 |
OPTIONS_DEFINE= DNSTAP DOCS |
62 |
OPTIONS_DEFINE= DNSTAP DOCS |
62 |
|
63 |
|
63 |
.if !defined(LIB_ONLY) |
64 |
.if !defined(LIB_ONLY) |
64 |
OPTIONS_DEFINE+= IDN |
65 |
OPTIONS_DEFINE+= IDN |
65 |
.endif |
66 |
.endif |
66 |
|
67 |
|
67 |
.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) |
68 |
.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) |
68 |
OPTIONS_DEFINE+= FASTPARSER MAXMINDDB |
69 |
OPTIONS_DEFINE+= FASTPARSER MAXMINDDB |
69 |
.endif |
70 |
.endif |
70 |
|
71 |
|
71 |
DNSTAP_DESC= dnstap support (see dnstap.info) |
72 |
DNSTAP_DESC= dnstap support (see dnstap.info) |
72 |
DNSTAP_CONFIGURE_ENABLE= dnstap |
73 |
DNSTAP_CONFIGURE_ENABLE= dnstap |
73 |
DNSTAP_CONFIGURE_WITH= module-dnstap=yes |
74 |
DNSTAP_CONFIGURE_WITH= module-dnstap=yes |
74 |
DNSTAP_LIB_DEPENDS= libprotobuf-c.so:devel/protobuf-c \ |
75 |
DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm \ |
75 |
libfstrm.so:devel/fstrm |
76 |
libprotobuf-c.so:devel/protobuf-c |
76 |
|
77 |
|
77 |
# XXX: because `kdig_CPPFLAGS += $(DNSTAP_CFLAGS)' line is missing from |
78 |
# XXX: because `kdig_CPPFLAGS += $(DNSTAP_CFLAGS)' line is missing from |
78 |
# `src/Makefile.am' file (and thus pre-generated `src/Makefile.in') which |
79 |
# `src/Makefile.am' file (and thus pre-generated `src/Makefile.in') which |
79 |
# should contain "$libfstrm_CFLAGS $libprotobuf_c_CFLAGS" set by configure |
80 |
# should contain "$libfstrm_CFLAGS $libprotobuf_c_CFLAGS" set by configure |
80 |
# script, provide it here explicitly as patching those files would result |
81 |
# script, provide it here explicitly as patching those files would result |
81 |
# in higher line count. Ideally this bug should be fixed upstream. |
82 |
# in higher line count. Ideally this bug should be fixed upstream. |
82 |
DNSTAP_CPPFLAGS= -I${LOCALBASE}/include |
83 |
DNSTAP_CPPFLAGS= -I${LOCALBASE}/include |
83 |
|
84 |
|
84 |
DOCS_CONFIGURE_OFF= --disable-documentation |
85 |
DOCS_CONFIGURE_OFF= --disable-documentation |
85 |
|
86 |
|
86 |
FASTPARSER_DESC= Fast zone parser (demanding compilation) |
87 |
FASTPARSER_DESC= Fast zone parser (demanding compilation) |
87 |
FASTPARSER_CONFIGURE_ENABLE= fastparser |
88 |
FASTPARSER_CONFIGURE_ENABLE= fastparser |
88 |
|
89 |
|
89 |
IDN_CONFIGURE_WITH= libidn |
90 |
IDN_CONFIGURE_WITH= libidn |
90 |
IDN_CONFIGURE_OFF= --without-libidn |
91 |
IDN_CONFIGURE_OFF= --without-libidn |
91 |
#IDN_LIB_DEPENDS= libidn2.so:dns/libidn2 |
92 |
#IDN_LIB_DEPENDS= libidn2.so:dns/libidn2 |
92 |
|
93 |
|
93 |
MAXMINDDB_DESC= Enable MaxMind for geodb module |
94 |
MAXMINDDB_DESC= Enable MaxMind for geodb module |
94 |
MAXMINDDB_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb |
95 |
MAXMINDDB_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb |
Lines 97-103
Link Here
|
97 |
.include <bsd.port.options.mk> |
98 |
.include <bsd.port.options.mk> |
98 |
|
99 |
|
99 |
.if ${ARCH} == i386 |
100 |
.if ${ARCH} == i386 |
100 |
USES+= autoreconf |
101 |
USES+= autoreconf |
101 |
.endif |
102 |
.endif |
102 |
|
103 |
|
103 |
post-patch: |
104 |
post-patch: |