sci-misc/boinc: Add suspend/resume to boinc init script, fix null byte input.
authorSven Eden <yamakuzure@gmx.net>
Sat, 12 Nov 2016 15:23:43 +0000 (16:23 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 12 Nov 2016 15:39:11 +0000 (16:39 +0100)
commit14de3518f17d22f210aa99d1023f13aeaa49c8de
tree875e8436b4980054745eb626503c9a50e2e46fd5
parentcdcd619623d85b22cf53304952ab00cf880626a6
sci-misc/boinc: Add suspend/resume to boinc init script, fix null byte input.

Gentoo-Bug: 493476

Enable users to suspend/resume all projects without having to start
and use the manager GUI.

Gentoo-Bug: 584386 (partly)

After upgrading to the current app-shells/bash-4.4 the stop command
provokes the following warning:

"command substitution: ignored null byte in input"

This happens due to the usage of "cut" with --output-delimiter=''.
Obviously "cut" puts a null byte out if the delimiter was set to
nothing. (Checked with hexdump, it does.)

The fix is to use "tr -d ." to concatenate the version numbers, and
then to compare against an "expr substr".

Package-Manager: portage-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/2768

Signed-off-by: David Seifert <soap@gentoo.org>
sci-misc/boinc/files/boinc.init