* [bug#31166] [PATCH] gnu: Add mbpfan.
@ 2018-04-15 16:04 Rene
2018-04-16 22:36 ` bug#31166: " Marius Bakke
0 siblings, 1 reply; 2+ messages in thread
From: Rene @ 2018-04-15 16:04 UTC (permalink / raw)
To: 31166
[-- Attachment #1.1: Type: text/plain, Size: 67 bytes --]
Hello team,
this is a proposed patch to add mbpfan.
Thank you
Rene
[-- Attachment #1.2: Type: text/html, Size: 1092 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-mbpfan.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-mbpfan.patch", Size: 2592 bytes --]
From 48444809ee2d0f2993fb0c2a772f52a68f13b30a Mon Sep 17 00:00:00 2001
From: Rene <pacoon@protonmail.com>
Date: Sat, 14 Apr 2018 22:34:48 -0500
Subject: [PATCH] gnu: Add mbpfan.
* gnu/packages/linux.scm (mbpfan): New variable.
---
gnu/packages/linux.scm | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 26626ce8f..3125e64d9 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -16,7 +16,7 @@
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
;;; Copyright © 2016, 2017, 2018 Marius Bakke <mbakke@fastmail.com>
-;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
+;;; Copyright © 2016, 2018 Rene Saavedra <pacoon@protonmail.com>
;;; Copyright © 2016 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
;;; Copyright © 2017, 2018 Leo Famulari <leo@famulari.name>
@@ -4596,3 +4596,38 @@ emulates the behaviour of Gunnar Monell's older fbgrab utility.")
restriction, permission handling and more. This package provides userspace
interface to this kernel feature.")
(license license:lgpl2.1)))
+
+(define-public mbpfan
+ (package
+ (name "mbpfan")
+ (version "2.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/dgraziotin/mbpfan/archive/v"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0wifsws9icki95hhfh4zw1hmk07ddmkcz9mg5a9jr7q2kkrk01cx"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:tests? #f ; no tests
+ #:make-flags (let ((out (assoc-ref %outputs "out")))
+ (list (string-append "DESTDIR=" out)
+ "CC=gcc"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda _
+ (substitute* "Makefile"
+ (("/usr") ""))))
+ (delete 'configure)))) ; There's no configure phase.
+ (home-page "https://github.com/dgraziotin/mbpfan")
+ (synopsis "Simple daemon to control fan speed")
+ (description
+ "Mbpfan is a fan control daemon for Apple Macbooks, the daemon uses input
+from @code{coretemp} module and sets the fan speed using the @code{applesmc}
+module. It can be executed as a daemon or in the foreground with root
+privileges.")
+ (license license:gpl3)))
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#31166: [PATCH] gnu: Add mbpfan.
2018-04-15 16:04 [bug#31166] [PATCH] gnu: Add mbpfan Rene
@ 2018-04-16 22:36 ` Marius Bakke
0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2018-04-16 22:36 UTC (permalink / raw)
To: Rene, 31166-done
[-- Attachment #1.1: Type: text/plain, Size: 401 bytes --]
Rene <pacoon@protonmail.com> writes:
> Hello team,
> this is a proposed patch to add mbpfan.
>
> Thank you
> Rene
> From 48444809ee2d0f2993fb0c2a772f52a68f13b30a Mon Sep 17 00:00:00 2001
> From: Rene <pacoon@protonmail.com>
> Date: Sat, 14 Apr 2018 22:34:48 -0500
> Subject: [PATCH] gnu: Add mbpfan.
>
> * gnu/packages/linux.scm (mbpfan): New variable.
Thanks!
Applied with the following changes:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: diff.out --]
[-- Type: text/x-patch, Size: 1097 bytes --]
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c0f33e72c..bc1e23fc1 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4618,13 +4618,14 @@ interface to this kernel feature.")
(add-after 'unpack 'patch-paths
(lambda _
(substitute* "Makefile"
- (("/usr") ""))))
+ (("/usr") ""))
+ #t))
(delete 'configure)))) ; There's no configure phase.
(home-page "https://github.com/dgraziotin/mbpfan")
- (synopsis "Simple daemon to control fan speed")
+ (synopsis "Control fan speed on Macbooks")
(description
- "Mbpfan is a fan control daemon for Apple Macbooks, the daemon uses input
-from @code{coretemp} module and sets the fan speed using the @code{applesmc}
+ "mbpfan is a fan control daemon for Apple Macbooks. It uses input from
+the @code{coretemp} module and sets the fan speed using the @code{applesmc}
module. It can be executed as a daemon or in the foreground with root
privileges.")
- (license license:gpl3)))
+ (license license:gpl3+)))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-16 22:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-15 16:04 [bug#31166] [PATCH] gnu: Add mbpfan Rene
2018-04-16 22:36 ` bug#31166: " Marius Bakke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).