Index: client/deps/hdparm/hdparm.py |
diff --git a/client/deps/hdparm/hdparm.py b/client/deps/hdparm/hdparm.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..14142aa0db34fae51fcaa970eb8c4a10064714d5 |
--- /dev/null |
+++ b/client/deps/hdparm/hdparm.py |
@@ -0,0 +1,22 @@ |
+#!/usr/bin/python |
+ |
+import os |
+import common |
+from autotest_lib.client.bin import utils |
+ |
+version = 1 |
+ |
+def setup(tarball, topdir): |
+ srcdir = os.path.join(topdir, 'src') |
+ utils.extract_tarball_to_dir(tarball, srcdir) |
+ os.chdir(srcdir) |
+ utils.system('make') |
+ utils.system('make binprefix=%s manprefix=%s install' % (topdir, topdir)) |
+ os.chdir(topdir) |
+ |
+ |
+# The source is grabbed from |
+# http://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.27.tar.gz |
+pwd = os.getcwd() |
+tarball = os.path.join(pwd, 'hdparm-9.27.tar.gz') |
+utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) |