1 |
commit: 24b0bc25c7844cc26b11eb62b9462706e3e69a7e |
2 |
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 12:39:20 2016 +0000 |
4 |
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 12:39:36 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24b0bc25 |
7 |
|
8 |
sys-cluster/resource-agents: restore 1.0.4-r1 for hppa only |
9 |
|
10 |
sys-cluster/resource-agents/files/1.0.3-docs.patch | 31 +++++++++++ |
11 |
.../files/1.0.3-respect_cflags.patch | 11 ++++ |
12 |
.../resource-agents/files/1.0.4-dosymlinks.patch | 25 +++++++++ |
13 |
.../resource-agents-1.0.4-r1.ebuild | 62 ++++++++++++++++++++++ |
14 |
4 files changed, 129 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/resource-agents/files/1.0.3-docs.patch b/sys-cluster/resource-agents/files/1.0.3-docs.patch |
17 |
new file mode 100644 |
18 |
index 00000000..c406939 |
19 |
--- /dev/null |
20 |
+++ b/sys-cluster/resource-agents/files/1.0.3-docs.patch |
21 |
@@ -0,0 +1,31 @@ |
22 |
+--- configure.in |
23 |
++++ configure.in |
24 |
+@@ -481,10 +481,12 @@ |
25 |
+ AC_DEFINE_UNQUOTED(POWEROFF_CMD, "$POWEROFF_CMD", path to the poweroff command) |
26 |
+ AC_DEFINE_UNQUOTED(POWEROFF_OPTIONS, "$POWEROFF_OPTIONS", poweroff options) |
27 |
+ |
28 |
+-AC_PATH_PROGS(XSLTPROC, xsltproc) |
29 |
+-AM_CONDITIONAL(BUILD_DOC, test "x$XSLTPROC" != "x" ) |
30 |
+-if test "x$XSLTPROC" = "x"; then |
31 |
+- AC_MSG_WARN([xsltproc not installed, unable to (re-)build manual pages]) |
32 |
+-fi |
33 |
++AC_ARG_ENABLE([doc], |
34 |
++ AS_HELP_STRING([--enable-doc],[Build documentation])) |
35 |
++ |
36 |
++AS_IF([test "x$enable_doc" = "xyes"], [ |
37 |
++ AC_PATH_PROGS(XSLTPROC, xsltproc) |
38 |
++]) |
39 |
++AM_CONDITIONAL([BUILD_DOC], [test "x$enable_doc" = "xyes"] ) |
40 |
+ AC_SUBST(XSLTPROC) |
41 |
+ |
42 |
+--- doc/Makefile.am |
43 |
++++ doc/Makefile.am 2010-06-20 22:04:12.649433890 +0000 |
44 |
+@@ -18,7 +18,7 @@ |
45 |
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
46 |
+ # |
47 |
+ |
48 |
+-STYLESHEET_PREFIX ?= http://docbook.sourceforge.net/release/xsl/current |
49 |
++STYLESHEET_PREFIX ?= /usr/share/sgml/docbook/xsl-stylesheets/ |
50 |
+ MANPAGES_STYLESHEET ?= $(STYLESHEET_PREFIX)/manpages/docbook.xsl |
51 |
+ HTML_STYLESHEET ?= $(STYLESHEET_PREFIX)/xhtml/docbook.xsl |
52 |
+ FO_STYLESHEET ?= $(STYLESHEET_PREFIX)/fo/docbook.xsl |
53 |
|
54 |
diff --git a/sys-cluster/resource-agents/files/1.0.3-respect_cflags.patch b/sys-cluster/resource-agents/files/1.0.3-respect_cflags.patch |
55 |
new file mode 100644 |
56 |
index 00000000..e22603a |
57 |
--- /dev/null |
58 |
+++ b/sys-cluster/resource-agents/files/1.0.3-respect_cflags.patch |
59 |
@@ -0,0 +1,11 @@ |
60 |
+--- configure.in |
61 |
++++ configure.in |
62 |
+@@ -646,8 +646,6 @@ |
63 |
+ CFLAGS="$CFLAGS -g" |
64 |
+ enable_fatal_warnings=no |
65 |
+ else |
66 |
+- CFLAGS="$CFLAGS -ggdb3 -O0" |
67 |
+- |
68 |
+ # We had to eliminate -Wnested-externs because of libtool changes |
69 |
+ # Also remove -Waggregate-return because we use one libnet |
70 |
+ # call which returns a struct |
71 |
|
72 |
diff --git a/sys-cluster/resource-agents/files/1.0.4-dosymlinks.patch b/sys-cluster/resource-agents/files/1.0.4-dosymlinks.patch |
73 |
new file mode 100644 |
74 |
index 00000000..3fe17fc |
75 |
--- /dev/null |
76 |
+++ b/sys-cluster/resource-agents/files/1.0.4-dosymlinks.patch |
77 |
@@ -0,0 +1,25 @@ |
78 |
+--- a/configure.in 2011-02-28 11:51:26.198614376 +0100 |
79 |
++++ b/configure.in 2011-02-28 11:59:10.201953304 +0100 |
80 |
+@@ -79,6 +79,7 @@ |
81 |
+ dnl =============================================== |
82 |
+ dnl Helpers |
83 |
+ dnl =============================================== |
84 |
++AC_PROG_LN_S |
85 |
+ cc_supports_flag() { |
86 |
+ local CFLAGS="$@" |
87 |
+ AC_MSG_CHECKING(whether $CC supports "$@") |
88 |
+--- a/Makefile.am 2011-02-28 11:51:26.188614089 +0100 |
89 |
++++ b/Makefile.am 2011-02-28 13:36:15.860697714 +0100 |
90 |
+@@ -24,6 +24,12 @@ |
91 |
+ install-exec-local: |
92 |
+ $(INSTALL) -d -m 1755 $(DESTDIR)$(HA_RSCTMPDIR) |
93 |
+ |
94 |
++ $(LN_S) ../../lib/heartbeat/ocf-binaries $(DESTDIR)${OCF_RA_DIR}/heartbeat/.ocf-binaries |
95 |
++ $(LN_S) ../../lib/heartbeat/ocf-directories $(DESTDIR)${OCF_RA_DIR}/heartbeat/.ocf-directories |
96 |
++ $(LN_S) ../../lib/heartbeat/ocf-returncodes $(DESTDIR)${OCF_RA_DIR}/heartbeat/.ocf-returncodes |
97 |
++ $(LN_S) ../../lib/heartbeat/ocf-shellfuncs $(DESTDIR)${OCF_RA_DIR}/heartbeat/.ocf-shellfuncs |
98 |
++ |
99 |
++ |
100 |
+ dist-clean-local: |
101 |
+ rm -f autoconf automake autoheader $(TARFILE) |
102 |
+ |
103 |
|
104 |
diff --git a/sys-cluster/resource-agents/resource-agents-1.0.4-r1.ebuild b/sys-cluster/resource-agents/resource-agents-1.0.4-r1.ebuild |
105 |
new file mode 100644 |
106 |
index 00000000..7ed2c40 |
107 |
--- /dev/null |
108 |
+++ b/sys-cluster/resource-agents/resource-agents-1.0.4-r1.ebuild |
109 |
@@ -0,0 +1,62 @@ |
110 |
+# Copyright 1999-2012 Gentoo Foundation |
111 |
+# Distributed under the terms of the GNU General Public License v2 |
112 |
+# $Id$ |
113 |
+ |
114 |
+EAPI="2" |
115 |
+ |
116 |
+MY_P="${P/resource-}" |
117 |
+inherit autotools multilib eutils base |
118 |
+ |
119 |
+DESCRIPTION="Resources pack for Heartbeat / Pacemaker" |
120 |
+HOMEPAGE="http://www.linux-ha.org/wiki/Resource_Agents" |
121 |
+SRC_URI="http://hg.linux-ha.org/agents/archive/${MY_P}.tar.bz2" |
122 |
+ |
123 |
+LICENSE="GPL-2" |
124 |
+SLOT="0" |
125 |
+KEYWORDS="hppa" |
126 |
+IUSE="doc libnet" |
127 |
+ |
128 |
+DEPEND="sys-apps/iproute2 |
129 |
+ sys-cluster/cluster-glue |
130 |
+ !<sys-cluster/heartbeat-3.0 |
131 |
+ libnet? ( net-libs/libnet:1.1 )" |
132 |
+RDEPEND="${DEPEND}" |
133 |
+ |
134 |
+S="${WORKDIR}/Cluster-Resource-Agents-${MY_P}" |
135 |
+ |
136 |
+PATCHES=( |
137 |
+ "${FILESDIR}/1.0.3-docs.patch" |
138 |
+ "${FILESDIR}/1.0.3-respect_cflags.patch" |
139 |
+ "${FILESDIR}/1.0.4-dosymlinks.patch" |
140 |
+) |
141 |
+ |
142 |
+src_prepare() { |
143 |
+ base_src_prepare |
144 |
+ eautoreconf |
145 |
+} |
146 |
+ |
147 |
+src_configure() { |
148 |
+ econf \ |
149 |
+ --disable-dependency-tracking \ |
150 |
+ --disable-fatal-warnings \ |
151 |
+ --localstatedir=/var \ |
152 |
+ --docdir=/usr/share/doc/${PF} \ |
153 |
+ --libdir=/usr/$(get_libdir) \ |
154 |
+ --with-ocf-root=/usr/$(get_libdir)/ocf \ |
155 |
+ $(use_enable doc) \ |
156 |
+ $(use_enable libnet) |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ base_src_install |
161 |
+ rm -rf "${D}"/etc/init.d/ldirectord || die |
162 |
+} |
163 |
+ |
164 |
+pkg_postinst() { |
165 |
+ elog "To use Resource Agents installed in /usr/$(get_libdir)/ocf/resource.d" |
166 |
+ elog "you have to emerge required runtime dependencies manually." |
167 |
+ elog "" |
168 |
+ elog "Description and dependencies of all Agents can be found on" |
169 |
+ elog "http://www.linux-ha.org/wiki/Resource_Agents" |
170 |
+ elog "or in the documentation of this package." |
171 |
+} |