Skip to content

Commit

Permalink
app-backup/backup-manager: fix runtime paths
Browse files Browse the repository at this point in the history
Also install configuration file by default
(etc-update and friends will handle the configuration changes)

Package-Manager: portage-2.3.2
  • Loading branch information
voyageur committed Nov 8, 2016
1 parent 90ce564 commit 903b19b
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}

0 comments on commit 903b19b

Please sign in to comment.