summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2008-02-14 18:37:42 +0000
committerWolfram Schlich <wschlich@gentoo.org>2008-02-14 18:37:42 +0000
commit127dc79bdf84e9fc9012b3b25f7e5931f230b6bf (patch)
tree248192ec4350cbeab915b09faf39b2ff64d95134 /sys-cluster/openais
parentalpha/ia64 stable wrt #209465 (diff)
downloadhistorical-127dc79bdf84e9fc9012b3b25f7e5931f230b6bf.tar.gz
historical-127dc79bdf84e9fc9012b3b25f7e5931f230b6bf.tar.bz2
historical-127dc79bdf84e9fc9012b3b25f7e5931f230b6bf.zip
initial import
Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'sys-cluster/openais')
-rw-r--r--sys-cluster/openais/ChangeLog13
-rw-r--r--sys-cluster/openais/Manifest10
-rw-r--r--sys-cluster/openais/files/Makefile-ARCH.patch11
-rw-r--r--sys-cluster/openais/files/Makefile-LIBDIR.patch19
-rw-r--r--sys-cluster/openais/files/Makefile-install.patch10
-rw-r--r--sys-cluster/openais/files/Makefile.inc-FLAGS.patch24
-rwxr-xr-xsys-cluster/openais/files/ais.initd23
-rw-r--r--sys-cluster/openais/files/openais.conf44
-rw-r--r--sys-cluster/openais/metadata.xml23
-rw-r--r--sys-cluster/openais/openais-0.82.ebuild62
10 files changed, 239 insertions, 0 deletions
diff --git a/sys-cluster/openais/ChangeLog b/sys-cluster/openais/ChangeLog
new file mode 100644
index 000000000000..e073c98d997e
--- /dev/null
+++ b/sys-cluster/openais/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sys-cluster/openais
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openais/ChangeLog,v 1.1 2008/02/14 18:37:41 wschlich Exp $
+
+*openais-0.82 (14 Feb 2008)
+
+ 14 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/Makefile.inc-FLAGS.patch, +files/Makefile-ARCH.patch,
+ +files/Makefile-LIBDIR.patch, +files/Makefile-install.patch,
+ +files/ais.initd, +files/openais.conf, +metadata.xml,
+ +openais-0.82.ebuild:
+ initial import
+
diff --git a/sys-cluster/openais/Manifest b/sys-cluster/openais/Manifest
new file mode 100644
index 000000000000..b6521cb7e31a
--- /dev/null
+++ b/sys-cluster/openais/Manifest
@@ -0,0 +1,10 @@
+AUX Makefile-ARCH.patch 310 RMD160 0de6d7a374244a94403ee9bae986665aadf6961b SHA1 a03e1f692bba004b8e5ca92b4c7a46609ce76621 SHA256 56b704911a1dec1bebd224963ad9a558f22b1bbc2edad6fda72d6951e304f8d1
+AUX Makefile-LIBDIR.patch 612 RMD160 61faaa4bc8a131e3678b84cacb1888b8283f4846 SHA1 67fadcebf9f27fb3a8a6df3f8190af8bb96eda41 SHA256 ef47cddbb3e818109a6db31d14d0ae1138801420104a67241aad1057e332a9b4
+AUX Makefile-install.patch 550 RMD160 6ac244e612a8d772110acbb8695ca20a9b78d208 SHA1 08f74c320269a55332b86ecdfcab05b867ed9340 SHA256 7d92c37621ffb0e91cd62cce0d31fc9373cbb3e09ca3917ab412a04391e0d16c
+AUX Makefile.inc-FLAGS.patch 543 RMD160 79bf38f396aa117ebbd6bae2dccb56ef89050d0e SHA1 9b19ef59f5a9b53e58a378a6fe17b9522bc63f41 SHA256 35c28501c6ea3942fb29ca9736e386f06738dc576c4931ae10964918d080d479
+AUX ais.initd 526 RMD160 3b4b13fd02b4e94d6fefb5c6433ff64a35ac2c38 SHA1 83fba2be2091b2ee1dddf1ca26cf703b0612f21b SHA256 c9f958af537abc4de573ac9991bbed45d5107252e6a21b7bfe5f313268ab7ec5
+AUX openais.conf 586 RMD160 568405f8e0eb839361c3018369a1e5244589da26 SHA1 42f1deabf9af30bbdd29ca3b34cf83ae33d77bc1 SHA256 18e9290eca7bc28e2d99e62148deac9e0c45659c381b64c990d6354b06804191
+DIST openais-0.82.tar.gz 556910 RMD160 018110f43a73544719148306ed5913174851bed7 SHA1 1e48e94b0371a9badf430ceb0024b266a94627d1 SHA256 9eab207260e8d476e841eb83930f9e20c0092f524b579f9344b98f35c857b498
+EBUILD openais-0.82.ebuild 1915 RMD160 672021e8404546877cc84acc4fbb6399c062b3a2 SHA1 6b12b9cc6ff99cc222bf443a30f6bed05067c4f7 SHA256 999b54366db30e04d4ca8fd794cabd608f715153ca2590d40c6013a649850f93
+MISC ChangeLog 519 RMD160 88fd684ea1244951220b3bfcdc45926801f5a843 SHA1 83d0718bd825354c4af8beae34b0386ea02e9eee SHA256 a20ff4409671ab0d968b5c1f2fb3c8d1e0cf642705883cb887517a93e9e3f191
+MISC metadata.xml 948 RMD160 f80004810bbc4b6b0d5d576aa24bc477743362cb SHA1 f44da23c55b7e4dc597c005cd712fd53948d6dab SHA256 f28f29c0afa1ae746a290e6f4694b53b622f5453b9c9024265e26f84fb6e37a6
diff --git a/sys-cluster/openais/files/Makefile-ARCH.patch b/sys-cluster/openais/files/Makefile-ARCH.patch
new file mode 100644
index 000000000000..40ba29051b4d
--- /dev/null
+++ b/sys-cluster/openais/files/Makefile-ARCH.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2008-02-14 18:23:15.451804237 +0100
++++ Makefile 2008-02-14 18:23:36.588373784 +0100
+@@ -39,7 +39,7 @@
+ MANDIR=$(PREFIX)/share/man
+ ETCDIR=/etc
+ LCRSODIR=$(PREFIX)/libexec/lcrso
+-ARCH=$(shell uname -p)
++ARCH=$(shell uname -m)
+
+ ifeq (,$(findstring 64,$(ARCH)))
+ LIBDIR=$(PREFIX)/lib/openais
diff --git a/sys-cluster/openais/files/Makefile-LIBDIR.patch b/sys-cluster/openais/files/Makefile-LIBDIR.patch
new file mode 100644
index 000000000000..0d9e2b01c763
--- /dev/null
+++ b/sys-cluster/openais/files/Makefile-LIBDIR.patch
@@ -0,0 +1,19 @@
+--- Makefile.orig 2008-02-14 18:56:35.000000000 +0100
++++ Makefile 2008-02-14 18:56:43.000000000 +0100
+@@ -88,7 +88,6 @@
+ mkdir -p $(DESTDIR)$(MANDIR)/man3
+ mkdir -p $(DESTDIR)$(MANDIR)/man5
+ mkdir -p $(DESTDIR)$(MANDIR)/man8
+- mkdir -p $(DESTDIR)$(ETCDIR)/ld.so.conf.d
+
+
+ ln -sf libtotem_pg.so.2.0.0 exec/libtotem_pg.so
+@@ -111,8 +110,6 @@
+ fi \
+ done
+
+- echo $(LIBDIR) > $(DESTDIR)$(ETCDIR)/ld.so.conf.d/openais-$(ARCH).conf
+-
+ install -m 755 exec/*lcrso $(DESTDIR)$(LCRSODIR)
+ install -m 755 exec/aisexec $(DESTDIR)$(SBINDIR)
+ install -m 700 exec/keygen $(DESTDIR)$(SBINDIR)/ais-keygen
diff --git a/sys-cluster/openais/files/Makefile-install.patch b/sys-cluster/openais/files/Makefile-install.patch
new file mode 100644
index 000000000000..29705e2c6c3a
--- /dev/null
+++ b/sys-cluster/openais/files/Makefile-install.patch
@@ -0,0 +1,10 @@
+--- Makefile.orig 2007-12-15 18:41:23.000000000 +0100
++++ Makefile 2007-12-15 19:03:15.000000000 +0100
+@@ -138,7 +136,6 @@
+ install -m 644 exec/service.h $(DESTDIR)$(INCLUDEDIR_SERVICE)
+ install -m 644 exec/timer.h $(DESTDIR)$(INCLUDEDIR_SERVICE)
+ install -m 644 exec/objdb.h $(DESTDIR)$(INCLUDEDIR_SERVICE)
+- install -m 644 exec/print.h $(DESTDIR)$(INCLUDEDIR_SERVICE)
+ install -m 644 exec/config.h $(DESTDIR)$(INCLUDEDIR_SERVICE)
+ install -m 644 include/swab.h $(DESTDIR)$(INCLUDEDIR_SERVICE)
+ install -m 644 man/*.3 $(DESTDIR)$(MANDIR)/man3
diff --git a/sys-cluster/openais/files/Makefile.inc-FLAGS.patch b/sys-cluster/openais/files/Makefile.inc-FLAGS.patch
new file mode 100644
index 000000000000..8dbecd8920e7
--- /dev/null
+++ b/sys-cluster/openais/files/Makefile.inc-FLAGS.patch
@@ -0,0 +1,24 @@
+--- Makefile.inc.orig 2007-12-15 18:44:00.000000000 +0100
++++ Makefile.inc 2007-12-15 19:29:01.000000000 +0100
+@@ -44,9 +44,9 @@
+
+ # default CFLAGS, LDFLAGS
+ #
+-CFLAGS =
+-LDFLAGS =
+-DYFLAGS =
++CFLAGS ?=
++LDFLAGS ?=
++DYFLAGS ?=
+
+ # Adding the TS_CLASS flag enables not being scheduled RR
+ #CFLAGS += -DTS_CLASS
+@@ -54,7 +54,7 @@
+ # build CFLAGS, LDFLAGS
+ #
+ ifeq (${OPENAIS_BUILD}, RELEASE)
+- CFLAGS += -O3 -Wall
++ CFLAGS += -Wall
+ # -Wstrict-aliasing=2 TODO sameday fix all of these
+ ifndef OPENAIS_PROFILE
+ CFLAGS += -fomit-frame-pointer
diff --git a/sys-cluster/openais/files/ais.initd b/sys-cluster/openais/files/ais.initd
new file mode 100755
index 000000000000..621c7f4d2228
--- /dev/null
+++ b/sys-cluster/openais/files/ais.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openais/files/ais.initd,v 1.1 2008/02/14 18:37:42 wschlich Exp $
+
+AISEXEC=/sbin/aisexec
+
+depend() {
+ need net
+ use logger dns
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec ${AISEXEC}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec ${AISEXEC}
+ eend $?
+}
diff --git a/sys-cluster/openais/files/openais.conf b/sys-cluster/openais/files/openais.conf
new file mode 100644
index 000000000000..479653b2d6d7
--- /dev/null
+++ b/sys-cluster/openais/files/openais.conf
@@ -0,0 +1,44 @@
+# Please read the openais.conf.5 manual page
+
+totem {
+ version: 2
+ secauth: off
+ threads: 0
+ nodeid: 1
+ interface {
+ ringnumber: 0
+ bindnetaddr: 127.0.0.0
+ mcastaddr: 226.94.1.1
+ mcastport: 5405
+ }
+}
+
+logging {
+ to_stderr: no
+ to_syslog: yes
+ to_file: no
+ logfile: /var/log/ais/openais.log
+ debug: off
+ timestamp: on
+ fileline: off
+# logger {
+# ident: AMF
+# ident: CFG
+# ident: CKPT
+# ident: CLM
+# ident: CPG
+# ident: EVS
+# ident: EVT
+# ident: LCK
+# ident: MSG
+# debug: off
+# tags: enter|leave|trace1|trace2|trace3|trace4|trace6
+# }
+}
+
+event {
+}
+
+amf {
+ mode: disabled
+}
diff --git a/sys-cluster/openais/metadata.xml b/sys-cluster/openais/metadata.xml
new file mode 100644
index 000000000000..4402cbc50fdf
--- /dev/null
+++ b/sys-cluster/openais/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+</maintainer>
+<longdescription>
+The OpenAIS Standards Based Cluster Framework is an OSI Certified
+implementation of the Service Availability Forum Application Interface
+Specification (AIS). Other cluster APIs are also available for developer use.
+
+The Application Interface Specification is a software API and policies which
+are used to develop applications that maintain service during faults.
+Restarting and failover of applications is also provided for those deploying
+applications which may not be modified.
+
+The OpenAIS software is designed to allow any third party to implement plugin
+cluster services using the infrastructure provided.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-cluster/openais/openais-0.82.ebuild b/sys-cluster/openais/openais-0.82.ebuild
new file mode 100644
index 000000000000..4390606e5591
--- /dev/null
+++ b/sys-cluster/openais/openais-0.82.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openais/openais-0.82.ebuild,v 1.1 2008/02/14 18:37:41 wschlich Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+IUSE="debug"
+DESCRIPTION="Open Application Interface Specification cluster framework"
+HOMEPAGE="http://www.openais.org/"
+#SRC_URI="ftp://ftp%40openais%2Eorg:downloads@openais.org/downloads/${P}/${P}.tar.gz"
+SRC_URI="http://devresources.linux-foundation.org/dev/openais/downloads/${P}/${P}.tar.gz"
+LICENSE="BSD public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+DEPEND="virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/Makefile-ARCH.patch
+ epatch "${FILESDIR}"/Makefile-LIBDIR.patch
+ epatch "${FILESDIR}"/Makefile-install.patch
+ epatch "${FILESDIR}"/Makefile.inc-FLAGS.patch
+}
+
+pkg_setup() {
+ enewgroup ais
+ enewuser ais -1 -1 -1 ais
+}
+
+src_compile() {
+ useq debug && append-flags -O0 -ggdb -Wall -DDEBUG
+ emake LIBDIR="/usr/$(get_libdir)/openais" \
+ CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake LIBDIR="/usr/$(get_libdir)/openais" \
+ DESTDIR="${D}" install || die "make install failed"
+
+ # http://bugs.gentoo.org/show_bug.cgi?id=160847#c16
+ dosym /usr/sbin/aisexec /sbin/aisexec
+
+ dodir /etc/env.d
+ echo LDPATH="/usr/$(get_libdir)/openais" > "${D}"/etc/env.d/03openais
+
+ newinitd "${FILESDIR}"/ais.initd ais
+
+ diropts -o ais -g ais -m 0750
+ keepdir /var/log/ais
+
+ exeinto /usr/libexec/openais
+ doexe exec/openais-instantiate
+ doexe test/{ckptbench,ckptbenchth,ckpt-rd,ckptstress,ckpt-wr,clc_cli_script}
+ doexe test/{cpgbench,evsbench,evtbench,logsys_s,logsys_t1,logsys_t2}
+ doexe test/{publish,subscription,testamf1,testckpt,testclm,testclm2,testcpg,testcpg2}
+ doexe test/{testevs,testevt,testlck,testmsg,unlink}
+
+ dosbin test/openais-cfgtool
+
+ dodoc CHANGELOG QUICKSTART README.* SECURITY TODO conf/*
+}