26 |
prefix=/usr/local |
prefix=/usr/local |
27 |
vendor="http://www.tildeslash.com/monit/" |
vendor="http://www.tildeslash.com/monit/" |
28 |
|
|
29 |
version=`grep VERSION monitor.h | sed 's/^.*"\(.*\)".*$/\1/'` |
version=`cat configure.ac | sed -n -e '/AC_INIT/s%.*\[\([0-9.]*\)\].*%\1%p'` |
30 |
pstamp=monit`hostname | cut -d "." -f 1`-`date +%Y%m%d%H%M` |
pstamp=monit`hostname | cut -d "." -f 1`-`date +%Y%m%d%H%M` |
31 |
platform=`uname -p` |
platform=`uname -p` |
32 |
release=`uname -r | sed 's/5\./sol/'` |
release=`uname -r | sed 's/5\./sol/'` |
39 |
# 1) Compilation phase |
# 1) Compilation phase |
40 |
# -------------------- |
# -------------------- |
41 |
|
|
42 |
|
if [ -f Makefile ]; then |
43 |
|
$make clean |
44 |
|
fi |
45 |
|
|
46 |
./configure --prefix=$prefix |
./configure --prefix=$prefix |
47 |
$make |
$make |
48 |
|
|