mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
sys-cluster/sanlock: add 5.1.0
Closes: https://bugs.gentoo.org/974148 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST sanlock-3.8.5.tar.gz 270911 BLAKE2B 7f8146d67c620d22ded5205c1c621f3bbb36256a4c80e866575d8f324ad0237cf8bc07579f3aeda393dd0db85e27fdaa1aab1b6d7b931d4416d13f82d560e22a SHA512 8131e0b37ac47052a29d4b3a3e4286b06b862f08e827d3307f179eadbe97e4bc3e10f5c93f35042c308435ee81546a813227bce665a9735cbbf2b5a4a1f4474a
|
||||
DIST sanlock-4.2.0.tar.gz 297155 BLAKE2B b3787041ee17b2966bdf3543811c479801943725f5174cb49fc286ca63a5a3fdbca9392625dc5ccbdd8f71caf4ca6ab493b4bab8ed1237d83ce19af632f05abd SHA512 6b06bb4a600be6aa92043385a02630d4c45b5e76fd07e609725c32a166cad9d66df254212444639ca7bae6a3d121c5662a7161ec0fa02bf139bbc3fb0d4c8da5
|
||||
DIST sanlock-5.1.0.tar.gz 256799 BLAKE2B fbe66c4021cfc780d8ee62fbbeea1d5d07451e8050fa501db06d1aea28094c6c1a6fe5e77620b5714b302d34d08f66164326841c8d5261df0f405db2ec29d182 SHA512 360d6ac99f60246ecdd49460df6601ba3468d4dc83f33aab2f2a914d47d4a28380de3e98b82ba1d862ae925b30d351488473f96f80e8256acba76fd6103aaa4c
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2026 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..15} )
|
||||
inherit flag-o-matic linux-info distutils-r1 systemd
|
||||
|
||||
DESCRIPTION="shared storage lock manager"
|
||||
HOMEPAGE="https://codeberg.org/sanlock/sanlock"
|
||||
SRC_URI="https://codeberg.org/${PN}/${PN}/releases/download/${P}/${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; do
|
||||
emake -C ${d}
|
||||
done
|
||||
|
||||
if use python; then
|
||||
pushd python
|
||||
distutils-r1_src_compile
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
for d in wdmd src; 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
|
||||
|
||||
# systemd
|
||||
local utildir="$(systemd_get_utildir)"
|
||||
exeinto "${utildir#"${EPREFIX}"}"
|
||||
doexe init.d/systemd-wdmd
|
||||
systemd_dounit init.d/sanlock.service
|
||||
systemd_dounit init.d/wdmd.service
|
||||
}
|
||||
Reference in New Issue
Block a user