pkgconf: simplify unveil handling
Instead of giving fine-grained read access by iterating, use a simple
unveil("/", "r"). pkgconf runs with pledge "stdio rpath wpath cpath unveil"
with closed unveil, and only /dev/null and an optional log file have "rwc".
discussed with deraadt a long time ago, agreement by claudio
ok sthen
relayd: allow setting log level from relayd.conf
Add "log level (brief|verbose)" which sets or clears RELAYD_OPT_VERBOSE
just like relayctl log verbose|brief does at runtime.
This makes sense now because the recent DPRINTF removal turned all
DPRINTF calls into real log_debug calls. Some debug logs moved to
warning. Some remained DPRINF().
Before that change the toggle had almost nothing to gate. All debug
output was compiled out unless relayd was built with DEBUG > 1. So
"log verbose" in relayctl was practically a no-op for users.
It was impossible for the user to work out why the setup/config wasn't
working.
Now the toggle actually does what its name suggests. Pinning the
level in the config file lets it survive restarts and SIGHUP reloads.
OK kirill@
smokeping intermittent build fix: add BDEPs on the optional modules used
by probes; build runs smokeping's --makepod option to create manuals for
these, which tries to import modules used by these. if hit at the wrong
time during a bulk build this can fail.
tb@ ran into this while p5-Net-DNS was partway through installation:
pod2man --release=2.9.0 --center=SmokePing Smokeping_probes_AnotherCurl.pod --section 3 > Smokeping_probes_AnotherCurl.3
PERL5LIB=/usr/local/libdata/perl5/site_perl /usr/bin/perl -I../thirdparty/lib/perl5 -I../lib -mSmokeping -e 'Smokeping::main()' -- --makepod Smokeping::probes::AnotherDNS > Smokeping_probes_AnotherDNS.pod
require Smokeping::probes::AnotherDNS failed: Attempt to reload Net/DNS.pm aborted.
Compilation failed in require at ../lib/Smokeping/probes/AnotherDNS.pm line 26.
BEGIN failed--compilation aborted at ../lib/Smokeping/probes/AnotherDNS.pm line 26.
fix old typo/thinko in readme while there (IO::Pty is in the p5-IO-Tty
package).