net-analyzer/nagios-core: add keepdirs to fix QA warnings.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 31 Aug 2019 20:39:16 +0000 (16:39 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 31 Aug 2019 21:34:55 +0000 (17:34 -0400)
You will never convince me that warning about the correct behavior and
forcing developers to manually affirm that it's correct is wise.

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
net-analyzer/nagios-core/nagios-core-4.4.5-r3.ebuild [moved from net-analyzer/nagios-core/nagios-core-4.4.5-r2.ebuild with 95% similarity]

similarity index 95%
rename from net-analyzer/nagios-core/nagios-core-4.4.5-r2.ebuild
rename to net-analyzer/nagios-core/nagios-core-4.4.5-r3.ebuild
index 2fab4595e6565549ce21c3ed599036e53ca62d65..b6994129cefe17bf77dcdde4fc469f80c5388820 100644 (file)
@@ -141,6 +141,12 @@ src_install() {
        # No INSTALL_OPTS used in install-commandmode, thankfully.
        emake DESTDIR="${D}" install-commandmode
 
+       # The build system installs these directories, but portage assumes
+       # that the build system doesn't know what it's doing so we have to
+       # keepdir them, too. I guess you'll have to manually re-check the
+       # upstream build system forever to see if this is still necessary.
+       keepdir /var/lib/nagios{,/archives,/rw,/spool,/spool/checkresults}
+
        if use web; then
                # There is no way to install the CGIs unstripped from the
                # top-level makefile, so descend into cgi/ here. The empty