aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/linux.scm
diff options
context:
space:
mode:
authorTaylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>2015-02-18 21:20:57 +0100
committerTaylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>2015-02-25 15:27:48 +0100
commite6caa52d859718596fe56bcd4033917457864912 (patch)
tree98e431ac278ef7a766b2c4a34853711f97692d69 /gnu/packages/linux.scm
parenta9a1a40b50f5bad1a5528a6106c45c40f6064fcc (diff)
downloadguix-e6caa52d859718596fe56bcd4033917457864912.tar
guix-e6caa52d859718596fe56bcd4033917457864912.tar.gz
gnu: Add cpufrequtils.
* gnu/packages/linux.scm (cpufrequtils): New variable. * gnu/packages/patches/cpufrequtils-fix-aclocal.patch: New file. * gnu-system.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r--gnu/packages/linux.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 33214eb366..dc280a01fe 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1961,3 +1961,31 @@ also contains the libsysfs library.")
(("includedir='(\\$\\{prefix\\}/include)'" all orig)
(string-append "includedir='" orig "/sysfs'")))))))
(synopsis "System utilities based on Linux sysfs (version 1.x)")))
+
+(define-public cpufrequtils
+ (package
+ (name "cpufrequtils")
+ (version "0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append
+ "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "0qfqv7nqmjfr3p0bwrdlxkiqwqr7vmx053cadaa548ybqbghxmvm"))
+ (patches (list (search-patch "cpufrequtils-fix-aclocal.patch")))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("sysfsutils" ,sysfsutils-1)))
+ (arguments
+ '(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
+ (assoc-ref %outputs "out") "/lib"))))
+ (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/")
+ (synopsis "Utilities to get and set CPU frequency on Linux")
+ (description
+ "The cpufrequtils suite contains utilities to retreive CPU frequency
+information, and set the CPU frequency if supported, using the cpufreq
+capabilities of the Linux kernel.")
+ (license gpl2)))