commit: 13fb9bbf96bb12441d89fefb08979871d17b10af
Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
AuthorDate: Tue Mar 23 20:05:00 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Mar 23 20:05:00 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=13fb9bbf
sys-cluster/pcs-0.10.8-r1: fix systemd service
Signed-off-by: Andrea Postiglione <andrea.postiglione <AT> gmail.com>
sys-cluster/pcs/files/pcsd-daemon.service.patch | 17 +++++++++++++++++
sys-cluster/pcs/pcs-0.10.8-r1.ebuild | 4 +++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/sys-cluster/pcs/files/pcsd-daemon.service.patch
b/sys-cluster/pcs/files/pcsd-daemon.service.patch
new file mode 100644
index 000000000..00b61cf9a
--- /dev/null
+++ b/sys-cluster/pcs/files/pcsd-daemon.service.patch
@@ -0,0 +1,17 @@
+--- pcs-0.10.8/pcsd/pcsd-ruby.service 2021-02-01 10:22:26.000000000 +0100
++++ pcs-0.10.8/pcsd/pcsd-ruby.service.new 2021-03-23 20:13:24.380792446
+0100
+@@ -6,12 +6,11 @@
+ After=network-online.target
+ # Stop the service automatically if nothing that depends on it is running
+ StopWhenUnneeded=true
+-# When stopping or restarting pcsd, stop or restart pcsd-ruby as well
++# When stopping or restarting pcsd, stop or restart pcsd-daemon as well
+ PartOf=pcsd.service
+
+ [Service]
+-EnvironmentFile=/etc/sysconfig/pcsd
+-Environment=GEM_HOME=/usr/lib/pcsd/vendor/bundle/ruby
++EnvironmentFile=/etc/default/pcsd
+ # This file holds the selinux context
+ ExecStart=/usr/lib/pcsd/pcsd
+ Type=notify
diff --git a/sys-cluster/pcs/pcs-0.10.8-r1.ebuild
b/sys-cluster/pcs/pcs-0.10.8-r1.ebuild
index a6acdb475..1af214e5f 100644
--- a/sys-cluster/pcs/pcs-0.10.8-r1.ebuild
+++ b/sys-cluster/pcs/pcs-0.10.8-r1.ebuild
@@ -61,7 +61,9 @@ ruby_add_rdepend "
www-servers/thin
"
-PATCHES=( "${FILESDIR}/remove-ruby-bundle-path.patch"
"${FILESDIR}/openrc-${PV}.patch" )
+PATCHES=( "${FILESDIR}/remove-ruby-bundle-path.patch"
+ "${FILESDIR}/openrc-${PV}.patch"
+ "${FILESDIR}/pcsd-daemon.service.patch" )
S="${WORKDIR}/all/${P}"