Disclaimer: this bug has been filed in a semi-automated manner.
When emerging the package net-dns/dnssec-tools-1.14, the following elog messages are displayed:
* Please run 'dtinitconf' in order to set up the required
* /etc/dnssec-tools/dnssec-tools.conf file
* DNSSEC Validator has been split into net-dns/dnsval
Such messages should only be displayed when the package is a new install.
These situations can be checked in the ebuild as follows:
if ! has_version 'net-dns/dnssec-tools'; then
See the tracker bug 440214 for more details.
This doesn't test for previously installed, configured, but removed versions with remaining config files.
? I don't understand your comment, sorry.
@ Michael Weber:
You posted a comment related to this bug in the tracker bug. I reply here so that I don't spam the tracker bug.
> It would make sense to test, if the config file is missing.
> An `! has_version net-dns/dnssec-tools` does not test for the presence or
> absence of an config-file, just if it was presently installed. So you test
> is wrong.
I know that the test does not check for the config file.
My suggestion was to no longer display the warning after the first install, assuming that the config file was already set up.
However, if it's possible to check for the config file itself as you mentioned, that would be a better check IMHO.
+*dnssec-tools-2.1 (06 Nov 2014)
+ 06 Nov 2014; Michael Weber <email@example.com> +dnssec-tools-2.1.ebuild:
+ Fix elog message and switch to readme.gentoo (thanks Paul Tobias, bug 515206)