forked from naemon/naemon-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·59 lines (52 loc) · 1.39 KB
/
Copy pathconfigure
File metadata and controls
executable file
·59 lines (52 loc) · 1.39 KB
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
#!/bin/sh
[ ! -z $BASH ] && set -o pipefail
set -e
# initialize submodules unless they exist already
test -f naemon-core/configure.ac || git submodule init
test -f naemon-core/configure.ac || {
git submodule update naemon-core
cd naemon-core
git checkout master
git submodule update
cd ..
}
test -f naemon-livestatus/configure.ac || {
git submodule update naemon-livestatus
cd naemon-livestatus
git checkout master
git submodule update
cd ..
}
test -f thruk/gui/configure || {
git submodule update thruk/gui
cd thruk/gui
git checkout integration
git submodule update
cd ../..
}
test -d thruk/libs/src || {
git submodule update thruk/libs
cd thruk/libs
git checkout master
git submodule update
cd ../..
}
# now just run the real configure scripts
cd naemon-core
test -f ./configure || autoreconf -i
./configure $* 2>&1 | grep -v 'WARNING: unrecognized options'
cd ../naemon-livestatus
test -f ./configure || autoreconf -i
NAEMON_LIBS="-L$(pwd)/../naemon-core" NAEMON_CFLAGS="-I$(pwd)/../naemon-core" ./configure $* 2>&1 | grep -v 'WARNING: unrecognized options'
cd ../thruk/gui
./configure --quiet $*
cd ../..
echo "***************************************"
echo "finished configuring Naemon:"
echo ""
grep -v '^#' thruk/gui/script/append.make.options
echo "continue with"
echo ""
echo "make [rpm|deb]"
echo "or"
echo "make && make install"