Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: client/deps/libnet/libnet.py

Issue 3541002: Revert "Merge remote branch 'cros/upstream' into tempbranch2" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/deps/libnet/common.py ('k') | client/deps/mysql/common.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 import os 3 import os
4 import common
4 from autotest_lib.client.bin import utils 5 from autotest_lib.client.bin import utils
5 6
6 version = 1 7 version = 1
7 8
8 def setup(tarball, topdir): 9 def setup(tarball, topdir):
9 srcdir = os.path.join(topdir, 'src') 10 srcdir = os.path.join(topdir, 'src')
10 if not os.path.exists(tarball): 11 if not os.path.exists(tarball):
11 utils.get_file('http://www.packetfactory.net/libnet/dist/libnet.tar.gz', 12 utils.get_file('http://www.packetfactory.net/libnet/dist/libnet.tar.gz',
12 tarball) 13 tarball)
13 utils.extract_tarball_to_dir(tarball, 'src') 14 utils.extract_tarball_to_dir(tarball, 'src')
14 os.chdir(srcdir) 15 os.chdir(srcdir)
15 utils.configure ('--prefix=%s/libnet' % topdir) 16 utils.system ('./configure --prefix=%s/libnet' % topdir)
16 utils.make() 17 utils.system('make')
17 utils.make('install') 18 utils.system('make install')
18 19
19 os.chdir(topdir) 20 os.chdir(topdir)
20 21
21 pwd = os.getcwd() 22 pwd = os.getcwd()
22 tarball = os.path.join(pwd, 'libnet.tar.gz') 23 tarball = os.path.join(pwd, 'libnet.tar.gz')
23 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) 24 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)
OLDNEW
« no previous file with comments | « client/deps/libnet/common.py ('k') | client/deps/mysql/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698