commit:     73c52170e46f94aa54947291e1c31249b32326f5
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 18 17:25:38 2016 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Apr 18 17:25:53 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73c52170

sys-apps/smartmontools: Keep temporarily empty /var/db/smartmontools directory.

This should fix isntallation with paludis.

Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 sys-apps/smartmontools/smartmontools-6.4-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-apps/smartmontools/smartmontools-6.4-r1.ebuild 
b/sys-apps/smartmontools/smartmontools-6.4-r1.ebuild
index 9b4bce3..b000e3b 100644
--- a/sys-apps/smartmontools/smartmontools-6.4-r1.ebuild
+++ b/sys-apps/smartmontools/smartmontools-6.4-r1.ebuild
@@ -61,6 +61,8 @@ src_configure() {
 }
 
 src_install() {
+       local db_path="/var/db/${PN}"
+
        if use minimal ; then
                dosbin smartctl
                doman smartctl.8
@@ -71,7 +73,8 @@ src_install() {
        fi
 
        # Move drivedb.h file out of PM's sight (bug #575292)
-       mv "${ED}"/var/db/${PN}/drivedb.h "${T}" || die
+       mv "${ED}"${db_path}/drivedb.h "${T}" || die
+       keepdir ${db_path}
 
        exeinto /etc/cron.monthly
        doexe "${FILESDIR}"/${PN}-update-drivedb

Reply via email to