Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 638168

Summary: net-dns/stubby - a local DNS Privacy stub resolver
Product: Gentoo Linux Reporter: Kristian <kbx>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED OBSOLETE    
Severity: normal Keywords: EBUILD, PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
URL: https://getdnsapi.net/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 638166    
Bug Blocks:    
Attachments: stubby-0.1.5.ebuild
stubby.init
stubby-0.1.5-config.patch
stubby-0.1.5.ebuild
stubby.init
stubby-0.1.5-config.patch

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.