Wed Jun 12 10:04:05 2019 UTC ()
unbound: bump PKGREVISION for previous

a new file is installed -> PLIST change -> bump


(wiz)
diff -r1.66 -r1.67 pkgsrc/net/unbound/Makefile

cvs diff -r1.66 -r1.67 pkgsrc/net/unbound/Makefile (switch to unified diff)

--- pkgsrc/net/unbound/Makefile 2019/06/12 09:21:42 1.66
+++ pkgsrc/net/unbound/Makefile 2019/06/12 10:04:05 1.67
@@ -1,106 +1,107 @@ @@ -1,106 +1,107 @@
1# $NetBSD: Makefile,v 1.66 2019/06/12 09:21:42 pettai Exp $ 1# $NetBSD: Makefile,v 1.67 2019/06/12 10:04:05 wiz Exp $
2 2
3DISTNAME= unbound-1.9.1 3DISTNAME= unbound-1.9.1
 4PKGREVISION= 1
4CATEGORIES= net 5CATEGORIES= net
5MASTER_SITES= http://www.nlnetlabs.nl/downloads/unbound/ 6MASTER_SITES= http://www.nlnetlabs.nl/downloads/unbound/
6 7
7MAINTAINER= pettai@NetBSD.org 8MAINTAINER= pettai@NetBSD.org
8HOMEPAGE= http://www.unbound.net/ 9HOMEPAGE= http://www.unbound.net/
9COMMENT= DNS resolver and recursive server 10COMMENT= DNS resolver and recursive server
10LICENSE= modified-bsd 11LICENSE= modified-bsd
11 12
12BUILD_DEFS+= VARBASE UNBOUND_USER UNBOUND_GROUP 13BUILD_DEFS+= VARBASE UNBOUND_USER UNBOUND_GROUP
13FILES_SUBST+= UNBOUND_USER=${UNBOUND_USER} UNBOUND_GROUP=${UNBOUND_GROUP} 14FILES_SUBST+= UNBOUND_USER=${UNBOUND_USER} UNBOUND_GROUP=${UNBOUND_GROUP}
14 15
15USE_LIBTOOL= yes 16USE_LIBTOOL= yes
16CONFIGURE_ARGS+= --enable-allsymbols 17CONFIGURE_ARGS+= --enable-allsymbols
17CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat} 18CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat}
18CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent} 19CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent}
19CONFIGURE_ARGS+= --enable-event-api 20CONFIGURE_ARGS+= --enable-event-api
20CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_PREFIX.openssl} 21CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_PREFIX.openssl}
21CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid 22CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid
22CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} 23CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
23GNU_CONFIGURE= yes 24GNU_CONFIGURE= yes
24TEST_TARGET= test 25TEST_TARGET= test
25 26
26.include "options.mk" 27.include "options.mk"
27 28
28# unbound uses some OpenBSD libc functions such as reallocarray(3). 29# unbound uses some OpenBSD libc functions such as reallocarray(3).
29# The existing tests just look for the symbol in libc regardless 30# The existing tests just look for the symbol in libc regardless
30# of anything in stdlib.h 31# of anything in stdlib.h
31CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE 32CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE
32 33
33# Add the same logic as for ldns, so sha2/gost is configured automatically 34# Add the same logic as for ldns, so sha2/gost is configured automatically
34CHECK_BUILTIN.openssl= yes 35CHECK_BUILTIN.openssl= yes
35.include "../../security/openssl/builtin.mk" 36.include "../../security/openssl/builtin.mk"
36CHECK_BUILTIN.openssl= no 37CHECK_BUILTIN.openssl= no
37.include "../../security/openssl/buildlink3.mk" 38.include "../../security/openssl/buildlink3.mk"
38 39
39PLIST_VARS+= sha2 gost 40PLIST_VARS+= sha2 gost
40.if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) 41.if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
41PLIST_VARS.gost!= \ 42PLIST_VARS.gost!= \
42 if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl}; then \ 43 if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl}; then \
43 ${ECHO} "yes"; \ 44 ${ECHO} "yes"; \
44 else \ 45 else \
45 ${ECHO} "no"; \ 46 ${ECHO} "no"; \
46 fi 47 fi
47PLIST_VARS.sha2!= \ 48PLIST_VARS.sha2!= \
48 if ${PKG_ADMIN} pmatch 'openssl>=0.9.8' ${BUILTIN_PKG.openssl}; then \ 49 if ${PKG_ADMIN} pmatch 'openssl>=0.9.8' ${BUILTIN_PKG.openssl}; then \
49 ${ECHO} "yes"; \ 50 ${ECHO} "yes"; \
50 else \ 51 else \
51 ${ECHO} "no"; \ 52 ${ECHO} "no"; \
52 fi 53 fi
53.else 54.else
54PLIST_VARS.gost!= \ 55PLIST_VARS.gost!= \
55 if ${PKG_INFO} -qe 'openssl>=1.0.0'; then \ 56 if ${PKG_INFO} -qe 'openssl>=1.0.0'; then \
56 ${ECHO} yes; \ 57 ${ECHO} yes; \
57 else \ 58 else \
58 ${ECHO} no; \ 59 ${ECHO} no; \
59 fi 60 fi
60PLIST_VARS.sha2!= \ 61PLIST_VARS.sha2!= \
61 if ${PKG_INFO} -qe 'openssl>=0.9.8'; then \ 62 if ${PKG_INFO} -qe 'openssl>=0.9.8'; then \
62 ${ECHO} yes; \ 63 ${ECHO} yes; \
63 else \ 64 else \
64 ${ECHO} no; \ 65 ${ECHO} no; \
65 fi 66 fi
66.endif 67.endif
67.if ${PLIST_VARS.gost} == "yes" 68.if ${PLIST_VARS.gost} == "yes"
68CONFIGURE_ARGS+= --enable-gost 69CONFIGURE_ARGS+= --enable-gost
69.else 70.else
70CONFIGURE_ARGS+= --disable-gost 71CONFIGURE_ARGS+= --disable-gost
71.endif 72.endif
72.if ${PLIST_VARS.sha2} == "yes" 73.if ${PLIST_VARS.sha2} == "yes"
73CONFIGURE_ARGS+= --enable-sha2 74CONFIGURE_ARGS+= --enable-sha2
74.else 75.else
75CONFIGURE_ARGS+= --disable-sha2 76CONFIGURE_ARGS+= --disable-sha2
76.endif 77.endif
77 78
78SUBST_CLASSES+= paths 79SUBST_CLASSES+= paths
79SUBST_STAGE.paths= post-configure 80SUBST_STAGE.paths= post-configure
80SUBST_MESSAGE.paths= Fixing path names 81SUBST_MESSAGE.paths= Fixing path names
81SUBST_FILES.paths= doc/example.conf doc/*.5 doc/*.8 82SUBST_FILES.paths= doc/example.conf doc/*.5 doc/*.8
82SUBST_SED.paths= -e "s|/usr/local|${PREFIX}|" 83SUBST_SED.paths= -e "s|/usr/local|${PREFIX}|"
83 84
84INSTALL_MAKE_FLAGS+= \ 85INSTALL_MAKE_FLAGS+= \
85 configfile=${PREFIX}/share/examples/unbound/unbound.conf 86 configfile=${PREFIX}/share/examples/unbound/unbound.conf
86 87
87PKG_SYSCONFSUBDIR= unbound 88PKG_SYSCONFSUBDIR= unbound
88 89
89CONF_FILES+= share/examples/unbound/unbound.conf \ 90CONF_FILES+= share/examples/unbound/unbound.conf \
90 ${PKG_SYSCONFDIR}/unbound.conf 91 ${PKG_SYSCONFDIR}/unbound.conf
91 92
92RCD_SCRIPTS= unbound 93RCD_SCRIPTS= unbound
93SMF_METHODS= unbound 94SMF_METHODS= unbound
94SMF_NAME= unbound 95SMF_NAME= unbound
95 96
96UNBOUND_USER?= unbound 97UNBOUND_USER?= unbound
97UNBOUND_GROUP?= unbound 98UNBOUND_GROUP?= unbound
98 99
99PKG_GROUPS= ${UNBOUND_GROUP} 100PKG_GROUPS= ${UNBOUND_GROUP}
100PKG_USERS= ${UNBOUND_USER}:${UNBOUND_GROUP} 101PKG_USERS= ${UNBOUND_USER}:${UNBOUND_GROUP}
101 102
102.include "../../devel/libevent/buildlink3.mk" 103.include "../../devel/libevent/buildlink3.mk"
103.include "../../textproc/expat/buildlink3.mk" 104.include "../../textproc/expat/buildlink3.mk"
104BUILDLINK_API_DEPENDS.flex+= flex>=2.6.4 105BUILDLINK_API_DEPENDS.flex+= flex>=2.6.4
105.include "../../devel/flex/buildlink3.mk" 106.include "../../devel/flex/buildlink3.mk"
106.include "../../mk/bsd.pkg.mk" 107.include "../../mk/bsd.pkg.mk"