| @@ -1,31 +1,32 @@ | | | @@ -1,31 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.34 2015/02/21 10:53:40 pettai Exp $ | | 1 | # $NetBSD: Makefile,v 1.35 2015/03/09 11:59:26 pettai Exp $ |
2 | | | 2 | |
3 | DISTNAME= unbound-1.5.2 | | 3 | DISTNAME= unbound-1.5.2 |
4 | CATEGORIES= net | | 4 | CATEGORIES= net |
5 | MASTER_SITES= http://www.unbound.net/downloads/ | | 5 | MASTER_SITES= http://www.unbound.net/downloads/ |
6 | | | 6 | |
7 | MAINTAINER= pettai@NetBSD.org | | 7 | MAINTAINER= pettai@NetBSD.org |
8 | HOMEPAGE= http://www.unbound.net/ | | 8 | HOMEPAGE= http://www.unbound.net/ |
9 | COMMENT= DNS resolver and recursive server | | 9 | COMMENT= DNS resolver and recursive server |
10 | LICENSE= modified-bsd | | 10 | LICENSE= modified-bsd |
11 | | | 11 | |
12 | BUILD_DEFS+= VARBASE | | 12 | BUILD_DEFS+= VARBASE UNBOUND_USER UNBOUND_GROUP |
| | | 13 | FILES_SUBST+= UNBOUND_USER=${UNBOUND_USER} UNBOUND_GROUP=${UNBOUND_GROUP} |
13 | | | 14 | |
14 | GNU_CONFIGURE= yes | | 15 | GNU_CONFIGURE= yes |
15 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
16 | | | 17 | |
17 | CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat} | | 18 | CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat} |
18 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound.pid | | 19 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid |
19 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} | | 20 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} |
20 | CONFIGURE_ARGS+= --enable-allsymbols | | 21 | CONFIGURE_ARGS+= --enable-allsymbols |
21 | | | 22 | |
22 | # Add the same logic as for ldns, so sha2/gost is configured automatically | | 23 | # Add the same logic as for ldns, so sha2/gost is configured automatically |
23 | CHECK_BUILTIN.openssl= yes | | 24 | CHECK_BUILTIN.openssl= yes |
24 | .include "../../security/openssl/builtin.mk" | | 25 | .include "../../security/openssl/builtin.mk" |
25 | CHECK_BUILTIN.openssl= no | | 26 | CHECK_BUILTIN.openssl= no |
26 | .include "../../security/openssl/buildlink3.mk" | | 27 | .include "../../security/openssl/buildlink3.mk" |
27 | | | 28 | |
28 | PLIST_VARS+= sha2 gost | | 29 | PLIST_VARS+= sha2 gost |
29 | .if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) | | 30 | .if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) |
30 | PLIST_VARS.gost!= \ | | 31 | PLIST_VARS.gost!= \ |
31 | if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl:Q}; then \ | | 32 | if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl:Q}; then \ |