View | Details | Raw Unified | Return to bug 179812
Collapse All | Expand All

(-)dns/ldns/Makefile (-20 / +23 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	ldns
4
PORTNAME=	ldns
5
PORTVERSION=	1.6.16
5
PORTVERSION=	1.6.16
6
PORTREVISION=	1
6
CATEGORIES=	dns
7
CATEGORIES=	dns
7
MASTER_SITES=	http://www.nlnetlabs.nl/downloads/ldns/ \
8
MASTER_SITES=	http://www.nlnetlabs.nl/downloads/ldns/ \
8
		CRITICAL
9
		CRITICAL
Lines 17-39 Link Here
17
USE_OPENSSL=	yes
18
USE_OPENSSL=	yes
18
USE_LDCONFIG=	yes
19
USE_LDCONFIG=	yes
19
20
20
OPTIONS_DEFINE=	DOXYGEN EXAMPLES DRILL GOST PYLDNS
21
.if !defined(BUILD_PYLDNS)
22
OPTIONS_DEFINE=	DOXYGEN EXAMPLES DRILL
21
OPTIONS_DEFAULT=	EXAMPLES DRILL
23
OPTIONS_DEFAULT=	EXAMPLES DRILL
22
24
23
DRILL_DESC=	With drill program
25
DRILL_DESC=	With drill program
26
.endif
27
28
OPTIONS_DEFINE+=	GOST
29
24
GOST_DESC=	GOST signatures enabled, requires openssl >= 1.0.0
30
GOST_DESC=	GOST signatures enabled, requires openssl >= 1.0.0
25
PYLDNS_DESC=	${PYTHON_DESC}
26
31
27
.include <bsd.port.options.mk>
32
.include <bsd.port.options.mk>
28
33
29
.if ${PORT_OPTIONS:MPYLDNS}
34
.if defined(BUILD_PYLDNS)
30
USE_PYTHON=	yes
35
USE_PYTHON=	yes
31
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
36
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
32
CONFLICTS=	ldns-[0-9]*
37
ALL_TARGET=	pyldns
38
INSTALL_TARGET=	install-pyldns
39
40
CONFIGURE_ARGS+=--with-pyldns
41
LIB_DEPENDS+=	ldns:${PORTSDIR}/dns/ldns
42
BUILD_DEPENDS+=	${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
43
44
post-patch:
45
	@${SED} -i '' -e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' ${WRKSRC}/Makefile.in
33
.else
46
.else
34
CONFLICTS=	py*-ldns-[0-9]*
35
.endif
36
37
ALL_TARGET=	all
47
ALL_TARGET=	all
38
INSTALL_TARGET=	install-lib install-h install-config
48
INSTALL_TARGET=	install-lib install-h install-config
39
49
Lines 233-245 Link Here
233
MAN1+=	ldns-config.1
243
MAN1+=	ldns-config.1
234
.endif
244
.endif
235
245
236
.if ${PORT_OPTIONS:MGOST}
237
BUILD_DEPENDS+=	openssl>=1.0:${PORTSDIR}/security/openssl
238
.else
239
NO_GOST=	--disable-gost
240
CONFIGURE_ARGS+=${NO_GOST}
241
.endif
242
243
.if ${PORT_OPTIONS:MDRILL}
246
.if ${PORT_OPTIONS:MDRILL}
244
PLIST_SUB+=	DRILLPROG=""
247
PLIST_SUB+=	DRILLPROG=""
245
MAN1+=	drill.1
248
MAN1+=	drill.1
Lines 262-274 Link Here
262
PLIST_SUB+=	EXAMPLES="@comment "
265
PLIST_SUB+=	EXAMPLES="@comment "
263
.endif
266
.endif
264
267
265
.if ${PORT_OPTIONS:MPYLDNS}
268
.endif # BUILD_PYLDNS
266
CONFIGURE_ARGS+=--with-pyldns
269
267
BUILD_DEPENDS+=	${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
270
.if ${PORT_OPTIONS:MGOST}
268
INSTALL_TARGET+=install-pyldns
271
BUILD_DEPENDS+=	openssl>=1.0:${PORTSDIR}/security/openssl
269
PLIST_SUB+=	PYLDNS=""
270
.else
272
.else
271
PLIST_SUB+=	PYLDNS="@comment "
273
NO_GOST=	--disable-gost
274
CONFIGURE_ARGS+=${NO_GOST}
272
.endif
275
.endif
273
276
274
post-configure:
277
post-configure:
(-)dns/ldns/pkg-plist (-6 lines)
Lines 60-69 Link Here
60
lib/libldns.la
60
lib/libldns.la
61
lib/libldns.so
61
lib/libldns.so
62
lib/libldns.so.1
62
lib/libldns.so.1
63
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.so.1
64
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/ldns.py
65
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.so
66
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.la
67
%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.a
68
%%PYLDNS%%@dirrm %%PYTHON_SITELIBDIR%%/ldns
69
@dirrm include/ldns
63
@dirrm include/ldns
(-)dns/py-ldns/Makefile (-1 / +3 lines)
Lines 3-8 Link Here
3
3
4
MASTERDIR=	${.CURDIR}/../../dns/ldns
4
MASTERDIR=	${.CURDIR}/../../dns/ldns
5
5
6
OPTIONS_SET=	PYLDNS
6
BUILD_PYLDNS=yes
7
7
8
PLIST=	${.CURDIR}/pkg-plist
9
8
.include "${MASTERDIR}/Makefile"
10
.include "${MASTERDIR}/Makefile"
(-)dns/py-ldns/pkg-plist (+6 lines)
Line 0 Link Here
1
%%PYTHON_SITELIBDIR%%/_ldns.so.1
2
%%PYTHON_SITELIBDIR%%/ldns.py
3
%%PYTHON_SITELIBDIR%%/_ldns.so
4
%%PYTHON_SITELIBDIR%%/_ldns.la
5
%%PYTHON_SITELIBDIR%%/_ldns.a
6
@dirrm %%PYTHON_SITELIBDIR%%/ldns

Return to bug 179812