From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F0F8B15ACFC for ; Wed, 3 May 2023 11:11:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F95AE107C; Wed, 3 May 2023 11:11:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 13521E107C for ; Wed, 3 May 2023 11:11:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49591341844 for ; Wed, 3 May 2023 11:11:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D96F48AC for ; Wed, 3 May 2023 11:11:36 +0000 (UTC) From: "Marc Schiffbauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marc Schiffbauer" Message-ID: <1683112291.d3f24327aa5a70fc561f350e9499fa259c23511c.mschiff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/sanlock/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/sanlock/Manifest sys-cluster/sanlock/sanlock-3.8.5.ebuild X-VCS-Directories: sys-cluster/sanlock/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: d3f24327aa5a70fc561f350e9499fa259c23511c X-VCS-Branch: master Date: Wed, 3 May 2023 11:11:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 051141d0-69f8-4bde-927d-3b0251cb5ba0 X-Archives-Hash: 4fb451a061d2da2fda31d039dbafc06c commit: d3f24327aa5a70fc561f350e9499fa259c23511c Author: Marc Schiffbauer gentoo org> AuthorDate: Wed May 3 11:09:16 2023 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Wed May 3 11:11:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3f24327 sys-cluster/sanlock: add 3.8.5 Signed-off-by: Marc Schiffbauer gentoo.org> sys-cluster/sanlock/Manifest | 1 + sys-cluster/sanlock/sanlock-3.8.5.ebuild | 76 ++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/sys-cluster/sanlock/Manifest b/sys-cluster/sanlock/Manifest index 27b197157c2d..8c20e2802fb6 100644 --- a/sys-cluster/sanlock/Manifest +++ b/sys-cluster/sanlock/Manifest @@ -1 +1,2 @@ DIST sanlock-3.8.4.tar.gz 270031 BLAKE2B da011a15d488849d47fe1043df040580652558918dff9549bf4e6cb4077c03b4aaa8f8de5399dbb0e3f2301ae90c0d20599b25bd5e72bae5317b13f79a352333 SHA512 9fca2b18fd3bd504d5186de0b2626ea2c993997528de2384dc042afe52b2b68422a2e4bb79e2409c9e6eccbe5ea8d8939549eb25c5d16aa7fecf6c9a5798340c +DIST sanlock-3.8.5.tar.gz 270911 BLAKE2B 7f8146d67c620d22ded5205c1c621f3bbb36256a4c80e866575d8f324ad0237cf8bc07579f3aeda393dd0db85e27fdaa1aab1b6d7b931d4416d13f82d560e22a SHA512 8131e0b37ac47052a29d4b3a3e4286b06b862f08e827d3307f179eadbe97e4bc3e10f5c93f35042c308435ee81546a813227bce665a9735cbbf2b5a4a1f4474a diff --git a/sys-cluster/sanlock/sanlock-3.8.5.ebuild b/sys-cluster/sanlock/sanlock-3.8.5.ebuild new file mode 100644 index 000000000000..d2fee0f662f4 --- /dev/null +++ b/sys-cluster/sanlock/sanlock-3.8.5.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit linux-info python-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 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + acct-user/${PN} + acct-group/${PN} + dev-libs/libaio + sys-apps/util-linux + python? ( ${PYTHON_DEPS} ) +" +RDEPEND="${DEPEND}" +BDEPEND="sys-apps/which" + +PATCHES=( + "${FILESDIR}/sanlock-fence_sanlock-LDFLAGS.patch" + "${FILESDIR}/sanlock-3.8.4-implicit-func-decls.patch" +) + +CONFIG_CHECK="~SOFT_WATCHDOG" + +src_compile() { + for d in wdmd src fence_sanlock reset; do + emake -C ${d} + done + + if use python; then + python_foreach_impl emake -C python + fi +} + +src_install() { + for d in wdmd src fence_sanlock reset; do + emake -C ${d} DESTDIR="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install + done + + if use python; then + python_foreach_impl emake -C python DESTDIR="${D}" 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 + #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 || die + systemd_newunit init.d/wdmd.service.native wdmd.service + systemd_dounit init.d/sanlk-resetd.service + #systemd_dounit ${FILESDIR}/fence_sanlockd.service +}