diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2010-03-23 21:51:15 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2010-03-23 21:51:15 +0000 |
commit | 706006b0819dad5c1dbf7797ccfc952ce7940082 (patch) | |
tree | e131b86a459d84c33e5170c4f00465ed9725802e /sys-cluster/corosync | |
parent | Install neroexpress, bug 293543 (diff) | |
download | gentoo-2-706006b0819dad5c1dbf7797ccfc952ce7940082.tar.gz gentoo-2-706006b0819dad5c1dbf7797ccfc952ce7940082.tar.bz2 gentoo-2-706006b0819dad5c1dbf7797ccfc952ce7940082.zip |
add initial version of corosync for testing with clvm
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/corosync')
-rw-r--r-- | sys-cluster/corosync/ChangeLog | 10 | ||||
-rw-r--r-- | sys-cluster/corosync/corosync-1.2.0.ebuild | 34 | ||||
-rw-r--r-- | sys-cluster/corosync/files/corosync.initd | 23 | ||||
-rw-r--r-- | sys-cluster/corosync/metadata.xml | 17 |
4 files changed, 84 insertions, 0 deletions
diff --git a/sys-cluster/corosync/ChangeLog b/sys-cluster/corosync/ChangeLog new file mode 100644 index 000000000000..36f24402e09a --- /dev/null +++ b/sys-cluster/corosync/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-cluster/corosync +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/ChangeLog,v 1.1 2010/03/23 21:51:14 cardoe Exp $ + +*corosync-1.2.0 (23 Mar 2010) + + 23 Mar 2010; Doug Goldstein <cardoe@gentoo.org> +corosync-1.2.0.ebuild, + +files/corosync.initd, +metadata.xml: + add initial version of corosync for testing with clvm + diff --git a/sys-cluster/corosync/corosync-1.2.0.ebuild b/sys-cluster/corosync/corosync-1.2.0.ebuild new file mode 100644 index 000000000000..9a14791bbf64 --- /dev/null +++ b/sys-cluster/corosync/corosync-1.2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/corosync-1.2.0.ebuild,v 1.1 2010/03/23 21:51:14 cardoe Exp $ + +EAPI=3 + +DESCRIPTION="Corosync Cluster Engine" +HOMEPAGE="http://corosync.org" +SRC_URI="ftp://ftp:downloads@ftp.corosync.org/downloads/${PN}-1.2.0/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+nss" + +RDEPEND="nss? ( dev-libs/nss )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + sys-apps/groff" + +src_configure() { + econf --disable-rdma $(use_enable nss) || die "econf failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + rm "${D}"/etc/init.d/corosync + newinitd "${FILESDIR}"/corosync.initd corosync +} diff --git a/sys-cluster/corosync/files/corosync.initd b/sys-cluster/corosync/files/corosync.initd new file mode 100644 index 000000000000..ed57796c9ea4 --- /dev/null +++ b/sys-cluster/corosync/files/corosync.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/files/corosync.initd,v 1.1 2010/03/23 21:51:15 cardoe Exp $ + +depend() { + need net + use syslog +} + +start() { + ebegin "Starting Corosync Cluster Engine" + start-stop-daemon --start -q --exec /usr/sbin/corosync \ + --pidfile /var/run/corosync.pid --make-pidfile --background \ + -- -f + eend $? +} + +stop() { + ebegin "Stopping Corosync Cluster Engine" + start-stop-daemon --stop -q --pidfile /var/run/corosync.pid + eend $? +} diff --git a/sys-cluster/corosync/metadata.xml b/sys-cluster/corosync/metadata.xml new file mode 100644 index 000000000000..d0326fa1becc --- /dev/null +++ b/sys-cluster/corosync/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>ha-cluster</herd> + <maintainer> + <email>cardoe@gentoo.org</email> + <name>Doug Goldstein</name> + </maintainer> + <maintainer> + <email>robbat2@gentoo.org</email> + <name>Robin Johnson</name> + </maintainer> + <use> + <flag name='nss'>Enable NSS support for cryptography</flag> + </use> +</pkgmetadata> + |