From 643873a7078f0223537e940a0cd1e1f3d63c117f Mon Sep 17 00:00:00 2001 From: Luigi 'Comio' Mantellini Date: Mon, 5 Mar 2018 12:03:21 +0100 Subject: 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(-) (limited to 'app-backup') diff --git a/app-backup/snapper/snapper-0.5.4.ebuild b/app-backup/snapper/snapper-0.5.4.ebuild index dfc07db31057..08667a65c08b 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" -- cgit v1.2.3-65-gdbad