diff options
author | Vladimir Timofeenko <id@vtimofeenko.com> | 2021-10-22 10:49:18 -0700 |
---|---|---|
committer | Vladimir Timofeenko <id@vtimofeenko.com> | 2021-10-22 10:49:18 -0700 |
commit | 303ff4aee96a63094f606ef9a7a9e25a925e3286 (patch) | |
tree | 13801f12ac7cb954dd853e9757b9c6385a7b4d19 /x11-misc | |
parent | app-misc/doublecmd-bin: 1.0.0 version bump (diff) | |
download | guru-303ff4aee96a63094f606ef9a7a9e25a925e3286.tar.gz guru-303ff4aee96a63094f606ef9a7a9e25a925e3286.tar.bz2 guru-303ff4aee96a63094f606ef9a7a9e25a925e3286.zip |
x11-misc/betterlockscreen: added patch to fix path in systemd unit
In the systemd unit upstream the betterlockscreen binary path is
hardcoded to /usr/local .
This commit adds a patch that corrects that path to the one where
betterlocksreen is installed by the ebuild.
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Vladimir Timofeenko <id@vtimofeenko.com>
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/betterlockscreen/betterlockscreen-3.2.0-r1.ebuild (renamed from x11-misc/betterlockscreen/betterlockscreen-3.2.0.ebuild) | 2 | ||||
-rw-r--r-- | x11-misc/betterlockscreen/betterlockscreen-4.0.3-r1.ebuild (renamed from x11-misc/betterlockscreen/betterlockscreen-4.0.3.ebuild) | 2 | ||||
-rw-r--r-- | x11-misc/betterlockscreen/betterlockscreen-9999.ebuild | 2 | ||||
-rw-r--r-- | x11-misc/betterlockscreen/files/00-fix-betterlockscreen-path-in-unit.patch | 15 |
4 files changed, 21 insertions, 0 deletions
diff --git a/x11-misc/betterlockscreen/betterlockscreen-3.2.0.ebuild b/x11-misc/betterlockscreen/betterlockscreen-3.2.0-r1.ebuild index be4fa44dd..dc589ee40 100644 --- a/x11-misc/betterlockscreen/betterlockscreen-3.2.0.ebuild +++ b/x11-misc/betterlockscreen/betterlockscreen-3.2.0-r1.ebuild @@ -29,6 +29,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/00-fix-betterlockscreen-path-in-unit.patch" ) + src_install() { dobin betterlockscreen diff --git a/x11-misc/betterlockscreen/betterlockscreen-4.0.3.ebuild b/x11-misc/betterlockscreen/betterlockscreen-4.0.3-r1.ebuild index 598ba67c5..1ff676a21 100644 --- a/x11-misc/betterlockscreen/betterlockscreen-4.0.3.ebuild +++ b/x11-misc/betterlockscreen/betterlockscreen-4.0.3-r1.ebuild @@ -31,6 +31,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/00-fix-betterlockscreen-path-in-unit.patch" ) + src_install() { dobin betterlockscreen diff --git a/x11-misc/betterlockscreen/betterlockscreen-9999.ebuild b/x11-misc/betterlockscreen/betterlockscreen-9999.ebuild index 3bbf13b7c..f0c466cc4 100644 --- a/x11-misc/betterlockscreen/betterlockscreen-9999.ebuild +++ b/x11-misc/betterlockscreen/betterlockscreen-9999.ebuild @@ -29,6 +29,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/00-fix-betterlockscreen-path-in-unit.patch" ) + src_install() { dobin betterlockscreen diff --git a/x11-misc/betterlockscreen/files/00-fix-betterlockscreen-path-in-unit.patch b/x11-misc/betterlockscreen/files/00-fix-betterlockscreen-path-in-unit.patch new file mode 100644 index 000000000..d98bfd3a7 --- /dev/null +++ b/x11-misc/betterlockscreen/files/00-fix-betterlockscreen-path-in-unit.patch @@ -0,0 +1,15 @@ +Original systemd service uses binary in /usr/local/bin which goes +against Gentoo FS policy +diff --git a/system/betterlockscreen@.service b/system/betterlockscreen@.service +index b9ad6fb..d0674ab 100644 +--- a/system/betterlockscreen@.service ++++ b/system/betterlockscreen@.service +@@ -7,7 +7,7 @@ Before=suspend.target + User=%I + Type=simple + Environment=DISPLAY=:0 +-ExecStart=/usr/local/bin/betterlockscreen --lock ++ExecStart=/usr/bin/betterlockscreen --lock + TimeoutSec=infinity + ExecStartPost=/usr/bin/sleep 1 + |