summaryrefslogtreecommitdiff
path: root/sys-cluster/ccs
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/ccs')
-rw-r--r--sys-cluster/ccs/Manifest6
-rw-r--r--sys-cluster/ccs/ccs-2.03.09.ebuild61
-rw-r--r--sys-cluster/ccs/files/ccs-2.03.09-mkostemp.patch11
-rw-r--r--sys-cluster/ccs/metadata.xml8
4 files changed, 86 insertions, 0 deletions
diff --git a/sys-cluster/ccs/Manifest b/sys-cluster/ccs/Manifest
new file mode 100644
index 000000000000..440ea4d4076f
--- /dev/null
+++ b/sys-cluster/ccs/Manifest
@@ -0,0 +1,6 @@
+AUX ccs-2.03.09-mkostemp.patch 477 SHA256 f66430b0a958911e60a4e7ebad7b511c946a8d26d80a4fa5fe3694ce890f3ec2 SHA512 5c90b896829457d17294e44eeb70418128b84c701908a78c74b5c2bae2eb45ba18c17412c9415671757070f77ed0607d8f6c8c21992b568552af9307ea515397 WHIRLPOOL ff538f5fd9f6570267d803013b381bd3d09b6dfb093a4222e7e6af3d603286c1506e4bf3b515f803185e9f19b7fb66f94706830dedcf73f05d09efc91d9a054e
+DIST cluster-2.03.09.tar.gz 1784357 SHA256 b6d6f35f58b2f8628c369391e0fd01b1803af40029ec1e6ef88865dda38b855f SHA512 5dbcf978336a6b7998df0d3dfcff037e1e77e9e69b43d78eb573a65432445e572e69d7783e7874e9edf2632627f02426f428103831e10f5d1f338afa91a62c28 WHIRLPOOL 30158d495677d9cd0d8a8915dd062f75b60ca99a5d937fa10862d746608bab0e500565e94d14f6b2a4f6e8dc13674d342347aecd24546df6d3f578c0cf87113d
+EBUILD ccs-2.03.09.ebuild 1381 SHA256 0ad5784877c7e7d22dccc1637bf32b60bda4c7320325972939486afa40001538 SHA512 01ba1bc9f77b3f41b00f3ab72e80014480f7df16c16b1645fb3ce8adcb4396aea3655a10295480293f08d1e48820f768d95fd388a158ef2fb79f4af8ea66cb9a WHIRLPOOL eda588ef2fc4d3551b15952f284104b1bf444bc57ee83eee8ff3eafc15e41fe2d25accc7c968f5d8bbfb643850205efd699616f0d8d4a9693ff6cff3967e2013
+MISC ChangeLog 3029 SHA256 b8418f9a69bd5e8d223ac2321d59bfc29b06046f118a9436c4883269f0c5d6ae SHA512 10c357c08fc0f37ed93ee5435b37cdb313d53de17530c1d5435b450573d1d80f4f319a552dadc645941038ead058f869cf165f4d4d4de9a68a1b641e90efe9a6 WHIRLPOOL 7a1f7feab5c1b7ee118653a21d9a008c565ef67fd10f333ed4f78ea80fa2702ec2efecec2edf9e24c2211d82133aeec7a17d5e267eb7c2dc1bffd8798006f57e
+MISC ChangeLog-2015 5352 SHA256 2c377ac0f728683e6c896bc7040865d072a0d2158f6db882559ce2b16f0701ad SHA512 8efdeccc1c9d94dc793928ac387b89c40cf4d161a0e215545c0cbd778a24711cb0aef031934088b45f49600905191b8a26cabbf13d6171c40cbc4ab1fa4f03d9 WHIRLPOOL 9ee40db7b5af51623950e80728f2887e45b42c5c00c37c8e67e4c6bd2192f635681ffc76e917504ad2ec95d33a45be0a268de475e9d842252800dfc577bccec9
+MISC metadata.xml 253 SHA256 5030a84d36a522ae62530f6406dbda5099255457f76b3ed419dcffc6d7383667 SHA512 0894860713279dc39bbe7ce3491002710b62c4476198984a0deb6328cb0012c19d7a5546299960bbe600ee240e62a603dd4c4fa04325a753cc0b7c4044c30aba WHIRLPOOL c55ba84102cbd078e50dd719902811669b3913122f44e982c90039b27067446810d881e73a22ed410edc41a409a273fd355be8a6d627bb0e67717b6a33d5fe1e
diff --git a/sys-cluster/ccs/ccs-2.03.09.ebuild b/sys-cluster/ccs/ccs-2.03.09.ebuild
new file mode 100644
index 000000000000..2f2b1c7f1307
--- /dev/null
+++ b/sys-cluster/ccs/ccs-2.03.09.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils 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="cluster configuration system to manage the cluster config file"
+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/cman-lib-${CLUSTER_RELEASE}*"
+DEPEND="${RDEPEND}
+ dev-libs/libxml2
+ sys-libs/zlib"
+
+S="${WORKDIR}/${MY_P}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/ccs-2.03.09-mkostemp.patch || die
+}
+
+src_compile() {
+ (cd "${WORKDIR}"/${MY_P};
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cflags="-Wall" \
+ --disable_kernel_check \
+ --somajor="$MAJ_PV" \
+ --sominor="$MIN_PV" \
+ --cmanlibdir=/usr/lib \
+ --cmanincdir=/usr/include \
+ ) || die "configure problem"
+
+ # fix the manual pages have executable bit
+ sed -i -e '
+ /\tinstall -d/s/install/& -m 0755/; t
+ /\tinstall/s/install/& -m 0644/' \
+ man/Makefile
+
+ #rm -f "${S}"/lib/log.c || die
+
+ emake clean || die "clean problem"
+ emake || die "compile problem"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install problem"
+}
diff --git a/sys-cluster/ccs/files/ccs-2.03.09-mkostemp.patch b/sys-cluster/ccs/files/ccs-2.03.09-mkostemp.patch
new file mode 100644
index 000000000000..42e2de6ac4ff
--- /dev/null
+++ b/sys-cluster/ccs/files/ccs-2.03.09-mkostemp.patch
@@ -0,0 +1,11 @@
+--- cluster-2.03.09/ccs/ccs_tool/upgrade.c.orig 2008-11-13 01:31:14.000000000 +0100
++++ cluster-2.03.09/ccs/ccs_tool/upgrade.c 2008-11-13 01:31:34.000000000 +0100
+@@ -223,7 +223,7 @@
+ memset(tmp_file, 0, 128);
+ sprintf(tmp_file, "/tmp/ccs_tool_tmp_XXXXXX");
+
+- tmp_fd = mkostemp(tmp_file, O_RDWR | O_CREAT |O_TRUNC);
++ tmp_fd = mkstemp(tmp_file);
+ if(tmp_fd < 0){
+ fprintf(stderr, "Unable to create temporary archive: %s\n", strerror(errno));
+ error = -errno;
diff --git a/sys-cluster/ccs/metadata.xml b/sys-cluster/ccs/metadata.xml
new file mode 100644
index 000000000000..4a09d7ba8d61
--- /dev/null
+++ b/sys-cluster/ccs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+</pkgmetadata>