aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>2015-02-18 22:17:01 +0100
committerTaylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>2015-02-25 15:27:48 +0100
commita9a1a40b50f5bad1a5528a6106c45c40f6064fcc (patch)
tree7203fb496828a1590fbf4dba188688fdfd9f2c7e
parent37f5caec4e886cc19605f6a249d65d13f05994b2 (diff)
downloadgnu-guix-a9a1a40b50f5bad1a5528a6106c45c40f6064fcc.tar
gnu-guix-a9a1a40b50f5bad1a5528a6106c45c40f6064fcc.tar.gz
gnu: Add sysfsutils-1.
* gnu/packages/linux.scm (sysfsutils-1): New variable.
-rw-r--r--gnu/packages/linux.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 935a1728f4..33214eb366 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1937,3 +1937,27 @@ also contains the libsysfs library.")
;; The library is under lgpl2.1+ (all files say "or any later version").
;; The rest is mostly gpl2, with a few files indicating gpl2+.
(license (list gpl2 gpl2+ lgpl2.1+))))
+
+(define-public sysfsutils-1
+ (package
+ (inherit sysfsutils)
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append
+ "mirror://sourceforge/linux-diag/sysfsutils/sysfsutils-" version
+ "/sysfsutils-" version ".tar.gz"))
+ (sha256
+ (base32 "0kdhs07fm8263pxwd5blwn2x211cg4fk63fyf9ijcdkvzmwxrqq3"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "Makefile.in"
+ (("includedir = /usr/include/sysfs")
+ "includedir = @includedir@"))
+ (substitute* "configure"
+ (("includedir='(\\$\\{prefix\\}/include)'" all orig)
+ (string-append "includedir='" orig "/sysfs'")))))))
+ (synopsis "System utilities based on Linux sysfs (version 1.x)")))