commit: a871da89ee98d16ac19adc7b9839838dc3031ca6
Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
AuthorDate: Sun Apr 11 14:37:46 2021 +0000
Commit: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
CommitDate: Sun Apr 11 14:37:46 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a871da89
sys-cluster/pcs-0.10.8-r2: remove bundled systemd service
Signed-off-by: Andrea Postiglione <andrea.postiglione <AT> gmail.com>
sys-cluster/pcs/pcs-0.10.8-r2.ebuild | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sys-cluster/pcs/pcs-0.10.8-r2.ebuild
b/sys-cluster/pcs/pcs-0.10.8-r2.ebuild
index 1444be359..4582a8e1e 100644
--- a/sys-cluster/pcs/pcs-0.10.8-r2.ebuild
+++ b/sys-cluster/pcs/pcs-0.10.8-r2.ebuild
@@ -100,9 +100,11 @@ src_install() {
if use systemd ; then
systemd_newunit "${S}/pcsd/pcsd.service.debian" "pcsd.service"
systemd_newunit "${S}/pcsd/pcsd-ruby.service"
"pcsd-daemon.service"
- rm "${D}"/usr/lib/systemd/system/pcsd-ruby.service
- rm "${D}"/usr/lib/systemd/system/pcsd.service
fi
+ # Remove Bundled systemd service
+ rm "${D}"/usr/lib/systemd/system/pcsd-ruby.service || die
+ rm "${D}"/usr/lib/systemd/system/pcsd.service || die
+
# custom service file for openRC
newinitd "${FILESDIR}/pcsd.initd" pcsd
newinitd "${FILESDIR}/pcsd-daemon.initd" pcsd-daemon