From 5fcfd991d785e1271604104ec9a6f0cbb8577d8a Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Wed, 28 Nov 2018 12:42:19 -0600 Subject: [PATCH] preserving soon-to-be-deleted packages https://bugs.gentoo.org/618050 --- sys-cluster/fence-agents/Manifest | 4 + .../fence-agents/fence-agents-3.1.5-r1.ebuild | 65 +++++++++++ .../fence-agents/fence-agents-3.1.5-r2.ebuild | 71 ++++++++++++ sys-cluster/fence-agents/metadata.xml | 9 ++ sys-cluster/libccs-perl/Manifest | 3 + .../libccs-perl/libccs-perl-3.1.5.ebuild | 42 +++++++ sys-cluster/libccs-perl/metadata.xml | 9 ++ sys-cluster/libccs/Manifest | 5 + sys-cluster/libccs/libccs-3.1.5.ebuild | 50 ++++++++ sys-cluster/libccs/libccs-3.2.0.ebuild | 50 ++++++++ sys-cluster/libccs/metadata.xml | 9 ++ sys-cluster/libcman/Manifest | 5 + sys-cluster/libcman/libcman-3.1.5.ebuild | 46 ++++++++ sys-cluster/libcman/libcman-3.2.0.ebuild | 46 ++++++++ sys-cluster/libcman/metadata.xml | 9 ++ sys-cluster/libdlm/Manifest | 6 + .../libdlm/files/libdlm-3.2.0-sysmacros.patch | 11 ++ sys-cluster/libdlm/libdlm-3.1.5.ebuild | 62 ++++++++++ sys-cluster/libdlm/libdlm-3.2.0.ebuild | 70 +++++++++++ sys-cluster/libdlm/metadata.xml | 9 ++ sys-cluster/libfence/Manifest | 5 + sys-cluster/libfence/libfence-3.1.5.ebuild | 59 ++++++++++ sys-cluster/libfence/libfence-3.2.0.ebuild | 59 ++++++++++ sys-cluster/libfence/metadata.xml | 9 ++ sys-cluster/liblogthread/Manifest | 5 + .../liblogthread/liblogthread-3.1.5.ebuild | 46 ++++++++ .../liblogthread/liblogthread-3.2.0.ebuild | 46 ++++++++ sys-cluster/liblogthread/metadata.xml | 9 ++ sys-cluster/libqb/Manifest | 7 ++ sys-cluster/libqb/libqb-0.17.1.ebuild | 51 ++++++++ sys-cluster/libqb/libqb-0.17.2.ebuild | 51 ++++++++ sys-cluster/libqb/libqb-1.0.1.ebuild | 51 ++++++++ sys-cluster/libqb/metadata.xml | 11 ++ sys-cluster/rgmanager-agents/Manifest | 3 + sys-cluster/rgmanager-agents/metadata.xml | 9 ++ .../rgmanager-agents-3.9.2.ebuild | 64 ++++++++++ sys-cluster/rgmanager/Manifest | 11 ++ .../rgmanager-2.03.09-CVE-2010-3389.patch | 36 ++++++ .../rgmanager/files/rgmanager-2.0x.conf | 4 + sys-cluster/rgmanager/files/rgmanager-2.0x.rc | 109 ++++++++++++++++++ .../files/rgmanager-3.1.5-fix_libxml2.patch | 23 ++++ sys-cluster/rgmanager/files/rgmanager.confd | 7 ++ sys-cluster/rgmanager/files/rgmanager.initd | 34 ++++++ sys-cluster/rgmanager/metadata.xml | 8 ++ .../rgmanager/rgmanager-2.03.09-r1.ebuild | 63 ++++++++++ sys-cluster/rgmanager/rgmanager-3.1.5.ebuild | 63 ++++++++++ sys-cluster/sanlock/Manifest | 7 ++ sys-cluster/sanlock/files/sanlock.initd | 8 ++ sys-cluster/sanlock/files/wdmd.initd | 11 ++ sys-cluster/sanlock/metadata.xml | 12 ++ sys-cluster/sanlock/sanlock-3.4.0-r1.ebuild | 85 ++++++++++++++ sys-cluster/sanlock/sanlock-3.6.0.ebuild | 85 ++++++++++++++ 52 files changed, 1632 insertions(+) create mode 100644 sys-cluster/fence-agents/Manifest create mode 100644 sys-cluster/fence-agents/fence-agents-3.1.5-r1.ebuild create mode 100644 sys-cluster/fence-agents/fence-agents-3.1.5-r2.ebuild create mode 100644 sys-cluster/fence-agents/metadata.xml create mode 100644 sys-cluster/libccs-perl/Manifest create mode 100644 sys-cluster/libccs-perl/libccs-perl-3.1.5.ebuild create mode 100644 sys-cluster/libccs-perl/metadata.xml create mode 100644 sys-cluster/libccs/Manifest create mode 100644 sys-cluster/libccs/libccs-3.1.5.ebuild create mode 100644 sys-cluster/libccs/libccs-3.2.0.ebuild create mode 100644 sys-cluster/libccs/metadata.xml create mode 100644 sys-cluster/libcman/Manifest create mode 100644 sys-cluster/libcman/libcman-3.1.5.ebuild create mode 100644 sys-cluster/libcman/libcman-3.2.0.ebuild create mode 100644 sys-cluster/libcman/metadata.xml create mode 100644 sys-cluster/libdlm/Manifest create mode 100644 sys-cluster/libdlm/files/libdlm-3.2.0-sysmacros.patch create mode 100644 sys-cluster/libdlm/libdlm-3.1.5.ebuild create mode 100644 sys-cluster/libdlm/libdlm-3.2.0.ebuild create mode 100644 sys-cluster/libdlm/metadata.xml create mode 100644 sys-cluster/libfence/Manifest create mode 100644 sys-cluster/libfence/libfence-3.1.5.ebuild create mode 100644 sys-cluster/libfence/libfence-3.2.0.ebuild create mode 100644 sys-cluster/libfence/metadata.xml create mode 100644 sys-cluster/liblogthread/Manifest create mode 100644 sys-cluster/liblogthread/liblogthread-3.1.5.ebuild create mode 100644 sys-cluster/liblogthread/liblogthread-3.2.0.ebuild create mode 100644 sys-cluster/liblogthread/metadata.xml create mode 100644 sys-cluster/libqb/Manifest create mode 100644 sys-cluster/libqb/libqb-0.17.1.ebuild create mode 100644 sys-cluster/libqb/libqb-0.17.2.ebuild create mode 100644 sys-cluster/libqb/libqb-1.0.1.ebuild create mode 100644 sys-cluster/libqb/metadata.xml create mode 100644 sys-cluster/rgmanager-agents/Manifest create mode 100644 sys-cluster/rgmanager-agents/metadata.xml create mode 100644 sys-cluster/rgmanager-agents/rgmanager-agents-3.9.2.ebuild create mode 100644 sys-cluster/rgmanager/Manifest create mode 100644 sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch create mode 100644 sys-cluster/rgmanager/files/rgmanager-2.0x.conf create mode 100644 sys-cluster/rgmanager/files/rgmanager-2.0x.rc create mode 100644 sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch create mode 100644 sys-cluster/rgmanager/files/rgmanager.confd create mode 100644 sys-cluster/rgmanager/files/rgmanager.initd create mode 100644 sys-cluster/rgmanager/metadata.xml create mode 100644 sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild create mode 100644 sys-cluster/rgmanager/rgmanager-3.1.5.ebuild create mode 100644 sys-cluster/sanlock/Manifest create mode 100644 sys-cluster/sanlock/files/sanlock.initd create mode 100644 sys-cluster/sanlock/files/wdmd.initd create mode 100644 sys-cluster/sanlock/metadata.xml create mode 100644 sys-cluster/sanlock/sanlock-3.4.0-r1.ebuild create mode 100644 sys-cluster/sanlock/sanlock-3.6.0.ebuild diff --git a/sys-cluster/fence-agents/Manifest b/sys-cluster/fence-agents/Manifest new file mode 100644 index 0000000..57ea0d4 --- /dev/null +++ b/sys-cluster/fence-agents/Manifest @@ -0,0 +1,4 @@ +DIST fence-agents-3.1.5.tar.gz 897416 BLAKE2B 5eaae8cd03af16c9a071f110dc3b7151b9dcb2176942e04c95b464644ed7e6b44972b0fefaee72e08855e6b27b0f6b177eb887e3f856529103e1c3508dda196a SHA512 3941e2ec9f7db8dfe9fbf8aa360359fa1ff4f3c2d3e6e778289f0bbc39481a54915dbf93d9a9b66f6953ddd2c81562daa7c90e6c0f59ec42e9bfb779ae242992 +EBUILD fence-agents-3.1.5-r1.ebuild 1683 BLAKE2B 94f5be38404e29b495a7f036d7d44c5a2f7c8ed3b283819088171a54643930b0f07ecdc522b1343205b77ed6904287e3ecba5d9339c4b03d1a842d54ce12c005 SHA512 42049b456c003eabd8b3e1ee850de1496b2a224aec7824215c367f0a5d86e6dc42c7f29d8272a67eeb87b4ed1f2cdbcb62bd3fd5759dbca3ba5018b3afceb8b9 +EBUILD fence-agents-3.1.5-r2.ebuild 1836 BLAKE2B 949f4ba572933ea95fd10cd0f19384d2c0a1dfa9aac1f60682b92c48fe79eabfed3c4b240f9327b876ee8f70a7c71c33e2adb81ca95a4909dd90f5d28658aaed SHA512 340384527415bd8593d5b81fdc3a50fc10603ee93fc8df1e3f7f28031fc28136ee91b904750c19ce0a52e997aafbf0800ce70598f373c6977847d86fb666dcad +MISC metadata.xml 323 BLAKE2B 5e4be67c1adc13cde9aa864ef0f8320057022077348ed7d7d77bc509482e1ee057b570558548e9e89544b612feef0655ba39d4453c16fc039ba84ccabe0ba297 SHA512 771302bd401362ba141c27bd7c8b34c2a7f1b2ad310035f5af2aab1188b9451d9189536a5ec607479ccfabd7a35bb4fab84e713c5aa9ea85948397ad5c6609a4 diff --git a/sys-cluster/fence-agents/fence-agents-3.1.5-r1.ebuild b/sys-cluster/fence-agents/fence-agents-3.1.5-r1.ebuild new file mode 100644 index 0000000..a1e725a --- /dev/null +++ b/sys-cluster/fence-agents/fence-agents-3.1.5-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit multilib versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Fencing Agents" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/f/e/${PN}/${PN}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="~sys-cluster/libccs-${PV}" +DEPEND="${RDEPEND} + dev-python/pexpect + dev-libs/libxslt + dev-python/pexpect + dev-python/pycurl + dev-python/suds" + +src_configure() { + econf \ + --docdir=/usr/share/doc/${P} \ + --libdir=/usr/$(get_libdir) \ + --localstatedir=/var +} + +src_install() { + default + # dont force /var/run creation on installation wrt #451798 + rm -rf "${D}"/var/run +} + +pkg_postinst() { + if [[ "${ROOT}" != "/" ]] ; then + ewarn "You have to run 'ccs_update_schema' in the chroot-environment" + ewarn "to update the schema file for the cluster configuration." + ewarn "Otherwise you will not be able to define ressources." + else + elog "Running ccs_update_schema to update the configuration file schema" + /usr/sbin/ccs_update_schema -v -f + fi +} + +pkg_postrm() { + if [[ "${ROOT}" != "/" ]] ; then + ewarn "You have to run 'ccs_update_schema' in the chroot-environment" + ewarn "to update the schema file for the cluster configuration." + ewarn "Otherwise you may be able to define ressources even though they" + ewarn "are not present anymore." + else + elog "Running ccs_update_schema to update the configuration file schema" + /usr/sbin/ccs_update_schema -v -f + fi +} diff --git a/sys-cluster/fence-agents/fence-agents-3.1.5-r2.ebuild b/sys-cluster/fence-agents/fence-agents-3.1.5-r2.ebuild new file mode 100644 index 0000000..674b1ea --- /dev/null +++ b/sys-cluster/fence-agents/fence-agents-3.1.5-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit multilib python-any-r1 versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Fencing Agents" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/f/e/${PN}/${PN}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="~sys-cluster/libccs-${PV}" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + dev-libs/libxslt + $(python_gen_any_dep ' + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pycurl[${PYTHON_USEDEP}] + dev-python/suds[${PYTHON_USEDEP}] + ')" + +src_configure() { + econf \ + --docdir=/usr/share/doc/${P} \ + --libdir=/usr/$(get_libdir) \ + --localstatedir=/var +} + +src_install() { + default + # dont force /var/run creation on installation wrt #451798 + rm -rf "${ED}"/var/run || die +} + +pkg_postinst() { + if [[ "${EROOT}" != "/" ]] ; then + ewarn "You have to run 'ccs_update_schema' in the chroot-environment" + ewarn "to update the schema file for the cluster configuration." + ewarn "Otherwise you will not be able to define ressources." + else + elog "Running ccs_update_schema to update the configuration file schema" + ccs_update_schema -v -f + fi +} + +pkg_postrm() { + if [[ "${EROOT}" != "/" ]] ; then + ewarn "You have to run 'ccs_update_schema' in the chroot-environment" + ewarn "to update the schema file for the cluster configuration." + ewarn "Otherwise you may be able to define ressources even though they" + ewarn "are not present anymore." + else + elog "Running ccs_update_schema to update the configuration file schema" + ccs_update_schema -v -f + fi +} diff --git a/sys-cluster/fence-agents/metadata.xml b/sys-cluster/fence-agents/metadata.xml new file mode 100644 index 0000000..5e3ac09 --- /dev/null +++ b/sys-cluster/fence-agents/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + Cluster Fencing Agents + diff --git a/sys-cluster/libccs-perl/Manifest b/sys-cluster/libccs-perl/Manifest new file mode 100644 index 0000000..5aee783 --- /dev/null +++ b/sys-cluster/libccs-perl/Manifest @@ -0,0 +1,3 @@ +DIST cluster-3.1.5.tar.gz 651449 BLAKE2B 7abee8c9df113b884a9e168bdcce904100d46e8346accd202c9ca43e6861a79da6d8826776dba657a182d73b84ecc19520b516c29975554c7d149e2b109599a3 SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a +EBUILD libccs-perl-3.1.5.ebuild 993 BLAKE2B 98732a396ed87d9c72dfc170f1929b6165e6eda460cb27d508c67efd003315e800e21c0e6e6410166b5bbb8d3597fa01a93a0a54bc391680888f3821dc054e7c SHA512 0bf725bdc87e0a5ae89e846443ff6b8e6df01f2a4c75f4957fae6a20d964975e13b9f897cd82f088ffa26ca761bd4481c21ff2c04b649187612b81d86bdc31e0 +MISC metadata.xml 344 BLAKE2B c627ae30f292b8dfdc4ac0b78df00a7f34da55abf0167b15bf31e1102f3438ddfcb279b163c653c9473b94dc45358ae1099007191cf84e328e589f974795f509 SHA512 4cf5ea22bcee5e35cb8857ab36527a52a407b9c0321251037932fc5ae73b96824aa4f4b7259871dac5021cd311f8a5d26c95b880e27f5cd4186e0b5e3689a379 diff --git a/sys-cluster/libccs-perl/libccs-perl-3.1.5.ebuild b/sys-cluster/libccs-perl/libccs-perl-3.1.5.ebuild new file mode 100644 index 0000000..da07578 --- /dev/null +++ b/sys-cluster/libccs-perl/libccs-perl-3.1.5.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Configuration System Library Perl-Bindings" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sys-cluster/libccs" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/bindings/perl" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --ccslibdir=/usr/$(get_libdir) \ + --ccsincdir=/usr/include \ + || die "configure problem" +} diff --git a/sys-cluster/libccs-perl/metadata.xml b/sys-cluster/libccs-perl/metadata.xml new file mode 100644 index 0000000..05ae0dd --- /dev/null +++ b/sys-cluster/libccs-perl/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + Cluster Configuration System Library Perl-Bindings + diff --git a/sys-cluster/libccs/Manifest b/sys-cluster/libccs/Manifest new file mode 100644 index 0000000..63f30bd --- /dev/null +++ b/sys-cluster/libccs/Manifest @@ -0,0 +1,5 @@ +DIST cluster-3.1.5.tar.gz 651449 BLAKE2B 7abee8c9df113b884a9e168bdcce904100d46e8346accd202c9ca43e6861a79da6d8826776dba657a182d73b84ecc19520b516c29975554c7d149e2b109599a3 SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a +DIST cluster-3.2.0.tar.gz 688411 BLAKE2B b1218e74bd0d9f1d25d8a01659d5a038f3a5380e6d6e04f02138d13ef3de1e3f96d6aac680c2858ac6bd0e830d227474af9ec82ea8bbefd3f33b88bbe2d5ffc6 SHA512 00620b89564c4f9b67b679695749cd7515f49af43ace6a565e32e020ee66db219f3db3f53420d6460ea8c1cab03258305735fe5db81aab3953777015119533e9 +EBUILD libccs-3.1.5.ebuild 1143 BLAKE2B 6e65f26b925bb4d9930dfed498f607f3d4094ce573ff23bc3b1805d18c26cf39f2c0fabad75a5403c55d5bdf1b0d5be886284725cbf8a666af5b5e265dd0229e SHA512 2e1e70d6bf0d7c2b2d9a2d26304952a4ada7b81cd1ca45630f31cdce0f6b3bd02029833f25af0acab41c40ab51e1ed8e55072a70d02018f4901056d565cb2a59 +EBUILD libccs-3.2.0.ebuild 1150 BLAKE2B a20b0e49a9975600162e8741c3c44cbfe67de7765373ab375b480dee76400929084b9fa34b0e409fd2c1b1da4ba31066af4cd9b745648baac3ef5fb17778c6e0 SHA512 8a549d811818855a77bbed18b7629ea8a51a832cf5b88c45a4a78f4a97f21cc1e07fe0299051685c0d44832031c419b0b620bca50ca7e3376cdc4820c7271235 +MISC metadata.xml 330 BLAKE2B 8afd3bd0da95a465c739e4f22d4d700b837f1a2bddff0fdd8fc01a5c35692a3ca6707a01db254cdf1f9138a149cdbe445fa60f030912e9e9c26346198534614b SHA512 e41d0df2a7bd4e11f561ffb239ea5fc9b74b0607bb05a7e5e8f4f9a6ab0b7482067ab2d255862b7a891d773b1bb8753b7bdbb5e63dfa734264ad2285b768ccc2 diff --git a/sys-cluster/libccs/libccs-3.1.5.ebuild b/sys-cluster/libccs/libccs-3.1.5.ebuild new file mode 100644 index 0000000..d5dc0d2 --- /dev/null +++ b/sys-cluster/libccs/libccs-3.1.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Configuration System Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="static-libs" + +RDEPEND=" + =sys-cluster/corosync-1.4.7 + dev-libs/libxml2 + !sys-cluster/ccs" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/config/libs" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --ccslibdir=/usr/$(get_libdir) \ + --ccsincdir=/usr/include \ + || die "configure problem" +} + +src_install() { + default + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/libccs/libccs-3.2.0.ebuild b/sys-cluster/libccs/libccs-3.2.0.ebuild new file mode 100644 index 0000000..fa9307d --- /dev/null +++ b/sys-cluster/libccs/libccs-3.2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Configuration System Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~x86" +IUSE="static-libs" + +RDEPEND=" + =sys-cluster/corosync-1.4.7 + dev-libs/libxml2 + !sys-cluster/ccs" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/config/libs" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --ccslibdir=/usr/$(get_libdir) \ + --ccsincdir=/usr/include \ + || die "configure problem" +} + +src_install() { + default + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/libccs/metadata.xml b/sys-cluster/libccs/metadata.xml new file mode 100644 index 0000000..7c52bc7 --- /dev/null +++ b/sys-cluster/libccs/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + Cluster Configuration System Library + diff --git a/sys-cluster/libcman/Manifest b/sys-cluster/libcman/Manifest new file mode 100644 index 0000000..2e44c26 --- /dev/null +++ b/sys-cluster/libcman/Manifest @@ -0,0 +1,5 @@ +DIST cluster-3.1.5.tar.gz 651449 BLAKE2B 7abee8c9df113b884a9e168bdcce904100d46e8346accd202c9ca43e6861a79da6d8826776dba657a182d73b84ecc19520b516c29975554c7d149e2b109599a3 SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a +DIST cluster-3.2.0.tar.gz 688411 BLAKE2B b1218e74bd0d9f1d25d8a01659d5a038f3a5380e6d6e04f02138d13ef3de1e3f96d6aac680c2858ac6bd0e830d227474af9ec82ea8bbefd3f33b88bbe2d5ffc6 SHA512 00620b89564c4f9b67b679695749cd7515f49af43ace6a565e32e020ee66db219f3db3f53420d6460ea8c1cab03258305735fe5db81aab3953777015119533e9 +EBUILD libcman-3.1.5.ebuild 1069 BLAKE2B f9046f43b35d736ea38a6c77673130d48202f5d170e1db3b23a4abae2b104d5f2e91e7f76bdc2baafc81058d5d87cd9a2a93ea18e7d6e68484d10da751e60033 SHA512 4f030908790a3e7d12b5d72cc76a41656203a34a583baf4d985b0e5eb624c6f18d49b5a09799e52d0eaa4060326bac04677ea7c1b9406534f9ca471f54ac2815 +EBUILD libcman-3.2.0.ebuild 1076 BLAKE2B 45252dde739e23c4ee3275a16a4c9419d61ffc823a42b702efc49e5138e77564b1e285ffe0e75b422941b09a961fee6aceaeb9583376ff178a967eee9fc549cf SHA512 5625f1adfd52cccad9f8649a5e380532a65563e6e14e40db41e6f4d82dd7b0f703c7a8e13941b3eea58e2bebc3a8a7ca3b3baaa8a309426930812fa693a9bb55 +MISC metadata.xml 317 BLAKE2B 19c069f2b86caea85387609faafd7a828a19d51ecaebdb14c3c567a653358651ee28421485d49dc0f92ce6775a2049ac3d44a27de42f7058cb90038276d80fde SHA512 797aa2cfe7f61965454cce0043d86979f978fb6f6eee1e0bfc85dc03e776815e5b5b544a58e8ac842df50d14d4e32f14c159e71a4451d50d49377e1bd47d86e9 diff --git a/sys-cluster/libcman/libcman-3.1.5.ebuild b/sys-cluster/libcman/libcman-3.1.5.ebuild new file mode 100644 index 0000000..d5cc61b --- /dev/null +++ b/sys-cluster/libcman/libcman-3.1.5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Manager Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="static-libs" + +DEPEND=">=sys-kernel/linux-headers-2.6.24" +RDEPEND="!sys-cluster/cman-lib" + +S="${WORKDIR}/${MY_P}/cman/lib" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --cmanlibdir=/usr/$(get_libdir) \ + --cmanincdir=/usr/include \ + || die "configure failed" +} + +src_install() { + default + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/libcman/libcman-3.2.0.ebuild b/sys-cluster/libcman/libcman-3.2.0.ebuild new file mode 100644 index 0000000..226432d --- /dev/null +++ b/sys-cluster/libcman/libcman-3.2.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Manager Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~x86" +IUSE="static-libs" + +DEPEND=">=sys-kernel/linux-headers-2.6.24" +RDEPEND="!sys-cluster/cman-lib" + +S="${WORKDIR}/${MY_P}/cman/lib" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --cmanlibdir=/usr/$(get_libdir) \ + --cmanincdir=/usr/include \ + || die "configure failed" +} + +src_install() { + default + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/libcman/metadata.xml b/sys-cluster/libcman/metadata.xml new file mode 100644 index 0000000..d1b9efc --- /dev/null +++ b/sys-cluster/libcman/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + Cluster Manager Library + diff --git a/sys-cluster/libdlm/Manifest b/sys-cluster/libdlm/Manifest new file mode 100644 index 0000000..0565ab4 --- /dev/null +++ b/sys-cluster/libdlm/Manifest @@ -0,0 +1,6 @@ +AUX libdlm-3.2.0-sysmacros.patch 416 BLAKE2B 1c1e621e2321196d6ba769dc761170c3b7b146d24d133128d1318ecd28232d688f5b9193e34afb1172544c249039b64eef0b2f90d2fe2bb288af48238c8c5dfd SHA512 acc5f156651a7389b5bd6c64bb0df7bedf95c5a77e6e9bb2f669c25a1beadd924cff5004b784f51c45ad0a646ae0c476290fa6c89136f5c6c492ef70565ef9cf +DIST cluster-3.1.5.tar.gz 651449 BLAKE2B 7abee8c9df113b884a9e168bdcce904100d46e8346accd202c9ca43e6861a79da6d8826776dba657a182d73b84ecc19520b516c29975554c7d149e2b109599a3 SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a +DIST cluster-3.2.0.tar.gz 688411 BLAKE2B b1218e74bd0d9f1d25d8a01659d5a038f3a5380e6d6e04f02138d13ef3de1e3f96d6aac680c2858ac6bd0e830d227474af9ec82ea8bbefd3f33b88bbe2d5ffc6 SHA512 00620b89564c4f9b67b679695749cd7515f49af43ace6a565e32e020ee66db219f3db3f53420d6460ea8c1cab03258305735fe5db81aab3953777015119533e9 +EBUILD libdlm-3.1.5.ebuild 1435 BLAKE2B 3b068b281d94e72a57bad70b988d172fbd6ed42bc897af76936bb15721cbb796db48805772e4ae855c898b9bf2eac785236f61c621b6012cbac6034ee36de8b5 SHA512 ee6463c25df6bcd045bbe8cc2b3ea14fa2873fe8b209af6dccb5252c4ae82f0b3288f96699568ee5f7e7f33af5b1ac1ed8ad3dd93ca579a7d9707fc7f2953ad0 +EBUILD libdlm-3.2.0.ebuild 1649 BLAKE2B 79aff4a167928626940cefcd66ae7d738ff5c7143466a762166ef1ab2c161a5301dffee3f590c9d7bb7812f0ad9b1b411e805ba140a85e4a5324996ceaf3118d SHA512 86efcb3ccd29f2c139ac639a815aeec1959faa4fb1f2946a80f368e8a849b40dd97fe606bf9f8fab7809c20c8c52f6d10e2fe6918e496781ad0953c06e4821ed +MISC metadata.xml 342 BLAKE2B 4ee7c616a4c41808d0e5fbbb8171f31e3158fd22a76975b3a48d6710f1ef8986446f46c88c212ac4a4c80b4dfce91acf9c84bdc3779e7fc9ce03968c55c40c23 SHA512 2acce7a5bf8ca7cdc148b258f9a64c4ad1a3eb7e4385cf4394f0d55891d649c6d7ab1efe5e1235a39afe9a8782b9c7ab36dec4a87f78f1a81cb2df6662ffd6c9 diff --git a/sys-cluster/libdlm/files/libdlm-3.2.0-sysmacros.patch b/sys-cluster/libdlm/files/libdlm-3.2.0-sysmacros.patch new file mode 100644 index 0000000..3a8a8b1 --- /dev/null +++ b/sys-cluster/libdlm/files/libdlm-3.2.0-sysmacros.patch @@ -0,0 +1,11 @@ +diff -ruN cluster-3.2.0.orig/dlm/libdlm/libdlm.c cluster-3.2.0/dlm/libdlm/libdlm.c +--- cluster-3.2.0.orig/dlm/libdlm/libdlm.c 2012-11-26 05:13:22.000000000 +0100 ++++ cluster-3.2.0/dlm/libdlm/libdlm.c 2018-04-29 23:46:57.591160008 +0200 +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/sys-cluster/libdlm/libdlm-3.1.5.ebuild b/sys-cluster/libdlm/libdlm-3.1.5.ebuild new file mode 100644 index 0000000..8c6593c --- /dev/null +++ b/sys-cluster/libdlm/libdlm-3.1.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="General-purpose Distributed Lock Manager Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="static-libs" + +RDEPEND=" + !sys-cluster/dlm-headers + !sys-cluster/dlm-kernel + !sys-cluster/dlm-lib" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.24" + +S=${WORKDIR}/${MY_P}/dlm + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=/usr/ \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --dlmlibdir=/usr/$(get_libdir) \ + --dlmincdir=/usr/include \ + --dlmcontrollibdir=/usr/$(get_libdir) \ + --dlmcontrolincdir=/usr/include \ + || die "configure problem" +} + +src_compile() { + for i in libdlm libdlmcontrol; do + emake -C ${i} + done +} + +src_install() { + for i in libdlm libdlmcontrol; do + emake DESTDIR="${D}" -C ${i} install + done + use static-libs || rm -f "${D}"/usr/lib*/*.a + doman man/libdlm.3 + dodoc doc/{libdlm.txt,example.c,user-dlm-overview.txt} +} diff --git a/sys-cluster/libdlm/libdlm-3.2.0.ebuild b/sys-cluster/libdlm/libdlm-3.2.0.ebuild new file mode 100644 index 0000000..aebc2e1 --- /dev/null +++ b/sys-cluster/libdlm/libdlm-3.2.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit multilib toolchain-funcs versionator epatch + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="General-purpose Distributed Lock Manager Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~hppa x86" +IUSE="static-libs" + +RDEPEND=" + !sys-cluster/dlm-headers + !sys-cluster/dlm-kernel + !sys-cluster/dlm-lib" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/dlm" + +src_prepare() { + sed -i \ + -e "s|/lib|/$(get_libdir)|g" \ + "${WORKDIR}/${MY_P}/make/install.mk" || die "sed failed" + epatch "${FILESDIR}/${P}-sysmacros.patch" +} + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=/usr/ \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --dlmlibdir=/usr/$(get_libdir) \ + --dlmincdir=/usr/include \ + --dlmcontrollibdir=/usr/$(get_libdir) \ + --dlmcontrolincdir=/usr/include \ + || die "configure problem" +} + +src_compile() { + for i in libdlm libdlmcontrol; do + emake -C ${i} + done +} + +src_install() { + for i in libdlm libdlmcontrol; do + emake DESTDIR="${D}" -C ${i} install + done + mv "${D}"/$(get_libdir) "${D}"/lib + use static-libs || rm -f "${D}"/usr/lib*/*.a + doman man/libdlm.3 + dodoc doc/{libdlm.txt,example.c,user-dlm-overview.txt} +} diff --git a/sys-cluster/libdlm/metadata.xml b/sys-cluster/libdlm/metadata.xml new file mode 100644 index 0000000..d3f8da7 --- /dev/null +++ b/sys-cluster/libdlm/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + General-purpose Distributed Lock Manager Library + diff --git a/sys-cluster/libfence/Manifest b/sys-cluster/libfence/Manifest new file mode 100644 index 0000000..b5e4053 --- /dev/null +++ b/sys-cluster/libfence/Manifest @@ -0,0 +1,5 @@ +DIST cluster-3.1.5.tar.gz 651449 BLAKE2B 7abee8c9df113b884a9e168bdcce904100d46e8346accd202c9ca43e6861a79da6d8826776dba657a182d73b84ecc19520b516c29975554c7d149e2b109599a3 SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a +DIST cluster-3.2.0.tar.gz 688411 BLAKE2B b1218e74bd0d9f1d25d8a01659d5a038f3a5380e6d6e04f02138d13ef3de1e3f96d6aac680c2858ac6bd0e830d227474af9ec82ea8bbefd3f33b88bbe2d5ffc6 SHA512 00620b89564c4f9b67b679695749cd7515f49af43ace6a565e32e020ee66db219f3db3f53420d6460ea8c1cab03258305735fe5db81aab3953777015119533e9 +EBUILD libfence-3.1.5.ebuild 1365 BLAKE2B c1f1682142cb94ba7da00ed0d2038beee2075b56ac9ba15418dfc47bbe8ea2a637c9d4e67411e4eaf0b90529dc87345713517aca034714b6d560c22001dd0fc8 SHA512 5883b357716337ebaaf0d4aa36ae61362e17e3e8010d6159ed4595702695e54f587a6d40161866ea9a98f40463e7c971c8684ac4cb3ebdb15ee1a382be31a148 +EBUILD libfence-3.2.0.ebuild 1372 BLAKE2B 12c9d2fb708ee188fc3edb8612c9c12c438d6c56a0849d4d41f108bc4ef3a7468de82e930b0e494995fdb911edcf4627b962f3035bb34304216cac10f90f4854 SHA512 da502b73bf72ab22eb8227cac52d6f3d5b06bcff3a80b930310ecc897572d6614f3ddd3347d056556cafdb03e733197c5eaeaeb8bece5904dba8749f83f7bc66 +MISC metadata.xml 317 BLAKE2B 731180437463ea16584c0a99eca4b6470c599be30bf24728424d1d225e82a59bd72dedd40cb211cecb48c56ce43e75ee85bd9dca238997d763ff3d41820d6c70 SHA512 1622dc57ee420ab60a653ab370f0a3142a93efc865c2f8c47c8d0931b8aeeb9bfaef841ce9e9834985630193511002655fb0da2a10fa16707b2d0f4ecd51db05 diff --git a/sys-cluster/libfence/libfence-3.1.5.ebuild b/sys-cluster/libfence/libfence-3.1.5.ebuild new file mode 100644 index 0000000..024a312 --- /dev/null +++ b/sys-cluster/libfence/libfence-3.1.5.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Fencing Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="static-libs" + +RDEPEND="~sys-cluster/libccs-${PV}" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/fence" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --fencelibdir=/usr/$(get_libdir) \ + --fenceincdir=/usr/include \ + --fencedlibdir=/usr/$(get_libdir) \ + --fencedincdir=/usr/include \ + --ccslibdir=/usr/$(get_libdir) \ + --ccsincdir=/usr/include \ + || die "configure problem" +} + +src_compile() { + for i in libfence libfenced; do + emake -C ${i} + done +} + +src_install() { + for i in libfence libfenced; do + emake DESTDIR="${D}" -C ${i} install + done + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/libfence/libfence-3.2.0.ebuild b/sys-cluster/libfence/libfence-3.2.0.ebuild new file mode 100644 index 0000000..165a3bc --- /dev/null +++ b/sys-cluster/libfence/libfence-3.2.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Cluster Fencing Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~x86" +IUSE="static-libs" + +RDEPEND="~sys-cluster/libccs-${PV}" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/fence" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --fencelibdir=/usr/$(get_libdir) \ + --fenceincdir=/usr/include \ + --fencedlibdir=/usr/$(get_libdir) \ + --fencedincdir=/usr/include \ + --ccslibdir=/usr/$(get_libdir) \ + --ccsincdir=/usr/include \ + || die "configure problem" +} + +src_compile() { + for i in libfence libfenced; do + emake -C ${i} + done +} + +src_install() { + for i in libfence libfenced; do + emake DESTDIR="${D}" -C ${i} install + done + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/libfence/metadata.xml b/sys-cluster/libfence/metadata.xml new file mode 100644 index 0000000..0a34fce --- /dev/null +++ b/sys-cluster/libfence/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + Cluster Fencing Library + diff --git a/sys-cluster/liblogthread/Manifest b/sys-cluster/liblogthread/Manifest new file mode 100644 index 0000000..baad7d7 --- /dev/null +++ b/sys-cluster/liblogthread/Manifest @@ -0,0 +1,5 @@ +DIST cluster-3.1.5.tar.gz 651449 BLAKE2B 7abee8c9df113b884a9e168bdcce904100d46e8346accd202c9ca43e6861a79da6d8826776dba657a182d73b84ecc19520b516c29975554c7d149e2b109599a3 SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a +DIST cluster-3.2.0.tar.gz 688411 BLAKE2B b1218e74bd0d9f1d25d8a01659d5a038f3a5380e6d6e04f02138d13ef3de1e3f96d6aac680c2858ac6bd0e830d227474af9ec82ea8bbefd3f33b88bbe2d5ffc6 SHA512 00620b89564c4f9b67b679695749cd7515f49af43ace6a565e32e020ee66db219f3db3f53420d6460ea8c1cab03258305735fe5db81aab3953777015119533e9 +EBUILD liblogthread-3.1.5.ebuild 1067 BLAKE2B e05db949421b183a20937396cf874a4e57d5453a3a426c252458e64fe4131bca5f40d2ee9ed9d426d80c68ac2a455ae75e7b8e2c3abbd4c27b6d98767ffe51f7 SHA512 4a60cd5d2cd7e4662d0fab9261a86e1be54a9b9654fe0640e4edda338b86763c2711c4a04d027025df7256fb31ddf04be434ab245e314b8542ce5e65aa253f8d +EBUILD liblogthread-3.2.0.ebuild 1074 BLAKE2B da4013676c8d9b2da7fea1742eb299bce4701d84aad5e90937e9b0cdf8a2d8b72199fb8446b6baf6a8bf5980ffc85679b398f2d6873d79d3d9a504443a1bfcb1 SHA512 decf3a30f60aabcd387f87cc759a3a9019da9fbb9a54f4d461686759e27b0122db04f2576451e6439170005ec2d9813dfbc60a27c005abdb64cace970d14ffb3 +MISC metadata.xml 328 BLAKE2B bb070e05c2c327d6b02173166e887e34b85bbf19389091e6c02b12ccf31b94e05741ff51e1eaccbe78e65d720a54477c7e574e2f82a48bd96d48067d98cd159d SHA512 30edf69ff0d4929a2938cf4c42e173563af4e3f0edeec5ad900fd38858fb8a6d3a0bfa7013982166bb84878120b485bb99da523c5f0169a36dd53c4c9642394a diff --git a/sys-cluster/liblogthread/liblogthread-3.1.5.ebuild b/sys-cluster/liblogthread/liblogthread-3.1.5.ebuild new file mode 100644 index 0000000..6f0b960 --- /dev/null +++ b/sys-cluster/liblogthread/liblogthread-3.1.5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Thread-Safe Syslog Logging Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="static-libs" + +RDEPEND="" +DEPEND=">=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/common/${PN}" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --logtlibdir=/usr/$(get_libdir) \ + --logtincdir=/usr/include \ + || die "configure problem" +} + +src_install() { + default + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/liblogthread/liblogthread-3.2.0.ebuild b/sys-cluster/liblogthread/liblogthread-3.2.0.ebuild new file mode 100644 index 0000000..7f6669c --- /dev/null +++ b/sys-cluster/liblogthread/liblogthread-3.2.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info multilib toolchain-funcs versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Thread-Safe Syslog Logging Library" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~x86" +IUSE="static-libs" + +RDEPEND="" +DEPEND=">=sys-kernel/linux-headers-2.6.24" + +S="${WORKDIR}/${MY_P}/common/${PN}" + +src_configure() { + cd "${WORKDIR}/${MY_P}" + ./configure \ + --cc=$(tc-getCC) \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --kernel_src=${KERNEL_DIR} \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --logtlibdir=/usr/$(get_libdir) \ + --logtincdir=/usr/include \ + || die "configure problem" +} + +src_install() { + default + use static-libs || rm -f "${D}"/usr/lib*/*.a +} diff --git a/sys-cluster/liblogthread/metadata.xml b/sys-cluster/liblogthread/metadata.xml new file mode 100644 index 0000000..94c3766 --- /dev/null +++ b/sys-cluster/liblogthread/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + Thread-Safe Syslog Logging Library + diff --git a/sys-cluster/libqb/Manifest b/sys-cluster/libqb/Manifest new file mode 100644 index 0000000..b77c650 --- /dev/null +++ b/sys-cluster/libqb/Manifest @@ -0,0 +1,7 @@ +DIST libqb-0.17.1.tar.xz 386304 BLAKE2B 41356198a6f97d71bd2fdfca34c539c81c2d439410fad9f934d10fa411dafbdb490ef800d8a8e88bd4db966dd09bc4b6dd67c17508d15a7e05906982ebc3cd20 SHA512 9705b291a61ca278fd0c9ab631af2cb844cdfc73b19501dd2e12eb162b37f0eded800860127a8a5c5c7c2a0e8db53e4780d3ab9697b099f4560a9a87aa8ec9ca +DIST libqb-0.17.2.tar.xz 373540 BLAKE2B b9d751fca21cc25798a24207740b14722502cbb918cc652cd33b0159a9bd1254a8a64bc73684ae3274a2cf346db5b19924cf010ba487f4c6a9a5f9deade792c4 SHA512 9c6dce7d18aa4da31594faecd0ea2737c2beefa749290094f733fe89ac40f094ec6409f310c534b8144d500e8c204c328386eaf1029995698d7019c014433443 +DIST libqb-1.0.1.tar.xz 438204 BLAKE2B be4d4dbe624721a6434f7e3023bcaef017e1358f67fa308e4107bd96469675eca51b5787f498857d22104e3ffa55ded9c44fe320c37fec639a84648c1f517223 SHA512 9afdf5b7064f4e79f70e3c21d1ae954d1444d202d5903bd84866e502b2afc218d4a84fd21fab637a198357e1dad5da94814a6c0bdaa0ba6ac4a24ff40422c185 +EBUILD libqb-0.17.1.ebuild 1105 BLAKE2B baf81629892d2a5be45791b407f046e66467a167b79e8f658662a189278430d66db064d52acaa3560c7ace57a66658c5c1b4a4e394c44e135e6e1a393696fa2e SHA512 929ab8e277508eaba06516e7b4424bba5e81c4a22e7fd5b8b962fcaa1402cad78df56546b56ed14f39b81efe2e9a19f32e0fd921209b2bcd71070ceaf6a11b94 +EBUILD libqb-0.17.2.ebuild 1115 BLAKE2B 285b572383450885ac4529b0510e7737d73b6ac7836d453dfc9748a0b1405c10842089f82c83acd8d15f3855be3759c54f207dcb7d95c88b6c2aece47075f706 SHA512 e9aa9dd53e4a75ac67e45778ce537987d93244ac769888b2ce4cb2d442dac0ad6637a51c658c4e3909b2d7f4d3061efa8e6f18d46876e4729f45eb8469c3b7ea +EBUILD libqb-1.0.1.ebuild 1143 BLAKE2B a074ade79bdeaaf12b0bd6f1a7adaab5eda0856f5725441548e24b1a214e57042e8cc68b8dd13741356bd948186c0b3c81bdacc181229999a03ba687fa43064b SHA512 59ab3d4399c91a42c943c851dd857ad3cac4e6c70acef525b2a3a22d13867fb24fafa4e12bf55f263a7b633f49dbc153321518f2f858870bc50ac60479fdff5f +MISC metadata.xml 336 BLAKE2B bfb9a7bc9f1619b2605c7e6ca503e06cd0ccbcdef1dcea10f6f8e8fa524ccb3df4a230b000f6b7eb869d2eab92cec6a385e7d2c482bc612289a0b0b9e72875c4 SHA512 7138793800d1d53f31019dcd56eb8d44a0442dc25733a777931af10846f0a61488d3e30f2ba7b5540380e1ddb4d7fdc44eaa39c126ed005b8bde7ef75b2b495e diff --git a/sys-cluster/libqb/libqb-0.17.1.ebuild b/sys-cluster/libqb/libqb-0.17.1.ebuild new file mode 100644 index 0000000..b79bf5d --- /dev/null +++ b/sys-cluster/libqb/libqb-0.17.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils + +DESCRIPTION="Library providing high performance logging, tracing, ipc, and poll" +HOMEPAGE="https://github.com/asalkeld/libqb" +SRC_URI="http://fedorahosted.org/releases/q/u/quarterback/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 hppa x86" +IUSE="debug doc examples static-libs test" + +RDEPEND="dev-libs/glib:2" +DEPEND="${RDEPEND} + app-arch/xz-utils + test? ( dev-libs/check ) + doc? ( app-doc/doxygen[dot] )" + +DOCS=(README.markdown ChangeLog) + +src_prepare() { + sed -e '/dist_doc_DATA/d' -i Makefile.am || die + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable debug) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use doc && autotools-utils_src_compile doxygen +} + +src_install() { + use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/docs/html/") + autotools-utils_src_install + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.c + fi +} diff --git a/sys-cluster/libqb/libqb-0.17.2.ebuild b/sys-cluster/libqb/libqb-0.17.2.ebuild new file mode 100644 index 0000000..8b80054 --- /dev/null +++ b/sys-cluster/libqb/libqb-0.17.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils + +DESCRIPTION="Library providing high performance logging, tracing, ipc, and poll" +HOMEPAGE="https://github.com/asalkeld/libqb" +SRC_URI="http://fedorahosted.org/releases/q/u/quarterback/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 hppa ppc ppc64 x86" +IUSE="debug doc examples static-libs test" + +RDEPEND="dev-libs/glib:2" +DEPEND="${RDEPEND} + app-arch/xz-utils + test? ( dev-libs/check ) + doc? ( app-doc/doxygen[dot] )" + +DOCS=(README.markdown ChangeLog) + +src_prepare() { + sed -e '/dist_doc_DATA/d' -i Makefile.am || die + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable debug) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use doc && autotools-utils_src_compile doxygen +} + +src_install() { + use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/docs/html/") + autotools-utils_src_install + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.c + fi +} diff --git a/sys-cluster/libqb/libqb-1.0.1.ebuild b/sys-cluster/libqb/libqb-1.0.1.ebuild new file mode 100644 index 0000000..748d053 --- /dev/null +++ b/sys-cluster/libqb/libqb-1.0.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +inherit autotools-utils + +DESCRIPTION="Library providing high performance logging, tracing, ipc, and poll" +HOMEPAGE="https://github.com/ClusterLabs/libqb" +SRC_URI="https://github.com/ClusterLabs/${PN}/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="debug doc examples static-libs test" + +RDEPEND="dev-libs/glib:2" +DEPEND="${RDEPEND} + app-arch/xz-utils + test? ( dev-libs/check ) + doc? ( app-doc/doxygen[dot] )" + +DOCS=(README.markdown ChangeLog) + +src_prepare() { + sed -e '/dist_doc_DATA/d' -i Makefile.am || die + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable debug) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use doc && autotools-utils_src_compile doxygen +} + +src_install() { + use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/docs/html/") + autotools-utils_src_install + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.c + fi +} diff --git a/sys-cluster/libqb/metadata.xml b/sys-cluster/libqb/metadata.xml new file mode 100644 index 0000000..3b2c851 --- /dev/null +++ b/sys-cluster/libqb/metadata.xml @@ -0,0 +1,11 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + + asalkeld/libqb + + diff --git a/sys-cluster/rgmanager-agents/Manifest b/sys-cluster/rgmanager-agents/Manifest new file mode 100644 index 0000000..23cc727 --- /dev/null +++ b/sys-cluster/rgmanager-agents/Manifest @@ -0,0 +1,3 @@ +DIST rgmanager-agents-3.9.2.tar.gz 1103104 BLAKE2B efa71a2924589d3669fd18598ee753f9fdd1984f61cd366dfaad2a389372a5670795e60bb0589d6db811595a1b8f4611ee2e5f6ea08f7da53aef97354e1f2512 SHA512 6ca12715ebbf43fda8acfe17932f79629f55e98e50f79f846c5d66c067389f72357a14474352cfb3bb545efaedde47ffc31b9f60b4237a374f9b76a586378935 +EBUILD rgmanager-agents-3.9.2.ebuild 1677 BLAKE2B 8571ad7cbf326358a551c04a0bb4fb53a8cf0a36f12e5dfe9e36ffffc9515807f478f0bf00ef20db5513166c57f632af0caf3c8f68a9dde09f887b44e0377972 SHA512 29a7d6e22ca5fe13fb0965da857e526dbd2f2460a2f8e8eb373e581b3fd9cda581e3a26f50f048134600893ff737264f8afa7878aa1635f305dd3fa4b273e1b7 +MISC metadata.xml 317 BLAKE2B 2902ea0425404e375147f5b95289a8d50c59c72f7933a49769622e35842ce1c0e1ee00dfbbc96cc93ec36af5458740e79bc6247c4415802fdf367aa5ec82bd07 SHA512 969b84373fae066dff00e89008411a4fc5e73270126aaf50fe731d54056d04491ad0641ebc7dcc8a8d0cad2c77053b48fa07031b09be4af2ad5d89dd3399525d diff --git a/sys-cluster/rgmanager-agents/metadata.xml b/sys-cluster/rgmanager-agents/metadata.xml new file mode 100644 index 0000000..70466e1 --- /dev/null +++ b/sys-cluster/rgmanager-agents/metadata.xml @@ -0,0 +1,9 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + Resource Manager Agents + diff --git a/sys-cluster/rgmanager-agents/rgmanager-agents-3.9.2.ebuild b/sys-cluster/rgmanager-agents/rgmanager-agents-3.9.2.ebuild new file mode 100644 index 0000000..280fff2 --- /dev/null +++ b/sys-cluster/rgmanager-agents/rgmanager-agents-3.9.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit multilib versionator + +CLUSTER_RELEASE="3.1.5" +MY_PN="resource-agents" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Resource Manager Agents" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/r/e/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="~sys-cluster/rgmanager-${CLUSTER_RELEASE} + ~sys-cluster/cman-${CLUSTER_RELEASE}" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + econf \ + --docdir=/usr/share/doc/${P} \ + --libdir=/usr/$(get_libdir) \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --with-ras-set=rgmanager +} + +src_install() { + default + + # remove useless RHEV check script and log directory + rm -rf "${D}/usr/sbin" "${D}/var" +} + +pkg_postinst() { + if [[ "${ROOT}" != "/" ]] ; then + ewarn "You have to run 'ccs_update_schema' in the chroot-environment" + ewarn "to update the schema file for the cluster configuration." + ewarn "Otherwise you will not be able to define ressources." + else + elog "Running ccs_update_schema to update the configuration file schema" + /usr/sbin/ccs_update_schema -v -f + fi +} + +pkg_postrm() { + if [[ "${ROOT}" != "/" ]] ; then + ewarn "You have to run 'ccs_update_schema' in the chroot-environment" + ewarn "to update the schema file for the cluster configuration." + ewarn "Otherwise you may be able to define ressources even though they" + ewarn "are not present anymore." + else + elog "Running ccs_update_schema to update the configuration file schema" + /usr/sbin/ccs_update_schema -v -f + fi +} diff --git a/sys-cluster/rgmanager/Manifest b/sys-cluster/rgmanager/Manifest new file mode 100644 index 0000000..ad9ed40 --- /dev/null +++ b/sys-cluster/rgmanager/Manifest @@ -0,0 +1,11 @@ +AUX rgmanager-2.03.09-CVE-2010-3389.patch 1404 BLAKE2B da5f4914dad78a60ec34e99c87ad9bc6f288b0735424ab566dc7c0a56bfd4842f1651c4750cfa704debd9cdc61482578484873992b5b3a8403cddca601509c22 SHA512 35a9654e074a04fe1fb8dbce8262dfeab1f011ce611e630ec21c4cc0e7f3c1586a53cdb803e155ebf738c6a2f1e08959f96b004c4d5ac3560c585975e93929c6 +AUX rgmanager-2.0x.conf 122 BLAKE2B 9b542920be739b7d008c7d326a85a90e8df55a557bc291c5e77d1fcd55425993a0a8150cb55fbb23886b9866f67ff17a9970316e46a138318cb70031ea412d1a SHA512 35e51d4ce26c51cf78ddf05aa82c03f168dff74c31aadba8a6435f57e8dd3c9db6a4ce6d7e763d7cef4f0e3c093382cb58c586c5d689129a655dc75543583110 +AUX rgmanager-2.0x.rc 1871 BLAKE2B 12554e199d9b4ce572332f0d762142a8f55c30e717e5b2c94ffc00c8474da5233a4a1bdd6a3d0a71efe6946b857476e5c89be7c27d83a72dd8ca4fc6508c9aba SHA512 f07f5a73b3c193e8ad80d43eeebd48c22bc7e77a3c51dc7a0cd5ffbea0b7bc9c00cdd949b21d640d56dd1726033dda346b76ca60b5ed01668f4dea93d08b8a7b +AUX rgmanager-3.1.5-fix_libxml2.patch 731 BLAKE2B 5d5ec2ea3e241ba8386ab5c93f9ac147d6e947a5e8982ce9bbb42c658c6a68d92450211a7f2928b5091aba1e8a29e52726e840931b9de723cfda13afd3918482 SHA512 1ed141c77d138fd91e9ba290a43c1c2c90caa37746b9450ccd75fa1ec2633a8f718a8dece6f3819e8e8cb34ab6c4f1a1104fc5f52e9bcf664edd0f5b6e8022f9 +AUX rgmanager.confd 157 BLAKE2B cf0afbedd85f1abf927603b63f3c504dcf23add13dfc5afc280d8a86e0167c8921f2d20560b070c37bb08a38336f6bc3946e4c8e580612b0e7b89c90543b81f1 SHA512 ffda3bd80dccb70dd75723dd63185354a69380f076aecbbc5e13cd8949730a139c518e03f8e75aa99d6f12f6d6e7b577030c0763fc7a167002945b166aebc56f +AUX rgmanager.initd 634 BLAKE2B 39708b2d045e05d1b683200d1f2bafed0362eedf7e4740e78c483be9e45ae6b28a7cab3a25c26464339302757cdd5aaf3a899e29c549b20024cc70bc071f5aea SHA512 345146c9f4bc7492a39b6a0b50d4529046843b353a2d66443ca35f8b759d7bec833addca650210b2a699b66012de09410ad86be49ad82cd92f84cd2754254559 +DIST cluster-2.03.09.tar.gz 1784357 BLAKE2B bf024c93fd5ccd9b7410abc2a3bd792c55c3937604d750019a20190753d95d19b2232923a7a76463ccff592bde7fed942aa679af9e39158fef6041258eaf6eb7 SHA512 5dbcf978336a6b7998df0d3dfcff037e1e77e9e69b43d78eb573a65432445e572e69d7783e7874e9edf2632627f02426f428103831e10f5d1f338afa91a62c28 +DIST cluster-3.1.5.tar.gz 651449 BLAKE2B 7abee8c9df113b884a9e168bdcce904100d46e8346accd202c9ca43e6861a79da6d8826776dba657a182d73b84ecc19520b516c29975554c7d149e2b109599a3 SHA512 692888ed55c6bb7ebf3b3e792ec071b5fcff4c35c181c5b0c9296e8222c62e10f8a6344af391fbae8186b39cb31e674632bde77ebcc1fcab758657ae4264634a +EBUILD rgmanager-2.03.09-r1.ebuild 1530 BLAKE2B c4ac73b567d7c7f420421b6e20678344f7cac770cfe9c5444fcfe95ff41cc6b1e6c3f025b18efbd278a5608bef32729c4ba897ef7c925f890c3091fc024f3386 SHA512 4a8d4a655c8107f23e26844b5785fb1d44a9cb427a05e2a2c66ae5ac3b59df7b5f22e948ec2d127117c02ade4d70daaa7bd45e4d5aaa14878b9ce2a734fb4eef +EBUILD rgmanager-3.1.5.ebuild 1400 BLAKE2B 92c92445fa8e13e222bcbcc460cdaf6f99b1fa5cea7cd7b1be81e02c5e0d87374f7dbdfaf0a4592cc423808b92a65d2008339305a2bb8e4e09039c67a8883cd1 SHA512 4292c6b6a31f136a963747698181b995c8e56a509f7db9a92f9c56860fdf7cad47d474a843c5060cd0388bad90c6a30cced047dfc0a497cf09e17697137669a2 +MISC metadata.xml 253 BLAKE2B 2fbd23e1eeca2d6a1474e03aeaa1ad81f16f00141d906ca087f01b67a69e065cac2b3600c2da212ca9fdaf4765788a58ec12b6cd6a45323e5b524dbdb1ce0a77 SHA512 0894860713279dc39bbe7ce3491002710b62c4476198984a0deb6328cb0012c19d7a5546299960bbe600ee240e62a603dd4c4fa04325a753cc0b7c4044c30aba diff --git a/sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch b/sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch new file mode 100644 index 0000000..86e1f13 --- /dev/null +++ b/sys-cluster/rgmanager/files/rgmanager-2.03.09-CVE-2010-3389.patch @@ -0,0 +1,36 @@ +https://bugs.gentoo.org/show_bug.cgi?id=352213 +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598549 + +Patch by Jari Aalto +--- a/rgmanager/src/resources/SAPDatabase ++++ b/rgmanager/src/resources/SAPDatabase +@@ -670,8 +670,11 @@ + fi + + # as root user we need the library path to the SAP kernel to be able to call executables +-if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then +- LD_LIBRARY_PATH=$DIR_EXECUTABLE:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH ++if [ "$DIR_EXECUTABLE" ]; then ++ if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then ++ LD_LIBRARY_PATH="$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" ++ export LD_LIBRARY_PATH ++ fi + fi + sidadm="`echo $SID | tr [:upper:] [:lower:]`adm" + +--- a/rgmanager/src/resources/SAPInstance ++++ b/rgmanager/src/resources/SAPInstance +@@ -382,8 +382,11 @@ + fi + + # as root user we need the library path to the SAP kernel to be able to call sapcontrol +-if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then +- LD_LIBRARY_PATH=$DIR_EXECUTABLE:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH ++if [ "$DIR_EXECUTABLE" ]; then ++ if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then ++ LD_LIBRARY_PATH="$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" ++ export LD_LIBRARY_PATH ++ fi + fi + sidadm="`echo $SID | tr [:upper:] [:lower:]`adm" + diff --git a/sys-cluster/rgmanager/files/rgmanager-2.0x.conf b/sys-cluster/rgmanager/files/rgmanager-2.0x.conf new file mode 100644 index 0000000..ba55870 --- /dev/null +++ b/sys-cluster/rgmanager/files/rgmanager-2.0x.conf @@ -0,0 +1,4 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +RGMGR_OPTS="" diff --git a/sys-cluster/rgmanager/files/rgmanager-2.0x.rc b/sys-cluster/rgmanager/files/rgmanager-2.0x.rc new file mode 100644 index 0000000..d7d77d4 --- /dev/null +++ b/sys-cluster/rgmanager/files/rgmanager-2.0x.rc @@ -0,0 +1,109 @@ +#!/sbin/openrc-run +# Copyright 1999-2005 Gentoo Foundation +# Adaption of the original RedHat script +# Original Copyright (C) 2003 Red Hat, Inc. +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + need cman +} + +# We'd like a reload method as well +opts="${opts} reload" + +ID="Cluster Resource Manager" +RGMGRD=$(which clurgmgrd) +RMTABD=$(which clurmtabd) +CFG_FILE="/etc/cluster/cluster.conf" + +LOG_ERR=3 +LOG_WARNING=4 +LOG_NOTICE=5 +LOG_INFO=6 + +# +# If we're not configured, then don't start anything. +# +[ -f "$CFG_FILE" ] || exit 0 + + +# +# log_and_print +# +function log_and_print() +{ + if [ -z "$1" -o -z "$2" ]; then + return 1; + fi + + clulog -p $$ -n "rgmanager" -s $1 "$2" + echo $2 + + return 0; +} + + +# +# Bring down the cluster on a node. +# +function stop_cluster() +{ + kill -TERM $(pidof $RGMGRD) + + while [ 0 ]; do + if [ -n "`pidof $RGMGRD`" ]; then + while [ -n "`pidof $RGMGRD`" ]; do + sleep 1 + done + einfo "Waiting for $(basename ${RGMGRD})" + else + eend "Services are stopped." + fi + + # Ensure all NFS rmtab daemons are dead. + killall $(basename ${RMTABD}) &> /dev/null + + rm -f /var/run/$(basename ${RGMGRD}).pid + + return 0 + done +} + + + +function start() { + ebegin "Starting cluster resource manager" + start-stop-daemon --start --quiet --exec ${RGMGRD} ${RGMGR_OPTS} + ret=$? + if [ $ret -eq 0 ]; then + touch /var/lock/subsys/rgmanager + fi + eend $ret +} + +function restart() { + pidof ${RGMGRD} &> /dev/null + if [ ${?} -ne 1 ]; then + svc_stop + fi + svc_start +} + +function reload() { + clulog -p ${LOG_NOTICE} "Reloading Resource Configuration." + ebegin "Reloading Resource Configuration " + kill -s HUP $(pidof ${RGMGRD} ) + rv=${?} + eend + exit ${rv} +} + +function stop() { + ebegin "Shutting down cluster resource manager" + if [ -n "$(pidof ${RGMGRD})" ]; then + stop_cluster + fi + rm -f /var/lock/subsys/rgmanager + eend +} diff --git a/sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch b/sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch new file mode 100644 index 0000000..eff23ef --- /dev/null +++ b/sys-cluster/rgmanager/files/rgmanager-3.1.5-fix_libxml2.patch @@ -0,0 +1,23 @@ +* Use double underline as header-protectors to avoid collision with icu's platform.h +* (pulled in via libxml2 when built with icu support) resulting in int64_t defined twice +* (once in icu's ptypes.h and once in stdint.h) +* patch by Tiziano Mueller +--- a/rgmanager/include/platform.h 2011-03-07 19:58:22.000000000 +0100 ++++ b/rgmanager/include/platform.h 2011-03-08 15:59:36.773871936 +0100 +@@ -1,8 +1,8 @@ + /** @file + * Defines for byte-swapping + */ +-#ifndef _PLATFORM_H +-#define _PLATFORM_H ++#ifndef __PLATFORM_H ++#define __PLATFORM_H + + #include + #include +@@ -56,4 +56,4 @@ + #define PACKED __attribute__((packed)) + #endif + +-#endif /* _PLATFORM_H */ ++#endif /* __PLATFORM_H */ diff --git a/sys-cluster/rgmanager/files/rgmanager.confd b/sys-cluster/rgmanager/files/rgmanager.confd new file mode 100644 index 0000000..fa9f668 --- /dev/null +++ b/sys-cluster/rgmanager/files/rgmanager.confd @@ -0,0 +1,7 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE="/var/run/rgmanager.pid" + +RGMGR_OPTS="" + diff --git a/sys-cluster/rgmanager/files/rgmanager.initd b/sys-cluster/rgmanager/files/rgmanager.initd new file mode 100644 index 0000000..caaa86f --- /dev/null +++ b/sys-cluster/rgmanager/files/rgmanager.initd @@ -0,0 +1,34 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Adaption of the original RedHat script +# Original Copyright (C) 2003 Red Hat, Inc. +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net +# need cman +} + +start() { + ebegin "Starting cluster resource manager" + + # recreate run-directory + mkdir -p /var/run/cluster + + start-stop-daemon \ + --start \ + --quiet \ + --exec "/usr/sbin/rgmanager" \ + --pidfile "${PIDFILE}" \ + -- ${RGMGR_OPTS} + eend $ret +} + +stop() { + ebegin "Shutting down cluster resource manager" + start-stop-daemon \ + --stop \ + --pidfile "${PIDFILE}" \ + --retry 0 + eend $? +} diff --git a/sys-cluster/rgmanager/metadata.xml b/sys-cluster/rgmanager/metadata.xml new file mode 100644 index 0000000..4a09d7b --- /dev/null +++ b/sys-cluster/rgmanager/metadata.xml @@ -0,0 +1,8 @@ + + + + + cluster@gentoo.org + Gentoo Cluster Project + + diff --git a/sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild b/sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild new file mode 100644 index 0000000..916463b --- /dev/null +++ b/sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit eutils multilib versionator + +CLUSTER_RELEASE=${PV} +MY_P=cluster-${CLUSTER_RELEASE} + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2).$(get_version_component_range 3)" + +DESCRIPTION="Clustered resource group manager" +HOMEPAGE="https://sourceware.org/cluster/wiki/" +SRC_URI="ftp://sourceware.org/pub/cluster/releases/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="=sys-cluster/ccs-${CLUSTER_RELEASE}* + =sys-cluster/dlm-lib-${CLUSTER_RELEASE}* + =sys-cluster/cman-lib-${CLUSTER_RELEASE}*" + +DEPEND="${RDEPEND} + dev-libs/libxml2[-icu] + =sys-libs/slang-2*" + +S=${WORKDIR}/${MY_P}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-CVE-2010-3389.patch + sed -i -e 's/-Werror//g' src/{clulib,utils,daemons}/Makefile || die +} + +src_configure() { + (cd "${WORKDIR}"/${MY_P}; + ./configure \ + --cc="$(tc-getCC)" \ + --cflags="-Wall" \ + --disable_kernel_check \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --dlmlibdir=/usr/$(get_libdir) \ + --dlmincdir=/usr/include \ + --cmanlibdir=/usr/$(get_libdir) \ + --cmanincdir=/usr/include \ + ) || die "configure problem" +} + +src_compile() { + # There's a problem with -O2 right now, a patch was submitted. + env -u CFLAGS emake -j1 clean all || die +} + +src_install() { + emake DESTDIR="${D}" install || die + + newinitd "${FILESDIR}"/${PN}-2.0x.rc ${PN} || die + newconfd "${FILESDIR}"/${PN}-2.0x.conf ${PN} || die +} diff --git a/sys-cluster/rgmanager/rgmanager-3.1.5.ebuild b/sys-cluster/rgmanager/rgmanager-3.1.5.ebuild new file mode 100644 index 0000000..14508c6 --- /dev/null +++ b/sys-cluster/rgmanager/rgmanager-3.1.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils multilib versionator + +CLUSTER_RELEASE="${PV}" +MY_P="cluster-${CLUSTER_RELEASE}" + +MAJ_PV="$(get_major_version)" +MIN_PV="$(get_version_component_range 2-3)" + +DESCRIPTION="Clustered resource group manager" +HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage" +SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dbus" + +DEPEND="~sys-cluster/libcman-${PV} + ~sys-cluster/liblogthread-${PV} + ~sys-cluster/libccs-${PV} + ~sys-cluster/libdlm-${PV} + dev-libs/libxml2 + =sys-libs/slang-2* + dbus? ( sys-apps/dbus )" +RDEPEND="${DEPEND} + ~sys-cluster/cman-${PV}" + +S=${WORKDIR}/${MY_P}/${PN} + +src_prepare() { + epatch "${FILESDIR}/${P}-fix_libxml2.patch" +} + +src_configure() { + local myopts="" + use dbus || myopts="--disable_dbus" + cd "${WORKDIR}"/${MY_P} + ./configure \ + --cc="$(tc-getCC)" \ + --cflags="-Wall" \ + --libdir=/usr/$(get_libdir) \ + --disable_kernel_check \ + --somajor="$MAJ_PV" \ + --sominor="$MIN_PV" \ + --dlmlibdir=/usr/$(get_libdir) \ + --dlmincdir=/usr/include \ + --cmanlibdir=/usr/$(get_libdir) \ + --cmanincdir=/usr/include \ + ${myopts} \ + || die "configure problem" +} + +src_install() { + default + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/sys-cluster/sanlock/Manifest b/sys-cluster/sanlock/Manifest new file mode 100644 index 0000000..4ced44c --- /dev/null +++ b/sys-cluster/sanlock/Manifest @@ -0,0 +1,7 @@ +AUX sanlock.initd 249 BLAKE2B 18bafba28ab4449c7f25ab2d14b4ac2d3cc89cf79bfb8f802fd180584becde8a5b9d919ac9ab887a4ebdfe8ea64e53f30b3785bc32875ccd2e25fa99a9278081 SHA512 5ed7b2d96cb875e2db0914ec7232fe8443c05de69e07d214ffc0adfafac5123694173373f831c5acf46d11aa4fca304b88e6e4c4ee2fbe5b033d173eea5aec36 +AUX wdmd.initd 261 BLAKE2B 65b393f2f084896d3c17aa0345f9930badeec7a3ee4cc7e47bd0a35e47c18ea2bcf5afdc386c0da98988bc9fae479a68b504c244b55ab389ac7f5304c34282ae SHA512 9c7e980817c1c76868caff229b42a3d70e912abfd8c974bf5b856067bef79fbd3a5942b30bcb7d02869e2eba85e6f6ba3c861e9780046b01b25df1b39661b6c0 +DIST sanlock-3.4.0.tar.xz 157016 BLAKE2B 9d588214d260b88cfa3978e831bcd8086ae80aafc1a04b616274da141140a22c2765083632f29402cdae67cdbbdfcefdaff1539e5d45485c6f271e3ee7f6471a SHA512 8a10faaa5b9ce9f0506ca16620ad482804c9ca860b84a60a6f0b525a256059229a202163d366a57fb59169c0f4f822ced570b42562e412747f6f716509341f19 +DIST sanlock-3.6.0.tar.gz 221666 BLAKE2B 7fe95bd6813c13b76993b343a5ad605c7ba642583987ffa5fef583f34c053ee62b0f9e5979f5b5cb9e4fcde53268ae3debc5ec36b04f6651cc4cb902dff52df9 SHA512 59eb2a6f12e95d54886fdf6d56fd9a6814dd20fe11f39664f2bb82a56326fee48c9465ae30e6d04f970c8f1b0d9c2e22b90d21ab1f657c6d6b61ff9f02332443 +EBUILD sanlock-3.4.0-r1.ebuild 2096 BLAKE2B c6c12a9cdb99d5189158fbf336c61745740e830d94688b60de1d3dcc04a702503fdd5195c5f28d6755e02d875641b4320d5add2a025a15e941883a98f1f3b1e6 SHA512 d346383b90da585faf2b681db960e0b47ed3b444fec6bc582b8d8b4806832ad6a7ecf0a4fa942dd61677097a61b93971b5e43f3983a87d5f400c3491594b5790 +EBUILD sanlock-3.6.0.ebuild 2077 BLAKE2B 387dc7aced94052f625e5bd4676ea4862430c55ff18deb39c7fe5eb5da3ff1897e6c8e9e719bfa76d8f867110e14cd4a3100e6009492f538e64d2479927f7fd0 SHA512 ceadb102f9748192c0e3522dd91c0a55d00c7f511c1f745af97c70c4ba4d20d12177a27b1c0eb572894391dc5264dc222dfd2d56b6a7ab74f4dd69279a84b8c9 +MISC metadata.xml 368 BLAKE2B a15a411ea20eb7649f299e38704b394344194d7526f9bc92b27c0a26760d7dba05b1e5d483ff5f9ce73a6d1cd527a18ac905344a614c8dc31a0c1180b2be07e7 SHA512 2cc3ec3c99cfff2e0c576ab6c7b0a39460af875ba826ce0cf3c5a1a4f0f3def6170753c8d42af2fc7a139ad7f2135e309c3165bde83b4e7574292768c96e8086 diff --git a/sys-cluster/sanlock/files/sanlock.initd b/sys-cluster/sanlock/files/sanlock.initd new file mode 100644 index 0000000..823e5ed --- /dev/null +++ b/sys-cluster/sanlock/files/sanlock.initd @@ -0,0 +1,8 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile="/var/run/sanlock.pid" +command="/usr/sbin/sanlock" +command_args="daemon ${SANLOCKOPTS:-"-U sanlock -G sanlock"}" + diff --git a/sys-cluster/sanlock/files/wdmd.initd b/sys-cluster/sanlock/files/wdmd.initd new file mode 100644 index 0000000..a87106a --- /dev/null +++ b/sys-cluster/sanlock/files/wdmd.initd @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile="/var/run/wdmd.pid" +command="/usr/sbin/wdmd" +command_args="${WDMDOPTS:-"-G sanlock"}" + +start_pre() { + $command -p || exit 1 +} diff --git a/sys-cluster/sanlock/metadata.xml b/sys-cluster/sanlock/metadata.xml new file mode 100644 index 0000000..f854e20 --- /dev/null +++ b/sys-cluster/sanlock/metadata.xml @@ -0,0 +1,12 @@ + + + + + mschiff@gentoo.org + Marc Schiffbauer + + + cluster@gentoo.org + Gentoo Cluster Project + + diff --git a/sys-cluster/sanlock/sanlock-3.4.0-r1.ebuild b/sys-cluster/sanlock/sanlock-3.4.0-r1.ebuild new file mode 100644 index 0000000..e40ef31 --- /dev/null +++ b/sys-cluster/sanlock/sanlock-3.4.0-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +inherit linux-info python-r1 systemd user + +DESCRIPTION="shared storage lock manager" +HOMEPAGE="https://pagure.io/sanlock" +SRC_URI="https://git.fedorahosted.org/cgit/${PN}.git/snapshot/${P}.tar.xz" + +LICENSE="LGPL-2+ GPL-2 GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~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 +} diff --git a/sys-cluster/sanlock/sanlock-3.6.0.ebuild b/sys-cluster/sanlock/sanlock-3.6.0.ebuild new file mode 100644 index 0000000..a2ff725 --- /dev/null +++ b/sys-cluster/sanlock/sanlock-3.6.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,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 ~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 +}