From 0feaf9761bc084c28aa2362218d28f2112b3b85b Mon Sep 17 00:00:00 2001 From: sthen Date: Mon, 17 Dec 2018 09:58:46 +0000 Subject: [PATCH] import net/libunbound, ok/feedback jca@ florian@ This package contains the validating resolver library from the Unbound distribution (the main Unbound resolver daemon and tools are in OpenBSD's base OS). --- net/libunbound/Makefile | 47 ++++++++++++++++++++++++ net/libunbound/distinfo | 2 + net/libunbound/patches/patch-Makefile_in | 13 +++++++ net/libunbound/pkg/DESCR | 3 ++ net/libunbound/pkg/PLIST | 38 +++++++++++++++++++ 5 files changed, 103 insertions(+) create mode 100644 net/libunbound/Makefile create mode 100644 net/libunbound/distinfo create mode 100644 net/libunbound/patches/patch-Makefile_in create mode 100644 net/libunbound/pkg/DESCR create mode 100644 net/libunbound/pkg/PLIST diff --git a/net/libunbound/Makefile b/net/libunbound/Makefile new file mode 100644 index 00000000000..d0cdd5b92be --- /dev/null +++ b/net/libunbound/Makefile @@ -0,0 +1,47 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2018/12/17 09:58:46 sthen Exp $ + +COMMENT= validating DNS resolver library + +DISTNAME= unbound-1.8.3 +PKGNAME= lib${DISTNAME} + +SHARED_LIBS= unbound 4.0 + +CATEGORIES= net + +HOMEPAGE= https://www.unbound.net/ + +MAINTAINER= Stuart Henderson + +# BSD +PERMIT_PACKAGE_CDROM= Yes + +WANTLIB += crypto event ssl + +MASTER_SITES= https://www.unbound.net/downloads/ + +SEPARATE_BUILD= Yes +CONFIGURE_STYLE= gnu + +# in sync with src/usr.sbin/unbound, apart from --enable-allsymbols +CONFIGURE_ARGS+= \ + --enable-shared \ + --enable-static \ + --with-ssl=/usr \ + --with-libevent=/usr \ + --with-libexpat=/usr \ + --without-pthreads \ + --without-pythonmodule \ + --with-chroot-dir=/var/unbound \ + --with-pidfile="" \ + --with-rootkey-file=/var/unbound/db/root.key \ + --with-conf-file=/var/unbound/etc/unbound.conf \ + --with-username=_unbound + +ALL_TARGET= lib +INSTALL_TARGET= install-lib + +post-install: + ${INSTALL_DATA} ${WRKBUILD}/contrib/libunbound.pc ${PREFIX}/lib/ + +.include diff --git a/net/libunbound/distinfo b/net/libunbound/distinfo new file mode 100644 index 00000000000..049419f6a9c --- /dev/null +++ b/net/libunbound/distinfo @@ -0,0 +1,2 @@ +SHA256 (unbound-1.8.3.tar.gz) = K2krgxHt+tQefQOAqsNFdgYNQXat2B3F20GcebKkzsw= +SIZE (unbound-1.8.3.tar.gz) = 5629180 diff --git a/net/libunbound/patches/patch-Makefile_in b/net/libunbound/patches/patch-Makefile_in new file mode 100644 index 00000000000..eb9212c7233 --- /dev/null +++ b/net/libunbound/patches/patch-Makefile_in @@ -0,0 +1,13 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2018/12/17 09:58:46 sthen Exp $ + +Index: Makefile.in +--- Makefile.in.orig ++++ Makefile.in +@@ -529,7 +529,6 @@ install-lib: lib $(UNBOUND_EVENT_INSTALL) + done + $(LIBTOOL) --mode=install cp unbound.h $(DESTDIR)$(includedir)/unbound.h + $(LIBTOOL) --mode=install cp libunbound.la $(DESTDIR)$(libdir) +- $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir) + + install-all: all $(PYTHONMOD_INSTALL) $(PYUNBOUND_INSTALL) $(UNBOUND_EVENT_INSTALL) install-lib + $(INSTALL) -m 755 -d $(DESTDIR)$(sbindir) diff --git a/net/libunbound/pkg/DESCR b/net/libunbound/pkg/DESCR new file mode 100644 index 00000000000..e13f814f698 --- /dev/null +++ b/net/libunbound/pkg/DESCR @@ -0,0 +1,3 @@ +This package contains the validating resolver library from the Unbound +distribution (the main Unbound resolver daemon and tools are in OpenBSD's +base OS). diff --git a/net/libunbound/pkg/PLIST b/net/libunbound/pkg/PLIST new file mode 100644 index 00000000000..171eb562337 --- /dev/null +++ b/net/libunbound/pkg/PLIST @@ -0,0 +1,38 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/17 09:58:46 sthen Exp $ +@conflict unbound-* +include/unbound.h +lib/libunbound.a +lib/libunbound.la +lib/libunbound.pc +@lib lib/libunbound.so.${LIBunbound_VERSION} +@man man/man3/libunbound.3 +@man man/man3/ub_cancel.3 +@man man/man3/ub_ctx.3 +@man man/man3/ub_ctx_add_ta.3 +@man man/man3/ub_ctx_add_ta_file.3 +@man man/man3/ub_ctx_async.3 +@man man/man3/ub_ctx_config.3 +@man man/man3/ub_ctx_create.3 +@man man/man3/ub_ctx_data_add.3 +@man man/man3/ub_ctx_data_remove.3 +@man man/man3/ub_ctx_debuglevel.3 +@man man/man3/ub_ctx_debugout.3 +@man man/man3/ub_ctx_delete.3 +@man man/man3/ub_ctx_get_option.3 +@man man/man3/ub_ctx_hosts.3 +@man man/man3/ub_ctx_print_local_zones.3 +@man man/man3/ub_ctx_resolvconf.3 +@man man/man3/ub_ctx_set_fwd.3 +@man man/man3/ub_ctx_set_option.3 +@man man/man3/ub_ctx_trustedkeys.3 +@man man/man3/ub_ctx_zone_add.3 +@man man/man3/ub_ctx_zone_remove.3 +@man man/man3/ub_fd.3 +@man man/man3/ub_poll.3 +@man man/man3/ub_process.3 +@man man/man3/ub_resolve.3 +@man man/man3/ub_resolve_async.3 +@man man/man3/ub_resolve_free.3 +@man man/man3/ub_result.3 +@man man/man3/ub_strerror.3 +@man man/man3/ub_wait.3