public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/pcs/
Date: Tue, 23 Mar 2021 00:52:42 +0000 (UTC)	[thread overview]
Message-ID: <1616457961.6913ad9b6e3e9be49199eeb97b30cf78be6f2252.Alessandro-Barbieri@gentoo> (raw)

commit:     6913ad9b6e3e9be49199eeb97b30cf78be6f2252
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Mar 23 00:06:01 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Mar 23 00:06:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6913ad9b

sys-cluster/pcs: remove useless use

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/pcs/pcs-0.10.8-r1.ebuild | 103 +++++++++++++++++++++++++++++++++++
 1 file changed, 103 insertions(+)

diff --git a/sys-cluster/pcs/pcs-0.10.8-r1.ebuild b/sys-cluster/pcs/pcs-0.10.8-r1.ebuild
new file mode 100644
index 00000000..a83f9773
--- /dev/null
+++ b/sys-cluster/pcs/pcs-0.10.8-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+USE_RUBY="ruby25 ruby26"
+inherit distutils-r1 ruby-ng systemd
+
+DESCRIPTION="Pacemaker/Corosync Configuration System"
+HOMEPAGE="https://github.com/ClusterLabs/pcs"
+SRC_URI="https://github.com/ClusterLabs/pcs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="systemd"
+
+DEPEND="
+	dev-libs/libffi
+	media-libs/fontconfig
+	sys-apps/coreutils
+"
+RDEPEND="
+	${DEPEND}
+	dev-libs/openssl
+	dev-python/distro[${PYTHON_USEDEP}]
+	dev-python/dacite[${PYTHON_USEDEP}]
+	dev-python/lxml[${PYTHON_USEDEP}]
+	dev-python/pycurl[${PYTHON_USEDEP}]
+	dev-python/pyopenssl[${PYTHON_USEDEP}]
+	dev-python/pyparsing[${PYTHON_USEDEP}]
+	dev-python/python-dateutil[${PYTHON_USEDEP}]
+	>=sys-cluster/corosync-3.0
+	>=sys-cluster/pacemaker-2.0
+	sys-libs/pam
+	sys-process/psmisc
+	>=www-servers/tornado-6.0[${PYTHON_USEDEP}]
+	<www-servers/tornado-7.0[${PYTHON_USEDEP}]
+"
+
+ruby_add_rdepend "
+	dev-ruby/backports
+	dev-ruby/bundler
+	dev-ruby/ethon
+	dev-ruby/highline
+	dev-ruby/json
+	dev-ruby/multi_json
+	dev-ruby/open4
+	dev-ruby/rack
+	dev-ruby/rack-protection
+	dev-ruby/rack-test
+	dev-ruby/rubygems
+	dev-ruby/sinatra
+	dev-ruby/thor
+	dev-ruby/tilt
+	www-servers/thin
+"
+
+PATCHES=( "${FILESDIR}/remove-ruby-bundle-path.patch" "${FILESDIR}/openrc-${PV}.patch" )
+
+S="${WORKDIR}/all/${P}"
+
+src_compile() {
+	return
+}
+
+src_install() {
+	# pre-create directory that is needed by 'make install'
+	dodir "/usr/lib/pcs"
+	# install files using 'make install'
+	emake install \
+		SYSTEMCTL_OVERRIDE=$(use systemd) \
+		DESTDIR="${D}" \
+		CONF_DIR="/etc/default/" \
+		PREFIX="${EPREFIX}/usr/" \
+		BUNDLE_INSTALL_PYAGENTX=false \
+		BUNDLE_TO_INSTALL=false \
+		BUILD_GEMS=false
+
+	# mark log directories to be kept
+	keepdir /var/log/pcsd
+	keepdir /var/lib/pcsd
+
+	# symlink the /usr/lib/pcs/pcs to /usr/sbin/pcs for pcsd
+	dosym ../../sbin/pcs "${EPREFIX}/usr/lib/pcs/pcs"
+
+	# use Debian style systemd unit (with config in /etc/default/pcsd)
+	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
+
+	# move config files to right places - we use debian-style /etc/default
+	cp -a "${S}/pcs/settings.py.debian" "${D}/usr/lib/pcs/settings.py"
+	cp -a "${S}/pcsd/settings.rb.debian" "${D}/usr/lib/pcsd/settings.rb"
+
+	python_foreach_impl python_optimize
+}


             reply	other threads:[~2021-03-23  0:52 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23  0:52 Alessandro Barbieri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-23 19:07 [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/pcs/ Andrew Ammerlaan
2022-04-23 18:57 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-04-13 12:29 Andrea Postiglione
2022-04-04 14:49 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-04-04 14:34 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-04-03 16:47 Andrea Postiglione
2022-01-21 12:35 Andrea Postiglione
2022-01-21 12:29 Andrea Postiglione
2021-07-11 22:28 Alessandro Barbieri
2021-04-11 14:45 Andrea Postiglione
2021-04-11 14:38 Andrea Postiglione
2021-03-28 11:43 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-03-28 10:52 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-03-27 18:35 Alessandro Barbieri
2021-03-24  9:05 Andrew Ammerlaan
2021-03-23  0:52 Alessandro Barbieri
2021-03-23  0:52 Alessandro Barbieri
2021-03-20 17:38 Andrew Ammerlaan
2021-03-20 12:05 Andrea Postiglione
2020-12-15 11:16 Andrea Postiglione
2020-12-09  1:08 Alessandro Barbieri
2020-12-09  1:08 Alessandro Barbieri
2020-12-08 16:52 Andrea Postiglione
2020-12-08 16:51 Andrea Postiglione
2020-12-08  0:35 Alessandro Barbieri
2020-12-07 16:16 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-12-07 16:16 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-12-06 19:12 Andrew Ammerlaan
2020-12-06 17:35 Andrea Postiglione
2020-12-06  8:52 Andrea Postiglione

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1616457961.6913ad9b6e3e9be49199eeb97b30cf78be6f2252.Alessandro-Barbieri@gentoo \
    --to=lssndrbarbieri@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox