Skip to content

Commit 9a6de63

Browse files
committed
build: add build and generic doc files
1 parent d314e0a commit 9a6de63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1169
-27
lines changed

AUTHORS

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
NOTE: The work of everyone on this project is dearly appreciated. If you
2+
are not listed here but should be, please notify us!
3+
4+
Andrew Beekhof <andrew[at]beekhof[dot]net>
5+
Dejan Muhamedagic <dejan[at]suse[dot]de>
6+
Federica Teodori <federica[dot]teodori[at]googlemail[dot]com>
7+
Florian Haas <florian[dot]haas[at]linbit[dot]com>
8+
Hideo Yamauchi <renayama19661014[at]ybb[dot]ne[dot]jp>
9+
Holger Teutsch <holger[dot]teutsch[at]web[dot]de>
10+
Lars Marowsky-Brée <lmb[at]suse[dot]de>
11+
Tim Serong <tserong[at]suse[dot]com>
12+
Xinwei Hu <xwhu[at]novell[dot]com>
13+
Yan Gao <ygao[at]novell[dot]com>
14+
Yuusuke IIDA <iidayuus[at]intellilink[dot]co[dot]jp>

COPYING

+339
Large diffs are not rendered by default.

ChangeLog

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* Wed Oct 19 2011 Dejan Muhamedagic <[email protected]> and many others
2+
- stable release 1.1.0
3+
- history/troubleshooting support
4+
- template support
5+
- geo-cluster support commands
6+
- support for configure rsc_ticket
7+
- support for LRM secrets at the resource level
8+
- enable removal of unmanaged resources (bnc#696506)
9+
- split-off from Pacemaker after release 1.1.6
10+
- upstream cs: ed6fe97d385f

Makefile.am

+20-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# doc: Pacemaker code
2+
# shell: Pacemaker code
33
#
44
# Copyright (C) 2008 Andrew Beekhof
55
#
@@ -17,10 +17,27 @@
1717
# along with this program; if not, write to the Free Software
1818
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1919
#
20-
MAINTAINERCLEANFILES = Makefile.in
20+
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure
2121

2222
sbin_SCRIPTS = crm
2323

2424
EXTRA_DIST = crm
2525

26-
SUBDIRS = templates regression modules
26+
SUBDIRS = doc modules templates test
27+
28+
doc_DATA = AUTHORS COPYING
29+
30+
install-exec-local:
31+
$(INSTALL) -d -m 770 $(DESTDIR)/$(CRM_CACHE_DIR)
32+
-chown $(CRM_DAEMON_USER):$(CRM_DAEMON_GROUP) $(DESTDIR)/$(CRM_CACHE_DIR)
33+
34+
clean-generic:
35+
rm -f $(TARFILE) *.tar.bz2 *.sed
36+
37+
dist-clean-local:
38+
rm -f autoconf automake autoheader
39+
40+
maintainer-clean-local:
41+
rm -f libltdl.tar
42+
43+
.PHONY: rpm pkg handy handy-copy

NEWS

Whitespace-only changes.

README

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
This is the CRM shell, a Pacemaker command line interface.
2+
It supports pacemaker configuration, management, and
3+
troubleshooting.
4+
5+
CRM shell is implemented in Python.
6+
7+
Building and installing
8+
9+
Autoconf is used to take care of platform dependendent locations.
10+
It is mainly inherited from the Pacemaker source.
11+
12+
./autogen.sh
13+
./configure
14+
make
15+
make install
16+
17+
Manifest
18+
19+
./doc: man page
20+
./modules: the code
21+
./templates: configuration templates
22+
./test: regression tests

acinclude.m4

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
dnl
2+
dnl local autoconf/automake macros needed for heartbeat
3+
dnl Started by David Lee <[email protected]> February 2006
4+
dnl
5+
dnl License: GNU General Public License (GPL)
6+
7+
8+
dnl AM_CHECK_PYTHON_HEADERS: Find location of python include files.
9+
dnl Taken from:
10+
dnl http://source.macgimp.org/
11+
dnl which is GPL and is attributed to James Henstridge.
12+
dnl
13+
dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
14+
dnl Imports:
15+
dnl $PYTHON
16+
dnl Exports:
17+
dnl PYTHON_INCLUDES
18+
19+
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
20+
[AC_REQUIRE([AM_PATH_PYTHON])
21+
AC_MSG_CHECKING(for headers required to compile python extensions)
22+
dnl deduce PYTHON_INCLUDES
23+
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
24+
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
25+
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
26+
if test "$py_prefix" != "$py_exec_prefix"; then
27+
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
28+
fi
29+
AC_SUBST(PYTHON_INCLUDES)
30+
dnl check if the headers exist:
31+
save_CPPFLAGS="$CPPFLAGS"
32+
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
33+
AC_TRY_CPP([#include <Python.h>],dnl
34+
[AC_MSG_RESULT(found)
35+
$1],dnl
36+
[AC_MSG_RESULT(not found)
37+
$2])
38+
CPPFLAGS="$save_CPPFLAGS"
39+
])

autogen.sh

+190
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
#!/bin/sh
2+
#
3+
# License: GNU General Public License (GPL)
4+
# Copyright 2001 horms <[email protected]>
5+
# (heavily mangled by alanr)
6+
#
7+
# bootstrap: set up the project and get it ready to make
8+
#
9+
# Basically, we run autoconf, automake and libtool in the
10+
# right way to get things set up for this environment.
11+
#
12+
# We also look and see if those tools are installed, and
13+
# tell you where to get them if they're not.
14+
#
15+
# Our goal is to not require dragging along anything
16+
# more than we need. If this doesn't work on your system,
17+
# (i.e., your /bin/sh is broken) send us a patch.
18+
#
19+
# This code loosely based on the corresponding named script in
20+
# enlightenment, and also on the sort-of-standard autoconf
21+
# bootstrap script.
22+
23+
# Run this to generate all the initial makefiles, etc.
24+
25+
testProgram()
26+
{
27+
cmd=$1
28+
29+
if [ -z "$cmd" ]; then
30+
return 1;
31+
fi
32+
33+
arch=`uname -s`
34+
35+
# Make sure the which is in an if-block... on some platforms it throws exceptions
36+
#
37+
# The ERR trap is not executed if the failed command is part
38+
# of an until or while loop, part of an if statement, part of a &&
39+
# or || list.
40+
if
41+
which $cmd </dev/null >/dev/null 2>&1
42+
then
43+
:
44+
else
45+
return 1
46+
fi
47+
48+
# The GNU standard is --version
49+
if
50+
$cmd --version </dev/null >/dev/null 2>&1
51+
then
52+
return 0
53+
fi
54+
55+
# Maybe it suppports -V instead
56+
if
57+
$cmd -V </dev/null >/dev/null 2>&1
58+
then
59+
return 0
60+
fi
61+
62+
# Nope, the program seems broken
63+
return 1
64+
}
65+
66+
gnu="ftp://ftp.gnu.org/pub/gnu"
67+
68+
for command in autoconf213 autoconf253 autoconf259 autoconf
69+
do
70+
if
71+
testProgram $command == 1
72+
then
73+
autoconf=$command
74+
autoheader=`echo "$autoconf" | sed -e 's/autoconf/autoheader/'`
75+
autom4te=`echo "$autoconf" | sed -e 's/autoconf/autmo4te/'`
76+
autoreconf=`echo "$autoconf" | sed -e 's/autoconf/autoreconf/'`
77+
autoscan=`echo "$autoconf" | sed -e 's/autoconf/autoscan/'`
78+
autoupdate=`echo "$autoconf" | sed -e 's/autoconf/autoupdate/'`
79+
ifnames=`echo "$autoconf" | sed -e 's/autoconf/ifnames/'`
80+
fi
81+
done
82+
83+
for command in automake14 automake-1.4 automake15 automake-1.5 automake17 automake-1.7 automake19 automake-1.9 automake-1.11 automake
84+
do
85+
if
86+
testProgram $command
87+
then
88+
: OK $pkg is installed
89+
automake=$command
90+
aclocal=`echo "$automake" | sed -e 's/automake/aclocal/'`
91+
fi
92+
done
93+
94+
for command in libtool14 libtool15 libtool glibtool
95+
do
96+
URL=$gnu/$pkg/
97+
if
98+
testProgram $command
99+
then
100+
libtool=$command
101+
libtoolize=`echo "$libtool" | sed -e 's/libtool/libtoolize/'`
102+
fi
103+
done
104+
105+
if [ -z $autoconf ]; then
106+
echo You must have autoconf installed to compile the cluster-glue package.
107+
echo Download the appropriate package for your system,
108+
echo or get the source tarball at: $gnu/autoconf/
109+
exit 1
110+
111+
elif [ -z $automake ]; then
112+
echo You must have automake installed to compile the cluster-glue package.
113+
echo Download the appropriate package for your system,
114+
echo or get the source tarball at: $gnu/automake/
115+
exit 1
116+
117+
elif [ -z $libtool ]; then
118+
echo You must have libtool installed to compile the cluster-glue package.
119+
echo Download the appropriate package for your system,
120+
echo or get the source tarball at: $gnu/libtool/
121+
exit 1
122+
fi
123+
124+
oneline() {
125+
read x; echo "$x"
126+
}
127+
128+
LT_version=`$libtool --version | oneline | sed -e 's%^[^0-9]*%%' -e s'% .*%%'`
129+
LT_majvers=`echo "$LT_version" | sed -e 's%\..*%%'`
130+
LT_minvers=`echo "$LT_version" | sed -e 's%^[^.]*\.%%' `
131+
LT_minnum=`echo "$LT_minvers" | sed -e 's%[^0-9].*%%'`
132+
133+
if
134+
[ $LT_majvers -lt 1 ] || [ $LT_majvers = 1 -a $LT_minnum -lt 4 ]
135+
then
136+
echo "Minimum version of libtool is 1.4. You have $LT_version installed."
137+
exit 1
138+
fi
139+
140+
# Create local copies so that the incremental updates will work.
141+
rm -f ./autoconf ./automake ./autoheader ./libtool
142+
ln -s `which $libtool` ./libtool
143+
ln -s `which $autoconf` ./autoconf
144+
ln -s `which $automake` ./automake
145+
ln -s `which $autoheader` ./autoheader
146+
147+
printf "$autoconf:\t"
148+
$autoconf --version | head -n 1
149+
150+
printf "$automake:\t"
151+
$automake --version | head -n 1
152+
153+
#rm -rf libltdl libltdl.tar
154+
#echo $libtoolize --ltdl --force --copy
155+
# Unset GREP_OPTIONS as any coloring can mess up the AC_CONFIG_AUX_DIR matching patterns
156+
#GREP_OPTIONS= $libtoolize --ltdl --force --copy
157+
158+
arch=`uname -s`
159+
# Disable the errors on FreeBSD until a fix can be found.
160+
if [ ! "$arch" = "FreeBSD" ]; then
161+
set -e
162+
#
163+
# All errors are fatal from here on out...
164+
# The shell will complain and exit on any "uncaught" error code.
165+
#
166+
#
167+
# And the trap will ensure sure some kind of error message comes out.
168+
#
169+
trap 'echo ""; echo "$0 exiting due to error (sorry!)." >&2' 0
170+
fi
171+
172+
# Emulate the old --ltdl-tar option...
173+
# If the libltdl directory is required we will unpack it later
174+
#tar -cf libltdl.tar libltdl
175+
#rm -rf libltdl
176+
177+
echo $aclocal $ACLOCAL_FLAGS
178+
$aclocal $ACLOCAL_FLAGS
179+
180+
echo $automake --add-missing --include-deps --copy
181+
$automake --add-missing --include-deps --copy
182+
183+
echo $autoconf
184+
$autoconf
185+
186+
#test -f libtool.m4 || touch libtool.m4
187+
#test -f ltdl.m4 || touch ltdl.m4
188+
189+
echo Now run ./configure
190+
trap '' 0

0 commit comments

Comments
 (0)