commit: 047edc4a90453a663c71cc93221021e300152efc
Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
AuthorDate: Tue Dec 8 16:51:44 2020 +0000
Commit: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
CommitDate: Tue Dec 8 16:51:44 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=047edc4a
sys-cluster/pcs: fix use systemd useflag
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andrea Postiglione <andrea.postiglione <AT> gmail.com>
sys-cluster/pcs/pcs-0.10.7.ebuild | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sys-cluster/pcs/pcs-0.10.7.ebuild
b/sys-cluster/pcs/pcs-0.10.7.ebuild
index 2811b60e..6e2acc6b 100644
--- a/sys-cluster/pcs/pcs-0.10.7.ebuild
+++ b/sys-cluster/pcs/pcs-0.10.7.ebuild
@@ -87,8 +87,10 @@ src_install() {
dosym ../../sbin/pcs "${EPREFIX}/usr/lib/pcs/pcs"
# use Debian style systemd unit (with config in /etc/default/pcsd)
- systemd_newunit "${S}/pcsd/pcsd.service.debian" "pcsd.service"
- systemd_newunit "${S}/pcsd/pcsd-ruby.service" "pcsd-daemon.service"
+ if use systemd ; then
+ systemd_newunit "${S}/pcsd/pcsd.service.debian" "pcsd.service"
+ systemd_newunit "${S}/pcsd/pcsd-ruby.service"
"pcsd-daemon.service"
+ fi
# custom service file for openRC
newinitd "${FILESDIR}/pcsd.initd" pcsd || die
newinitd "${FILESDIR}/pcsd-daemon.initd" pcsd-daemon || die