1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
#
# stonith: STONITH plugins for Linux-HA
#
# Copyright (C) 2001 Alan Robertson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = external
INCFILES = stonith_expect_helpers.h \
stonith_plugin_common.h \
stonith_signal.h \
stonith_config_xml.h
idir=$(includedir)/stonith
i_HEADERS = $(INCFILES)
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
-I$(top_builddir)/linux-ha -I$(top_srcdir)/linux-ha \
-I$(top_builddir)/libltdl -I$(top_srcdir)/libltdl
AM_CFLAGS = @NON_FATAL_CFLAGS@
#
# We need "vacmclient_api.h" and -lvacmclient to make the VACM
# plugin work.
#
if USE_VACM
vacm_LIB = vacm.la
else
vacm_LIB =
endif
#
# We need <ucd-snmp/asn1.h>, <ucd-snmp/snmp_api.h>, <ucd-snmp/snmp.h>
# <ucd-snmp/snmp_client.h>, <ucd-snmp/mib.h>, -lsnmp and -lcrypto
# for the apcmastersnmp plugin to work
#
if USE_APC_SNMP
apcmastersnmp_LIB = apcmastersnmp.la wti_mpc.la
else
apcmastersnmp_LIB =
endif
if IPMILAN_BUILD
OPENIPMI_LIB = -lOpenIPMI -lOpenIPMIposix -lOpenIPMIutils
libipmilan_LIB = libipmilan.la
ipmilan_LIB = ipmilan.la
ipmilan_TEST = ipmilantest
else
OPENIPMI_LIB =
libipmilan_LIB =
ipmilan_LIB =
endif
#
# We need <curl/curl.h>, <libxml/xmlmemory.h>,
# <libxml/parser.h>, <libxml/xpath.h>,
# -lcurl and -lxml2 for the drac3 plugin to work
#
if USE_DRAC3
drac3_LIB = drac3.la
else
drac3_LIB =
endif
#
# We need OpenHPI to make the IBM BladeCenter plugin work.
#
if USE_OPENHPI
bladehpi_LIB = bladehpi.la
else
bladehpi_LIB =
endif
noinst_PROGRAMS = $(ipmilan_TEST)
ipmilantest_SOURCES = ipmilan_test.c
ipmilantest_LDADD = $(libipmilan_LIB) \
$(top_builddir)/lib/pils/libpils.la \
$(top_builddir)/lib/stonith/libstonith.la \
$(OPENIPMI_LIB)
## libraries
plugindir = $(stonith_plugindir)/stonith2
plugin_LTLIBRARIES = apcmaster.la \
$(apcmastersnmp_LIB) \
apcsmart.la \
baytech.la \
$(bladehpi_LIB) \
cyclades.la \
$(drac3_LIB) \
external.la \
rhcs.la \
ibmhmc.la \
$(ipmilan_LIB) \
meatware.la \
null.la \
nw_rpc100s.la \
rcd_serial.la \
rps10.la \
ssh.la \
suicide.la \
$(vacm_LIB) \
wti_nps.la
noinst_LTLIBRARIES = $(libipmilan_LIB)
apcmaster_la_SOURCES = apcmaster.c $(INCFILES)
apcmaster_la_LDFLAGS = -export-dynamic -module -avoid-version
apcmaster_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
apcmastersnmp_la_SOURCES= apcmastersnmp.c $(INCFILES)
apcmastersnmp_la_LDFLAGS= -export-dynamic -module -avoid-version @SNMPLIB@ \
@CRYPTOLIB@
apcmastersnmp_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
apcsmart_la_SOURCES = apcsmart.c $(INCFILES)
apcsmart_la_LDFLAGS = -export-dynamic -module -avoid-version
apcsmart_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
baytech_la_SOURCES = baytech.c $(INCFILES)
baytech_la_LDFLAGS = -export-dynamic -module -avoid-version
baytech_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
bladehpi_la_SOURCES = bladehpi.c $(INCFILES)
bladehpi_la_LDFLAGS = -export-dynamic -module -avoid-version
bladehpi_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB) -lopenhpi
cyclades_la_SOURCES = cyclades.c $(INCFILES)
cyclades_la_LDFLAGS = -export-dynamic -module -avoid-version
cyclades_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
drac3_la_SOURCES = drac3.c drac3_command.c drac3_command.h drac3_hash.c drac3_hash.h $(INCFILES)
drac3_la_LDFLAGS = -export-dynamic -module -avoid-version
drac3_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la -lcurl -lxml2 $(GLIBLIB)
external_la_SOURCES = external.c $(INCFILES)
external_la_LDFLAGS = -export-dynamic -module -avoid-version
external_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la
rhcs_la_SOURCES = rhcs.c $(INCFILES)
rhcs_la_LDFLAGS = -export-dynamic -module -avoid-version
rhcs_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la
ibmhmc_la_SOURCES = ibmhmc.c $(INCFILES)
ibmhmc_la_LDFLAGS = -export-dynamic -module -avoid-version
ibmhmc_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la $(GLIBLIB)
ipmilan_la_SOURCES = ipmilan.c ipmilan.h ipmilan_command.c $(INCFILES)
ipmilan_la_LDFLAGS = -export-dynamic -module -avoid-version
ipmilan_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la $(OPENIPMI_LIB) $(GLIBLIB)
libipmilan_la_SOURCES = ipmilan.c ipmilan.h ipmilan_command.c $(INCFILES)
libipmilan_la_LDFLAGS = -version-info 1:0:0
libipmilan_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la $(OPENIPMI_LIB) $(GLIBLIB)
meatware_la_SOURCES = meatware.c $(INCFILES)
meatware_la_LDFLAGS = -export-dynamic -module -avoid-version
meatware_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
null_la_SOURCES = null.c $(INCFILES)
null_la_LDFLAGS = -export-dynamic -module -avoid-version
null_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
nw_rpc100s_la_SOURCES = nw_rpc100s.c $(INCFILES)
nw_rpc100s_la_LDFLAGS = -export-dynamic -module -avoid-version
nw_rpc100s_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la $(GLIBLIB)
rcd_serial_la_SOURCES = rcd_serial.c $(INCFILES)
rcd_serial_la_LDFLAGS = -export-dynamic -module -avoid-version
rcd_serial_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
rps10_la_SOURCES = rps10.c $(INCFILES)
rps10_la_LDFLAGS = -export-dynamic -module -avoid-version
rps10_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
ssh_la_SOURCES = ssh.c $(INCFILES)
ssh_la_LDFLAGS = -export-dynamic -module -avoid-version
ssh_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la
vacm_la_SOURCES = vacm.c $(INCFILES)
vacm_la_LDFLAGS = -export-dynamic -module -avoid-version
vacm_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la
wti_nps_la_SOURCES = wti_nps.c $(INCFILES)
wti_nps_la_LDFLAGS = -export-dynamic -module -avoid-version
wti_nps_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(top_builddir)/replace/libreplace.la $(GLIBLIB)
wti_mpc_la_SOURCES= wti_mpc.c $(INCFILES)
wti_mpc_la_LDFLAGS= -export-dynamic -module -avoid-version @SNMPLIB@ \
@CRYPTOLIB@
wti_mpc_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la $(GLIBLIB)
suicide_la_SOURCES = suicide.c $(INCFILES)
suicide_la_LDFLAGS = -export-dynamic -module -avoid-version
suicide_la_LIBADD = $(top_builddir)/lib/stonith/libstonith.la
stonithscriptdir = $(stonith_plugindir)/stonith2
stonithscript_SCRIPTS = ribcl.py
|