Skip to content

Commit

Permalink
app-backup/snapper: Fix systemd systemunitdir
Browse files Browse the repository at this point in the history
  • Loading branch information
comio authored and a17r committed Mar 13, 2018
1 parent 5a1da82 commit 643873a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app-backup/snapper/snapper-0.5.4.ebuild
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 643873a

Please sign in to comment.