commit: 903b19b95a12ab3dffca7b757e82e30388a7712d Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Tue Nov 8 09:43:20 2016 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Tue Nov 8 09:44:40 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=903b19b9
app-backup/backup-manager: fix runtime paths Also install configuration file by default (etc-update and friends will handle the configuration changes) Package-Manager: portage-2.3.2 ...er-0.7.12.ebuild => backup-manager-0.7.12-r1.ebuild} | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/app-backup/backup-manager/backup-manager-0.7.12.ebuild b/app-backup/backup-manager/backup-manager-0.7.12-r1.ebuild similarity index 61% rename from app-backup/backup-manager/backup-manager-0.7.12.ebuild rename to app-backup/backup-manager/backup-manager-0.7.12-r1.ebuild index e983423..0b5cdd4 100644 --- a/app-backup/backup-manager/backup-manager-0.7.12.ebuild +++ b/app-backup/backup-manager/backup-manager-0.7.12-r1.ebuild @@ -26,8 +26,9 @@ RDEPEND="${DEPEND} S=${WORKDIR}/${MY_P} src_prepare() { - sed -i "/^PERL5DIR/s/sitelib/vendorlib/" Makefile \ - || die "Makefile sed failed" + sed -e "/^PERL5DIR/s/sitelib/vendorlib/" \ + -e "/sed/s:=\$(DESTDIR)/:=:" \ + -i Makefile || die default } @@ -39,14 +40,8 @@ src_compile() { src_install() { emake DESTDIR="${D}" PREFIX=/usr install -} - -pkg_postinst() { - elog "After installing," - elog "copy ${ROOT%/}/usr/share/backup-manager/backup-manager.conf.tpl to" - elog "/etc/backup-manager.conf and customize it for your environment." - elog "You could also set-up your cron for daily or weekly backup." - ewarn "New configuration keys may have been defined." - ewarn "Please check the docs for info" + dodir /etc + cp -a "${D}"/usr/share/backup-manager/backup-manager.conf.tpl "${D}"/etc/backup-manager.conf || die + chmod 0600 "${D}"/etc/backup-manager.conf || die }