From: Sergiy Borodych Date: Mon, 22 Aug 2016 13:32:52 +0000 (+0300) Subject: app-backup/rsnapshot: strip rsnapshot.conf.default of a hardcoded path. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76a525aa9005168e49605041c204e73069f651f5;p=gentoo.git app-backup/rsnapshot: strip rsnapshot.conf.default of a hardcoded path. remove '/etc/' since we don't place it here. Gentoo-Bug: https://bugs.gentoo.org/461554 Closes: https://github.com/gentoo/gentoo/pull/2120 Signed-off-by: Patrice Clement --- diff --git a/app-backup/rsnapshot/rsnapshot-1.4.2.ebuild b/app-backup/rsnapshot/rsnapshot-1.4.2.ebuild index 1836d88f802b..cb4054f230e4 100644 --- a/app-backup/rsnapshot/rsnapshot-1.4.2.ebuild +++ b/app-backup/rsnapshot/rsnapshot-1.4.2.ebuild @@ -20,6 +20,12 @@ RDEPEND=">=dev-lang/perl-5.8.2 >=net-misc/rsync-2.6.0" DEPEND="${RDEPEND}" +src_prepare() { + default + # remove '/etc/' since we don't place it here, bug #461554 + sed -i -e 's:/etc/rsnapshot.conf.default:rsnapshot.conf.default:' rsnapshot-program.pl || die +} + src_install() { docompress -x "/usr/share/doc/${PF}/rsnapshot.conf.default"