app-backup/backup-manager: fix runtime paths
authorBernard Cafarelli <voyageur@gentoo.org>
Tue, 8 Nov 2016 09:43:20 +0000 (10:43 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Tue, 8 Nov 2016 09:44:40 +0000 (10:44 +0100)
Also install configuration file by default
(etc-update and friends will handle the configuration changes)

Package-Manager: portage-2.3.2

app-backup/backup-manager/backup-manager-0.7.12-r1.ebuild [moved from app-backup/backup-manager/backup-manager-0.7.12.ebuild with 61% similarity]

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 e983423f28c025ee2069dcdb98ba62d45faac082..0b5cdd44284efdf11b63464f98abfa0bdca308d8 100644 (file)
@@ -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
 }