guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: Add sysfsutils-1.


From: Taylan Ulrich B.
Subject: 02/03: gnu: Add sysfsutils-1.
Date: Wed, 25 Feb 2015 14:28:19 +0000

taylanub pushed a commit to branch master
in repository guix.

commit a9a1a40b50f5bad1a5528a6106c45c40f6064fcc
Author: Taylan Ulrich Bayırlı/Kammer <address@hidden>
Date:   Wed Feb 18 22:17:01 2015 +0100

    gnu: Add sysfsutils-1.
    
    * gnu/packages/linux.scm (sysfsutils-1): New variable.
---
 gnu/packages/linux.scm |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 935a172..33214eb 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)")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]