diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2016-11-08 10:43:20 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2016-11-08 10:44:40 +0100 |
commit | 903b19b95a12ab3dffca7b757e82e30388a7712d (patch) | |
tree | b9c6b1a5a7d8a696a5123ea67cab21d4220c3707 /app-backup/backup-manager | |
parent | media-plugins/kipi-plugins: Remove 5.2.0 (diff) | |
download | gentoo-903b19b95a12ab3dffca7b757e82e30388a7712d.tar.gz gentoo-903b19b95a12ab3dffca7b757e82e30388a7712d.tar.bz2 gentoo-903b19b95a12ab3dffca7b757e82e30388a7712d.zip |
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
Diffstat (limited to 'app-backup/backup-manager')
-rw-r--r-- | app-backup/backup-manager/backup-manager-0.7.12-r1.ebuild (renamed from app-backup/backup-manager/backup-manager-0.7.12.ebuild) | 17 |
1 files 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 index e983423f28c0..0b5cdd44284e 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 } |