Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638168 - net-dns/stubby - a local DNS Privacy stub resolver
Summary: net-dns/stubby - a local DNS Privacy stub resolver
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Default Assignee for New Packages
URL: https://getdnsapi.net/
Whiteboard:
Keywords: EBUILD, PATCH
Depends on: 638166
Blocks:
  Show dependency tree
 
Reported: 2017-11-19 19:30 UTC by Kristian
Modified: 2019-01-07 09:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
stubby-0.1.5.ebuild (stubby-0.1.5.ebuild,909 bytes, text/plain)
2017-11-19 19:30 UTC, Kristian
Details
stubby.init (stubby.init,575 bytes, text/plain)
2017-11-19 19:34 UTC, Kristian
Details
stubby-0.1.5-config.patch (stubby-0.1.5-config.patch,397 bytes, patch)
2017-11-19 19:38 UTC, Kristian
Details | Diff
stubby-0.1.5.ebuild (stubby-0.1.5.ebuild,829 bytes, text/plain)
2017-11-22 18:23 UTC, Kristian
Details
stubby.init (stubby.init,563 bytes, text/plain)
2017-11-22 18:24 UTC, Kristian
Details
stubby-0.1.5-config.patch (stubby-0.1.5-config.patch,352 bytes, patch)
2017-11-22 18:26 UTC, Kristian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian 2017-11-19 19:30:45 UTC
Created attachment 504988 [details]
stubby-0.1.5.ebuild

Stubby is an application that acts as a local DNS Privacy stub resolver. In other words, it resolves your DNS queries over TLS so your provider can not see what you resolve (of course the servers preconfigured in stubby can).

Depends on net-dns/getdns (Bug #638166).
Comment 1 Kristian 2017-11-19 19:34:53 UTC
Created attachment 504994 [details]
stubby.init

openrc init script for stubby
Comment 2 Kristian 2017-11-19 19:38:21 UTC
Created attachment 504996 [details, diff]
stubby-0.1.5-config.patch

Adds a missing DESTDIR to Makefile.am (already fixed upstream).
Actually the line should probably not be in the Makefile at all, as the directory is either created by systemd-tmpfiles or by the openrc init script.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-11-22 17:54:14 UTC
Comment on attachment 504988 [details]
stubby-0.1.5.ebuild

># Copyright 1999-2017 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
>
>EAPI=6
>
>inherit autotools eutils systemd user

With EAPI=6 you do not need epatch from eutils.eclass.

>PATCHES=(
>    "${FILESDIR}/${P}-config.patch"
>)

>src_prepare() {
>    eapply_user
>    epatch ${FILESDIR}/${P}-config.patch

If you call "default" with EAPI=6 instead of the above two lines, you can remove the eutils.eclass inherit. Also, first you set the PATCHES variable and then you don't use it.

>    eautoreconf
>}
>
>src_configure() {
>	econf --with-piddir="/var/run/stubby"

You want /run not /var/run.

>}
>
>src_install() {
>	emake DESTDIR="${D}" install

Again, calling "default" should suffice here.
Comment 4 Kristian 2017-11-22 18:23:03 UTC
Created attachment 505796 [details]
stubby-0.1.5.ebuild

Updated ebuild according to comments
Comment 5 Kristian 2017-11-22 18:24:15 UTC
Created attachment 505798 [details]
stubby.init

openrc init script now uses /run/stubby for pid file
Comment 6 Kristian 2017-11-22 18:26:30 UTC
Created attachment 505800 [details, diff]
stubby-0.1.5-config.patch

patch now simply removes the install line from Makefile.am, that creates /run/stubby, as this provoked a QA notice during install. The directory is created at runtime (systemd-tmpfiles or openrc init script).
Comment 7 Quentin Retornaz 2018-04-16 19:26:10 UTC
stubby is available in portage tree as net-dns/getdns with stubby USE flag.
Comment 8 Kristian 2019-01-07 09:41:55 UTC
closed, as stubby is in the tree. Thanks.