diff options
author | Quentin Retornaz <gentoo@retornaz.com> | 2019-12-22 02:44:37 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-12-23 16:42:14 -0500 |
commit | 5b644cb1a2c287eee592935fcc005ae5b1cf25fa (patch) | |
tree | 49b1c71c8e081ff139550baec2f8160a464e549f /net-dns | |
parent | acct-user/stubby: new user for net-dns/getdns (UID 476) (diff) | |
download | gentoo-5b644cb1a2c287eee592935fcc005ae5b1cf25fa.tar.gz gentoo-5b644cb1a2c287eee592935fcc005ae5b1cf25fa.tar.bz2 gentoo-5b644cb1a2c287eee592935fcc005ae5b1cf25fa.zip |
net-dns/getdns: bump version to 1.6.0_beta1
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Quentin Retornaz <gentoo@retornaz.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/getdns/Manifest | 1 | ||||
-rwxr-xr-x | net-dns/getdns/files/stubby.initd-r2 | 28 | ||||
-rw-r--r-- | net-dns/getdns/getdns-1.6.0_beta1.ebuild | 87 |
3 files changed, 116 insertions, 0 deletions
diff --git a/net-dns/getdns/Manifest b/net-dns/getdns/Manifest index 6c5178376c60..144eeeba9b37 100644 --- a/net-dns/getdns/Manifest +++ b/net-dns/getdns/Manifest @@ -1,2 +1,3 @@ DIST getdns-1.5.1.tar.gz 1075728 BLAKE2B fd6ac52a302ecf22cc913d8de6f93f9ab125429d0eb9d6e233f23b84bb2e242573cd93997f88b4d1a2493273691dab897efc8509a0e3f03f6fddcb9d3b53ecb6 SHA512 4013cb4f00cc87164380c22dc6f82a4fd54702769c28eeb7cfcb13fb35ef41e32916c36a1aa2f6ef05f008da97bea5c7ed849aedc6ae7050c285f9589a9817b0 DIST getdns-1.5.2.tar.gz 1091088 BLAKE2B c5f32af794f3c710c0f84027d38ca393c72a438905c5e2fe49f2d20477e3f90f855d280f43d0ef7d204fa67d95ebdb960ce86d934e26c1ef3030f263f98ec7f4 SHA512 42e56264578f59e94d0a7315cd9cb1720f24c7a9abbaa09e1b42c274d15d1082ad4a036fa3c10573cf4d0ee6d868b6fcedf3a7cd64b53bdabd9d45542e479ca4 +DIST getdns-1.6.0-beta.1.tar.gz 669637 BLAKE2B cab019c38a0e7268a3ffef7ffd6b52ab3565bbf0b4ea4e897d60cfc0885ee7d32d8bd22e58f24b554e03d4297945d4eaa915aff254f43d4e82455f1070923d46 SHA512 b36d05b09b5ab7c384fdb93820bc6ad253e9a44da9c7ea38c735882e56e03eaba1793ea22068d03867ed2ade71682686a359b1b0a821eed4a5f3bebeeaeeb7e2 diff --git a/net-dns/getdns/files/stubby.initd-r2 b/net-dns/getdns/files/stubby.initd-r2 new file mode 100755 index 000000000000..69e76c0acfdf --- /dev/null +++ b/net-dns/getdns/files/stubby.initd-r2 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +stubby_opts="-C ${STUBBY_CONFIG_FILE:-/etc/stubby/stubby.yml} -v ${STUBBY_LOGLEVEL:-5}" +command="capsh" +command_args="--inh=cap_net_bind_service --user=stubby -- -c '/usr/bin/stubby -g ${stubby_opts} >>/var/log/stubby.log 2>&1'" +pidfile="/run/stubby.pid" +name="DNS Privacy Daemon" + +depend() +{ + provide dns + need localmount net + after bootmisc + use logger +} + +start_pre() +{ + checkpath -f -m 0644 -o stubby:stubby /run/stubby.pid + checkpath -f -m 0644 -o stubby:stubby /var/log/stubby.log +} + +stop_post() +{ + [ -f /run/stubby.pid ] && rm /run/stubby.pid +} diff --git a/net-dns/getdns/getdns-1.6.0_beta1.ebuild b/net-dns/getdns/getdns-1.6.0_beta1.ebuild new file mode 100644 index 000000000000..7b782226afc5 --- /dev/null +++ b/net-dns/getdns/getdns-1.6.0_beta1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +_SRCURI_P="${P/%_beta1/-beta.1}" + +inherit cmake-utils fcaps systemd + +DESCRIPTION="Modern asynchronous DNS API" +HOMEPAGE="https://getdnsapi.net/" +SRC_URI="https://getdnsapi.net/releases/${_SRCURI_P//./-}/${_SRCURI_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +getdns-query +getdns-server-mon gnutls +idn libev libevent libuv static-libs stubby +unbound" + +S="${WORKDIR}/${_SRCURI_P}" + +# https://bugs.gentoo.org/661760 +# https://github.com/getdnsapi/getdns/issues/407 +RESTRICT="test" + +DEPEND=" + dev-libs/libbsd:= + dev-libs/libyaml:= + dev-libs/openssl:0= + idn? ( net-dns/libidn2:= ) + gnutls? ( + net-libs/gnutls:0=[dane,openssl] + dev-libs/nettle:0= + ) + libev? ( dev-libs/libev:= ) + libevent? ( dev-libs/libevent:= ) + libuv? ( dev-libs/libuv:= ) + unbound? ( >=net-dns/unbound-1.5.9:= ) +" +RDEPEND=" + ${DEPEND} + stubby? ( + acct-group/stubby + acct-user/stubby + sys-libs/libcap:= + ) +" +BDEPEND=" + doc? ( app-doc/doxygen ) +" + +PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" ) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_RUNSTATEDIR=/var/run + -DENABLE_STATIC=$(usex static-libs) + -DBUILD_GETDNS_QUERY=$(usex getdns-query) + -DBUILD_GETDNS_SERVER_MON=$(usex getdns-server-mon) + -DUSE_GNUTLS=$(usex gnutls) + -DUSE_LIBIDN2=$(usex idn) + -DUSE_LIBEV=$(usex libev) + -DUSE_LIBEVENT2=$(usex libevent) + -DUSE_LIBUV=$(use_with libuv) + -DBUILD_STUBBY=$(usex stubby) + -DENABLE_UNBOUND_EVENT_API=$(usex unbound) + -DBUILD_DOXYGEN=$(usex doc) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if use stubby; then + newinitd "${FILESDIR}"/stubby.initd-r2 stubby + newconfd "${FILESDIR}"/stubby.confd-r1 stubby + insinto /etc/logrotate.d + newins "${FILESDIR}"/stubby.logrotate stubby + systemd_dounit "${S}"/stubby/systemd/stubby.service + systemd_dotmpfilesd "${S}"/stubby/systemd/stubby.conf + fi +} + +pkg_postinst() { + if use stubby; then + fcaps cap_net_bind_service=ei /usr/bin/stubby + fi +} |