From dad82284b99709594e39d8f912df2755be0225cb Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Sat, 30 Apr 2022 21:58:41 -0700 Subject: sys-apps/etckeeper: fix unit installation on prefix Closes: https://bugs.gentoo.org/841677 Signed-off-by: Georgy Yakovlev --- sys-apps/etckeeper/etckeeper-1.18.16-r1.ebuild | 4 +++- sys-apps/etckeeper/etckeeper-1.18.17.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys-apps/etckeeper') diff --git a/sys-apps/etckeeper/etckeeper-1.18.16-r1.ebuild b/sys-apps/etckeeper/etckeeper-1.18.16-r1.ebuild index e42c1c08f094..aa3976831bbd 100644 --- a/sys-apps/etckeeper/etckeeper-1.18.16-r1.ebuild +++ b/sys-apps/etckeeper/etckeeper-1.18.16-r1.ebuild @@ -35,9 +35,11 @@ PATCHES=( "${FILESDIR}"/${PN}-1.18.14-gentoo.patch ) src_prepare() { default hprefixify *.d/* etckeeper + local systemdunitdir="$(systemd_get_systemunitdir)" + systemdunitdir="${systemdunitdir#${EPREFIX%/}}" sed -i \ -e s'@zsh/vendor-completions@zsh/site-functions@' \ - -e s"@/lib/systemd/system@"$(systemd_get_systemunitdir)"@" \ + -e s"@/lib/systemd/system@"${systemdunitdir}"@" \ Makefile || die rm -v init.d/60darcs-deleted-symlinks || die } diff --git a/sys-apps/etckeeper/etckeeper-1.18.17.ebuild b/sys-apps/etckeeper/etckeeper-1.18.17.ebuild index 6c678d1e6e34..37c14d9f11db 100644 --- a/sys-apps/etckeeper/etckeeper-1.18.17.ebuild +++ b/sys-apps/etckeeper/etckeeper-1.18.17.ebuild @@ -40,9 +40,11 @@ PATCHES=( src_prepare() { default hprefixify *.d/* etckeeper + local systemdunitdir="$(systemd_get_systemunitdir)" + systemdunitdir="${systemdunitdir#${EPREFIX%/}}" sed -i \ -e s'@zsh/vendor-completions@zsh/site-functions@' \ - -e s"@/lib/systemd/system@"$(systemd_get_systemunitdir)"@" \ + -e s"@/lib/systemd/system@"${systemdunitdir}"@" \ Makefile || die rm -v init.d/60darcs-deleted-symlinks || die } -- cgit v1.2.3-65-gdbad