On my system, after installing dns/dnscrypt-proxy and activating it, I get a failure on boot due to a missing library (libsodium.so.13 not found). This seems to happen because dnscrypt-proxy starts before ldconfig during boot, so /usr/local/lib (where libsodium resides) is not in the loader path when dnscrypt-proxy starts. The following patch adds a dependency of dnscrypt-proxy to the ldconfig init script and solves the problem for me: --- /usr/ports/dns/dnscrypt-proxy/files/dnscrypt-proxy.in.old 2015-09-12 15:58:19.252440000 +0200 +++ /usr/ports/dns/dnscrypt-proxy/files/dnscrypt-proxy.in 2015-09-12 15:58:47.804793000 +0200 @@ -3,7 +3,7 @@ # $FreeBSD: head/dns/dnscrypt-proxy/files/dnscrypt-proxy.in 395430 2015-08-27 15:15:20Z feld $ # # PROVIDE: dnscrypt_proxy -# REQUIRE: SERVERS cleanvar +# REQUIRE: SERVERS cleanvar ldconfig # BEFORE: named local_unbound unbound # KEYWORD: shutdown #
Thanks for the correction patch / your solution! I will upload another of the same in a minute.
Created attachment 161273 [details] correction ldconfig
A commit references this bug: Author: junovitch Date: Sat Sep 26 02:39:11 UTC 2015 New revision: 397925 URL: https://svnweb.freebsd.org/changeset/ports/397925 Log: dns/dnscrypt-proxy: ensure daemon starts after ldconfig - While here, fix format of $FreeBSD$ tag in rc script - Also remove fbsd:nokeywords and add svn:keywords to rc script PR: 203059 Submitted by: Gregorio Guidi <gregorio.guidi@gmail.com> (original patch) Approved by: Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer) Changes: head/dns/dnscrypt-proxy/Makefile head/dns/dnscrypt-proxy/files/dnscrypt-proxy.in head/dns/dnscrypt-proxy/files/dnscrypt-proxy_multi.in
Committed. Thanks for the report!