install
=======

# tar jxf pgpool-ha-2.x.tar.bz2

# cd pgpool-ha-2.x

# ./configure.sh --help
options:
 --with-pgsql  PostgreSQL install path
 --with-pgpool pgpool install path
 --with-ocf    OCF RA files path

# ./configure.sh --with-pgpool=/usr/local --with-pgsql=/usr/pgsql-9.1
PGSQL_DIR: /usr/pgsql-9.1
PGPOOL_DIR: /usr/local
OCF_DIR: /usr/lib/ocf/resource.d/heartbeat
Makefile generated

# make
sed -e 's#@_PGSQL_DIR_@#/usr/pgsql-9.1#g' < pgpool.in | \
	sed -e 's#@_PGPOOL_DIR_@#/usr/local#g' | \
	sed -e 's#@_OCF_DIR_@#/usr/lib/ocf/resource.d/heartbeat#g' > pgpool

# make intall
/usr/bin/install -c -m 755 pgpool /usr/lib/ocf/resource.d/heartbeat

