commit: 643873a7078f0223537e940a0cd1e1f3d63c117f Author: Luigi 'Comio' Mantellini <luigi.mantellini <AT> gmail <DOT> com> AuthorDate: Mon Mar 5 11:03:21 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Tue Mar 13 22:36:00 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=643873a7
app-backup/snapper: Fix systemd systemunitdir Closes: https://bugs.gentoo.org/649630 Closes: https://github.com/gentoo/gentoo/pull/7363 app-backup/snapper/snapper-0.5.4.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app-backup/snapper/snapper-0.5.4.ebuild b/app-backup/snapper/snapper-0.5.4.ebuild index dfc07db3105..08667a65c08 100644 --- a/app-backup/snapper/snapper-0.5.4.ebuild +++ b/app-backup/snapper/snapper-0.5.4.ebuild @@ -1,8 +1,10 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 +inherit systemd + DESCRIPTION="Command-line program for btrfs and ext4 snapshot management" HOMEPAGE="http://snapper.io/" SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2" @@ -36,6 +38,14 @@ PATCHES=( "${FILESDIR}"/cron-confd.patch ) +src_prepare() { + default + + sed -e "s,/usr/lib/systemd/system,$(systemd_get_systemunitdir),g" \ + -i data/Makefile.* \ + || die "Failed to fix systemd services and timers installation path" +} + src_configure() { local myeconfargs=( --with-conf="/etc/conf.d"
