You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
913 B
28 lines
913 B
#!/usr/bin/python2
|
|
|
|
import os
|
|
from autotest_lib.client.bin import utils
|
|
|
|
version = 1
|
|
|
|
def setup(tarball, topdir):
|
|
# FIXME - Waiting to be able to specify dependency.
|
|
#self.job.setup_dep(['pgsql'])
|
|
srcdir = os.path.join(topdir, 'src')
|
|
if not os.path.exists(tarball):
|
|
utils.get_file('http://pgfoundry.org/frs/download.php/1083/pgpool-II-1.0.1.tar.gz', tarball)
|
|
utils.extract_tarball_to_dir(tarball, 'src')
|
|
os.chdir(srcdir)
|
|
# FIXEME - Waiting to be able to use self.autodir instead of
|
|
# os.environ['AUTODIR']
|
|
utils.configure('--prefix=%s/pgpool --with-pgsql=%s/deps/pgsql/pgsql' \
|
|
% (topdir, os.environ['AUTODIR']))
|
|
utils.make('-j %d' % utils.count_cpus())
|
|
utils.make('install')
|
|
|
|
os.chdir(topdir)
|
|
|
|
pwd = os.getcwd()
|
|
tarball = os.path.join(pwd, 'pgpool-II-1.0.1.tar.gz')
|
|
utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)
|