DRAFT: community/clamav: fix clamd.conf

Closed John Vogel requested to merge jvvv/aports:clamav_fixconf into master

New release of clamav has changed $srcdir/etc/clamd.conf.sample such that there are now two commented out LocalSocket example lines. This causes the sed in APKBUILD's package function to uncomment both. This causes the clamd.initd start_pre functiion to emit a two line value for the local var socket, in turn, causing the evaluation of socketdir=${socket%/*} to be the whole first line. Now, when clamd.initd's start_pre check_path of $socketdir runs, it creates /run/clamav/clamd.sock as a directory, and now the start function cannot remove it.

This changes the sed to uncomment one of the two example lines in etc/clamd.conf.sample with more specificity. A better sed line may surpass this one, but this fixes the issue until/unless upstream changes the targeted line.

Merge request reports