2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
11 include ..
/..
/..
/make-rules
/shared-macros.mk
13 COMPONENT_NAME
= unbound
14 COMPONENT_VERSION
= 1.22.0
15 COMPONENT_SUMMARY
= Unbound is a validating
, recursive
, caching DNS resolver
16 COMPONENT_PROJECT_URL
= https
://nlnetlabs.nl
/projects
/unbound
/about
/
17 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
18 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
19 COMPONENT_ARCHIVE_URL
= https
://github.com
/NLnetLabs
/unbound
/archive
/refs
/tags/release-
$(COMPONENT_VERSION
).
tar.gz
20 COMPONENT_SIG_URL
= $(COMPONENT_ARCHIVE_URL
).asc
21 COMPONENT_ARCHIVE_HASH
= sha256
:4e32a36d57cda666b1c8ee02185ba73462330452162d1b9c31a5b91a853ba946
22 COMPONENT_FMRI
= service
/network
/unbound
23 COMPONENT_CLASSIFICATION
= Applications
/Internet
24 COMPONENT_LICENSE
= BSD
25 COMPONENT_LICENSE_FILE
= LICENSE
26 # For check_anitya target, https://release-monitoring.org/project/5042
27 COMPONENT_ANITYA_ID
= 5042
29 include $(WS_MAKE_RULES
)/common.mk
31 COMPONENT_POST_UNPACK_ACTION
= ( $(MV
) $(COMPONENT_NAME
)-release-
$(COMPONENT_VERSION
) $(COMPONENT_SRC
) )
33 COMPONENT_PREP_ACTION
= ( cd
$(@D
) ; autoreconf
-fiv
)
35 # Provide paths for OpenSSL 3.1
36 CFLAGS
+= -I
$(OPENSSL_INCDIR
)
37 LDFLAGS
+= -L
$(OPENSSL_LIBDIR
)
41 CPPFLAGS
+= -I
/usr
/include/libevent2
42 LDFLAGS
+= -L
/usr
/lib
/$(MACH64
) -levent-2.1
46 CONFIGURE_ENV
+= CPPFLAGS
=$(CPPFLAGS
)
48 CONFIGURE_OPTIONS
+= --enable-static
=no
49 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
50 CONFIGURE_OPTIONS
+= --with-ssl
=$(OPENSSL_PREFIX
)
51 CONFIGURE_OPTIONS
+= --with-pthreads
52 CONFIGURE_OPTIONS
+= --with-libevent
53 CONFIGURE_OPTIONS
+= --with-libnghttp2
54 CONFIGURE_OPTIONS
+= --with-username
=unbound
56 COMPONENT_TEST_TRANSFORMS
+= \
57 '-e "0,/^\.\/unittest$$/d"' \
58 '-e "/^\[0\] did 10000 in/d"' \
59 '-e "/^[0-9]* checks ok./d"' \
60 '-e "/Leaving directory/d"'
62 # Auto-generated dependencies
63 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
64 REQUIRED_PACKAGES
+= SUNWcs
65 REQUIRED_PACKAGES
+= library
/expat
66 REQUIRED_PACKAGES
+= library
/libevent2
67 REQUIRED_PACKAGES
+= library
/nghttp2
68 REQUIRED_PACKAGES
+= shell/ksh93
69 REQUIRED_PACKAGES
+= system
/library