| @@ -1,40 +1,40 @@ | | | @@ -1,40 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.42 2016/02/25 16:55:14 roy Exp $ | | 1 | # $NetBSD: Makefile,v 1.43 2016/02/25 17:24:13 roy Exp $ |
2 | | | 2 | |
3 | DISTNAME= unbound-1.5.7 | | 3 | DISTNAME= unbound-1.5.7 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= net | | 5 | CATEGORIES= net |
6 | MASTER_SITES= http://www.unbound.net/downloads/ | | 6 | MASTER_SITES= http://www.unbound.net/downloads/ |
7 | | | 7 | |
8 | MAINTAINER= pettai@NetBSD.org | | 8 | MAINTAINER= pettai@NetBSD.org |
9 | HOMEPAGE= http://www.unbound.net/ | | 9 | HOMEPAGE= http://www.unbound.net/ |
10 | COMMENT= DNS resolver and recursive server | | 10 | COMMENT= DNS resolver and recursive server |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | BUILD_DEFS+= VARBASE UNBOUND_USER UNBOUND_GROUP | | 13 | BUILD_DEFS+= VARBASE UNBOUND_USER UNBOUND_GROUP |
14 | FILES_SUBST+= UNBOUND_USER=${UNBOUND_USER} UNBOUND_GROUP=${UNBOUND_GROUP} | | 14 | FILES_SUBST+= UNBOUND_USER=${UNBOUND_USER} UNBOUND_GROUP=${UNBOUND_GROUP} |
15 | | | 15 | |
16 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
17 | USE_LIBTOOL= yes | | 17 | USE_LIBTOOL= yes |
18 | | | 18 | |
19 | CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat} | | 19 | CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat} |
20 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid | | 20 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid |
21 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} | | 21 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} |
22 | CONFIGURE_ARGS+= --enable-allsymbols | | 22 | CONFIGURE_ARGS+= --enable-allsymbols |
23 | | | 23 | |
24 | # unbound uses some OpenBSD libc functions such as reallocarray(3) | | 24 | # unbound uses some OpenBSD libc functions such as reallocarray(3). |
25 | # the existing tests just look for the symbol in libc regardless | | 25 | # The existing tests just look for the symbol in libc regardless |
26 | # of any | | 26 | # of anything in stdlib.h |
27 | CPPFLAGS+= -D_OPENBSD_SOURCE | | 27 | CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE |
28 | | | 28 | |
29 | # Add the same logic as for ldns, so sha2/gost is configured automatically | | 29 | # Add the same logic as for ldns, so sha2/gost is configured automatically |
30 | CHECK_BUILTIN.openssl= yes | | 30 | CHECK_BUILTIN.openssl= yes |
31 | .include "../../security/openssl/builtin.mk" | | 31 | .include "../../security/openssl/builtin.mk" |
32 | CHECK_BUILTIN.openssl= no | | 32 | CHECK_BUILTIN.openssl= no |
33 | .include "../../security/openssl/buildlink3.mk" | | 33 | .include "../../security/openssl/buildlink3.mk" |
34 | | | 34 | |
35 | PLIST_VARS+= sha2 gost | | 35 | PLIST_VARS+= sha2 gost |
36 | .if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) | | 36 | .if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) |
37 | PLIST_VARS.gost!= \ | | 37 | PLIST_VARS.gost!= \ |
38 | if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl:Q}; then \ | | 38 | if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl:Q}; then \ |
39 | ${ECHO} "yes"; \ | | 39 | ${ECHO} "yes"; \ |
40 | else \ | | 40 | else \ |