node: allow ipv6 localhost in sample conf

The default munin-node configuration doesn't allow localhost IPv6 connections.

Thx Michael Renner for reporting it, and Daniel Black for providing a
ready-to-use patch.

Closes: D#676798
cherry-picked 75011289708c864747ae8671bdc00a5b3a62cb62 instead, to comply with current wheezy release policy
master: fix too many warnings in munin-graph.log

When graph_strategy was missing, a warning was emitted since the value is
undef.

Closes: #1251
cherry-picked 789c59e3a27f5d38cabd02c8f57fec605e6146a8 instead, to comply with current wheezy release policy
plugins: do not use the "read w/o variable" bashism.
cherry-picked 099cc00f5494e6eaabd12c0b8801b56fbdf0cdf6 instead, to comply with current wheezy release policy
master: connect to AAAA and A address

According to Michael Renner in D#678662 :

The lack of the "MulitHomed" parameter causes IO::Socket::INET6 to give
preferential treatment to AAAA-addresses and fail if they don't yield a socket.
When enabling MultiHomed IO::Socket::INET6 will try all returned addresses.

See http://search.cpan.org/~shlomif/IO-Socket-INET6-2.69/lib/IO/Socket/INET6.pm#CONSTRUCTOR for detailed information.

Thx to Kelsey Cummings for reporting it on the ml.

Closes: D#678662
cherry-picked a18229c522e1df5468a7dcb3a2f4c96aca56a761 instead, to comply with current wheezy release policy
Fix wrong assumption about Net::SSLeay::CTX_set_options return value (Closes: #675377)

The examples I can see in the Net::SSLeay perldoc indicate that this function
returns true on success:

    Net::SSLeay::CTX_set_options($ctx, &Net::SSLeay::OP_ALL)
         or die_if_ssl_error("ssl ctx set options");

... while the Munin code assumed the opposite.
cherry-picked 380550392ba37eaa32203342c082d4013dfcba21 instead, to comply with current wheezy release policy
http_loadtime: fixed stderr redirection with 'time'
cherry-picked 9a1cbce209d268d3fc0c8e56ee953b310a204ded instead, to comply with current wheezy release policy
plugins: fix apt_all plugin statedir for cron

The apt_all plugin has its state updated in cron. There the ENV var
MUNIN_PLUGSTATE doesn't exist, so we need to set a default.

Closes: D#687495
cherry-picked d53b34d1bdfafece48e50f2d690b2e1130b6f1dd instead, to comply with current wheezy release policy
revert dh --with quilt, document this and all the cherry-picking that was done instead
Drop 100-DejaVu-Fonts-Path.patch since it only affects a codepath used with rrdtool 1.2.
plugins: auto detect SATA in hddtemp_smartctl

It needs smartmontools 5.38 or higher, so it might not be
compatible with older systems like RHEL4.

Closes: D#497400
Drop 237-hddtemp_smartctl-sata-detect.patch and cherry-pick the identical commit 29e4ca9 from 2.0.7 instead: this was the bugfix for #497400, included in both lenny and squeeze releases (so it fixes a regression, and so today introducing #497400 would be an important bug.)
Revert "Fix wrong assumption about Net::SSLeay::CTX_set_options return value (Closes: #675377)"

This reverts commit c20e94b11fe02527c2718c4721c01893144bc847.
common: fix TLS options settings.

The returned value by CTX_set_options is not an error, but the current
set of options; use the correct error checking functions to fix it.

This solves Debian bug #675377 and makes the TLS test pass correctly.

Closes: D#675377