OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python |
| 2 |
| 3 import os |
| 4 import common |
| 5 from autotest_lib.client.bin import utils |
| 6 |
| 7 version = 1 |
| 8 |
| 9 def setup(tarball, topdir): |
| 10 srcdir = os.path.join(topdir, 'src') |
| 11 if not os.path.exists(tarball): |
| 12 utils.get_file( |
| 13 'http://pagesperso-orange.fr/sebastien.godard/sysstat-9.0.6.tar.gz', |
| 14 tarball) |
| 15 utils.extract_tarball_to_dir(tarball, 'src') |
| 16 os.chdir(srcdir) |
| 17 utils.system ('./configure --prefix=%s' % topdir) |
| 18 utils.system('make') |
| 19 utils.system('make install') |
| 20 os.chdir(topdir) |
| 21 |
| 22 pwd = os.getcwd() |
| 23 tarball = os.path.join(pwd, 'sysstat-9.0.6.tar.gz') |
| 24 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) |
OLD | NEW |