public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marc Schiffbauer" <mschiff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/sanlock/
Date: Fri, 02 May 2025 21:19:48 +0000 (UTC)	[thread overview]
Message-ID: <1746220747.eb4b443fd0c60f029809312d5f991d5a0b7de18c.mschiff@gentoo> (raw)

commit:     eb4b443fd0c60f029809312d5f991d5a0b7de18c
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Fri May  2 21:19:07 2025 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Fri May  2 21:19:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb4b443f

sys-cluster/sanlock: add 4.0.0

Closes: https://bugs.gentoo.org/954350
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 sys-cluster/sanlock/Manifest             |  1 +
 sys-cluster/sanlock/sanlock-4.0.0.ebuild | 85 ++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/sys-cluster/sanlock/Manifest b/sys-cluster/sanlock/Manifest
index 72c6c8f0c631..c7a61d2f2e55 100644
--- a/sys-cluster/sanlock/Manifest
+++ b/sys-cluster/sanlock/Manifest
@@ -1 +1,2 @@
 DIST sanlock-3.8.5.tar.gz 270911 BLAKE2B 7f8146d67c620d22ded5205c1c621f3bbb36256a4c80e866575d8f324ad0237cf8bc07579f3aeda393dd0db85e27fdaa1aab1b6d7b931d4416d13f82d560e22a SHA512 8131e0b37ac47052a29d4b3a3e4286b06b862f08e827d3307f179eadbe97e4bc3e10f5c93f35042c308435ee81546a813227bce665a9735cbbf2b5a4a1f4474a
+DIST sanlock-4.0.0.tar.gz 288907 BLAKE2B e49037ff6976ae1912ceb1e345a65bf4e3689428309085d1e3c93cd6bad9ca816cabfb7c525cab2851870c4e8a96dd927934d1b0722cb5900d3cd0950e50075b SHA512 a478c8bbc09043d5dad18cc3ddbcaeefec0dd5587ab2807721424a1efc9d58ab82deacaa2f88289dc9990a2a6f95a80dabb727670e7aeaeba5ed0a57a3849c27

diff --git a/sys-cluster/sanlock/sanlock-4.0.0.ebuild b/sys-cluster/sanlock/sanlock-4.0.0.ebuild
new file mode 100644
index 000000000000..8bbee1672e3b
--- /dev/null
+++ b/sys-cluster/sanlock/sanlock-4.0.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+inherit flag-o-matic linux-info distutils-r1 systemd
+
+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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="python"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="
+	dev-libs/libaio
+	sys-apps/util-linux
+	python? ( ${PYTHON_DEPS} )
+"
+RDEPEND="
+	acct-user/${PN}
+	acct-group/${PN}
+	${DEPEND}
+"
+
+PATCHES=(
+	"${FILESDIR}/sanlock-3.8.4-implicit-func-decls.patch"
+)
+
+CONFIG_CHECK="~SOFT_WATCHDOG"
+
+src_compile() {
+	# -Werror=lto-type-mismatch
+	# https://bugs.gentoo.org/863734
+	# https://pagure.io/sanlock/issue/10
+	filter-lto
+
+	for d in wdmd src reset; do
+		emake -C ${d}
+	done
+
+	if use python; then
+		pushd python
+		distutils-r1_src_compile
+		popd
+	fi
+}
+
+src_install() {
+	for d in wdmd src reset; do
+		emake -C ${d} DESTDIR="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+	done
+
+	if use python; then
+		distutils-r1_src_install
+	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
+
+	# systemd
+	local utildir="$(systemd_get_utildir)"
+	exeinto "${utildir#"${EPREFIX}"}"
+	doexe init.d/systemd-wdmd
+	systemd_newunit init.d/sanlock.service.native sanlock.service
+	systemd_dounit init.d/wdmd.service
+	systemd_dounit init.d/sanlk-resetd.service
+}


             reply	other threads:[~2025-05-02 21:19 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-02 21:19 Marc Schiffbauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-01 22:12 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/sanlock/ Sam James
2025-05-01 22:09 Sam James
2025-05-01 17:58 Sam James
2025-05-01 17:58 Sam James
2025-05-01 17:58 Sam James
2025-05-01 17:34 Sam James
2025-05-01 11:36 Michał Górny
2025-03-28 13:37 Marc Schiffbauer
2024-07-31  9:24 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-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=1746220747.eb4b443fd0c60f029809312d5f991d5a0b7de18c.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