From: "Marc Schiffbauer" <mschiff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/sanlock/
Date: Mon, 8 Jul 2019 13:08:43 +0000 (UTC) [thread overview]
Message-ID: <1562591314.b5d6580c6ea581ad586cea1a90106217eb722153.mschiff@gentoo> (raw)
commit: b5d6580c6ea581ad586cea1a90106217eb722153
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 8 13:07:23 2019 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Mon Jul 8 13:08:34 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5d6580c
sys-cluster/sanlock: add new v3.8.0
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
sys-cluster/sanlock/Manifest | 1 +
sys-cluster/sanlock/sanlock-3.8.0.ebuild | 85 ++++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
diff --git a/sys-cluster/sanlock/Manifest b/sys-cluster/sanlock/Manifest
index 16d895e0bdd..8ecd390819a 100644
--- a/sys-cluster/sanlock/Manifest
+++ b/sys-cluster/sanlock/Manifest
@@ -1,2 +1,3 @@
DIST sanlock-3.4.0.tar.xz 157016 BLAKE2B 9d588214d260b88cfa3978e831bcd8086ae80aafc1a04b616274da141140a22c2765083632f29402cdae67cdbbdfcefdaff1539e5d45485c6f271e3ee7f6471a SHA512 8a10faaa5b9ce9f0506ca16620ad482804c9ca860b84a60a6f0b525a256059229a202163d366a57fb59169c0f4f822ced570b42562e412747f6f716509341f19
DIST sanlock-3.6.0.tar.gz 221666 BLAKE2B 7fe95bd6813c13b76993b343a5ad605c7ba642583987ffa5fef583f34c053ee62b0f9e5979f5b5cb9e4fcde53268ae3debc5ec36b04f6651cc4cb902dff52df9 SHA512 59eb2a6f12e95d54886fdf6d56fd9a6814dd20fe11f39664f2bb82a56326fee48c9465ae30e6d04f970c8f1b0d9c2e22b90d21ab1f657c6d6b61ff9f02332443
+DIST sanlock-3.8.0.tar.gz 262077 BLAKE2B c5638dc405cb22098f551d2c267fb13ef8b59422d5d5fb64ade5273d27d6ef772178c1283860a180d3da053da46387e3687c69369c5447d90d7b04a61da80b92 SHA512 ec4e40066c8f5f25287265247509bcb9d8ae24e5bafdd563cb090e94df3fa65881c4814edeb81c50188e71990774d29e330b1dda864c22052fc936a9e2a0892a
diff --git a/sys-cluster/sanlock/sanlock-3.8.0.ebuild b/sys-cluster/sanlock/sanlock-3.8.0.ebuild
new file mode 100644
index 00000000000..4cf116d5a0b
--- /dev/null
+++ b/sys-cluster/sanlock/sanlock-3.8.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6} )
+inherit linux-info python-r1 systemd user
+
+DESCRIPTION="shared storage lock manager"
+HOMEPAGE="https://pagure.io/sanlock"
+SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2+ GPL-2 GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="python"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="
+ dev-libs/libaio
+ sys-apps/util-linux
+ python? ( ${PYTHON_DEPS} )
+"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ local warning="You need to have CONFIG_SOFT_WATCHDOG enabled in your kernel for wdmd"
+ if linux_config_exists; then
+ if ! linux_chkconfig_present SOFT_WATCHDOG; then
+ ewarn ""
+ ewarn "$warning"
+ ewarn ""
+ fi
+ else
+ ewarn ""
+ ewarn "Could not be checked automatically: $warning"
+ ewarn ""
+ fi
+}
+
+pkg_preinst() {
+ enewgroup sanlock
+ enewuser sanlock -1 -1 -1 sanlock,disk
+
+}
+
+src_compile() {
+ for d in wdmd src fence_sanlock reset; do
+ cd $d; emake; cd ..
+ done
+ if use python; then
+ cd python; python_foreach_impl emake; cd ..
+ fi
+}
+
+src_install() {
+ for d in wdmd src fence_sanlock reset; do
+ cd $d; emake DESTDIR="${D}" LIBDIR="${EROOT}usr/$(get_libdir)" install; cd ..
+ done
+ if use python; then
+ cd python; python_foreach_impl emake DESTDIR="${D}" install; cd ..
+ fi
+
+ # config
+ dodir /etc/wdmd.d
+ dodir /etc/sanlock
+ insinto /etc/sanlock
+ doins src/sanlock.conf
+
+ # init
+ newconfd init.d/sanlock.sysconfig sanlock
+ newconfd init.d/wdmd.sysconfig wdmd
+ newinitd "${FILESDIR}"/sanlock.initd sanlock
+ newinitd "${FILESDIR}"/wdmd.initd wdmd
+ #doinitd ${FILESDIR}/sanlk-resetd.initd
+ #doinitd ${FILESDIR}/fence_sanlockd.initd
+
+ # systemd
+ systemd_newunit init.d/sanlock.service.native sanlock.service
+ sed -i 's,^ExecStartPre=,#ExecStartPre=,' init.d/wdmd.service.native
+ systemd_newunit init.d/wdmd.service.native wdmd.service
+ systemd_dounit init.d/sanlk-resetd.service
+ #systemd_dounit ${FILESDIR}/fence_sanlockd.service
+}
next reply other threads:[~2019-07-08 13:08 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-08 13:08 Marc Schiffbauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-31 9:24 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/sanlock/ Pacho Ramos
2024-03-29 18:47 Sam James
2024-03-29 18:47 Sam James
2023-05-29 20:39 Sam James
2023-05-28 19:17 Arthur Zamarin
2023-05-27 10:47 Sam James
2023-05-26 20:06 Arthur Zamarin
2023-05-26 20:06 Arthur Zamarin
2023-05-26 15:16 Sam James
2023-05-26 15:16 Sam James
2023-05-03 11:11 Marc Schiffbauer
2022-09-17 17:34 Andreas Sturmlechner
2022-08-11 10:55 Sam James
2022-06-20 17:46 Arthur Zamarin
2022-06-18 16:57 Agostino Sarubbo
2022-06-18 16:56 Agostino Sarubbo
2022-06-18 16:56 Agostino Sarubbo
2022-06-18 16:55 Agostino Sarubbo
2022-06-18 16:54 Agostino Sarubbo
2022-06-18 16:54 Agostino Sarubbo
2022-05-14 6:21 WANG Xuerui
2022-01-15 23:31 James Le Cuirot
2021-10-19 5:42 Arthur Zamarin
2021-06-11 0:29 Sam James
2021-01-01 2:03 Michał Górny
2020-12-21 9:36 Sergei Trofimovich
2020-12-16 11:12 Sam James
2020-12-05 11:43 Sergei Trofimovich
2020-12-04 18:37 Sergei Trofimovich
2020-12-03 4:26 Sam James
2020-12-03 4:26 Sam James
2020-12-02 23:31 Thomas Deutschmann
2020-08-21 18:06 Marc Schiffbauer
2020-04-08 20:40 Göktürk Yüksek
2020-02-10 21:25 Michał Górny
2019-07-28 10:55 Mikle Kolyada
2019-07-08 13:08 Marc Schiffbauer
2019-06-11 22:15 Sergei Trofimovich
2019-06-06 6:54 Agostino Sarubbo
2019-06-05 18:14 Sergei Trofimovich
2019-05-02 21:12 Mikle Kolyada
2019-04-28 20:39 Mikle Kolyada
2019-04-17 11:57 Mikle Kolyada
2019-04-16 3:41 Aaron Bauman
2019-04-02 9:11 Mikle Kolyada
2019-04-01 17:21 Thomas Deutschmann
2019-02-12 12:42 Mikle Kolyada
2019-02-12 12:42 Mikle Kolyada
2019-02-12 12:42 Mikle Kolyada
2019-02-12 12:42 Mikle Kolyada
2018-10-26 20:48 Marc Schiffbauer
2018-06-26 20:51 Pacho Ramos
2018-06-06 5:59 Jeroen Roovers
2018-03-26 3:55 Matt Turner
2018-03-17 19:44 Matt Turner
2018-01-02 19:54 Sergei Trofimovich
2017-12-05 8:22 Marc Schiffbauer
2017-07-12 8:13 Sergei Trofimovich
2017-04-20 18:25 Marc Schiffbauer
2017-04-19 11:39 Michael Weber
2017-01-03 15:50 Marc Schiffbauer
2017-01-03 0:42 Marc Schiffbauer
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=1562591314.b5d6580c6ea581ad586cea1a90106217eb722153.mschiff@gentoo \
--to=mschiff@gentoo.org \
--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