unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add wireless-tools.
@ 2014-07-19  1:28 David Thompson
  2014-07-19  1:30 ` David Thompson
  2014-07-19 12:28 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: David Thompson @ 2014-07-19  1:28 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

There was a conversation on #guix today about wpa-supplicant possibly
needing wireless tools in order to work.  Well, I haven't tested that
yet, but I did write a package for the wireless tools.

I don't use the iw* tools a whole lot, so I didn't test everything, but
I did verify that the output of `iwconfig` looked okay.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-wireless-tools.patch --]
[-- Type: text/x-diff, Size: 1872 bytes --]

From 03ec990504a3f96385587eb1cf4396cab3332617 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Fri, 18 Jul 2014 21:23:58 -0400
Subject: [PATCH] gnu: Add wireless-tools.

* gnu/packages/linux.scm (wireless-tools): New variable.
---
 gnu/packages/linux.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b9864f4..12389a3 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1329,3 +1329,30 @@ from the module-init-tools project.")
 device nodes from /dev/, handles hotplug events and loads drivers at boot
 time.")
     (license gpl2+))) ; libudev is under lgpl2.1+
+
+(define-public wireless-tools
+  (package
+    (name "wireless-tools")
+    (version "30.pre9")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools."
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases (alist-replace
+                 'configure
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let ((out (assoc-ref outputs "out")))
+                     (setenv "PREFIX" out)))
+                 %standard-phases)
+       #:tests? #f))
+    (synopsis "Tools for manipulating Linux Wireless Extensions")
+    (description "Wireless Tools are used to manipulate the Linux Wireless
+Extensions.  The Wireless Extension is an interface allowing you to set
+Wireless LAN specific parameters and get the specific stats.")
+    (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
+    (license gpl2+)))
-- 
2.0.0


[-- Attachment #3: Type: text/plain, Size: 136 bytes --]


-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] gnu: Add wireless-tools.
  2014-07-19  1:28 [PATCH] gnu: Add wireless-tools David Thompson
@ 2014-07-19  1:30 ` David Thompson
  2014-07-19 12:28 ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: David Thompson @ 2014-07-19  1:30 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 65 bytes --]

Oops.  Left in an unnecessary `let` form.  Updated patch below.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-wireless-tools.patch --]
[-- Type: text/x-diff, Size: 1831 bytes --]

From f857d3d77f09a6053f910933ae95098bbb70bc30 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Fri, 18 Jul 2014 21:23:58 -0400
Subject: [PATCH] gnu: Add wireless-tools.

* gnu/packages/linux.scm (wireless-tools): New variable.
---
 gnu/packages/linux.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b9864f4..6e307e5 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1329,3 +1329,29 @@ from the module-init-tools project.")
 device nodes from /dev/, handles hotplug events and loads drivers at boot
 time.")
     (license gpl2+))) ; libudev is under lgpl2.1+
+
+(define-public wireless-tools
+  (package
+    (name "wireless-tools")
+    (version "30.pre9")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools."
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases (alist-replace
+                 'configure
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (setenv "PREFIX" (assoc-ref outputs "out")))
+                 %standard-phases)
+       #:tests? #f))
+    (synopsis "Tools for manipulating Linux Wireless Extensions")
+    (description "Wireless Tools are used to manipulate the Linux Wireless
+Extensions.  The Wireless Extension is an interface allowing you to set
+Wireless LAN specific parameters and get the specific stats.")
+    (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
+    (license gpl2+)))
-- 
2.0.0


[-- Attachment #3: Type: text/plain, Size: 136 bytes --]


-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] gnu: Add wireless-tools.
  2014-07-19  1:28 [PATCH] gnu: Add wireless-tools David Thompson
  2014-07-19  1:30 ` David Thompson
@ 2014-07-19 12:28 ` Ludovic Courtès
  2014-07-19 12:47   ` David Thompson
  1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2014-07-19 12:28 UTC (permalink / raw)
  To: David Thompson; +Cc: guix-devel

David Thompson <dthompson2@worcester.edu> skribis:

> There was a conversation on #guix today about wpa-supplicant possibly
> needing wireless tools in order to work.  Well, I haven't tested that
> yet, but I did write a package for the wireless tools.

I think it expects it to be in $PATH.

> From 03ec990504a3f96385587eb1cf4396cab3332617 Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Fri, 18 Jul 2014 21:23:58 -0400
> Subject: [PATCH] gnu: Add wireless-tools.
>
> * gnu/packages/linux.scm (wireless-tools): New variable.

Excellent, please push.

I think we should add to the installation image, no?

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gnu: Add wireless-tools.
  2014-07-19 12:28 ` Ludovic Courtès
@ 2014-07-19 12:47   ` David Thompson
  2014-07-19 13:18     ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: David Thompson @ 2014-07-19 12:47 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

Ludovic Courtès <ludo@gnu.org> writes:

> David Thompson <dthompson2@worcester.edu> skribis:
>
>> There was a conversation on #guix today about wpa-supplicant possibly
>> needing wireless tools in order to work.  Well, I haven't tested that
>> yet, but I did write a package for the wireless tools.
>
> I think it expects it to be in $PATH.

So I guess we can either try to patch the source code to explicitly
refer to the wireless-tools in the store, or make wireless-tools a
propagated input?

>> From 03ec990504a3f96385587eb1cf4396cab3332617 Mon Sep 17 00:00:00 2001
>> From: David Thompson <dthompson2@worcester.edu>
>> Date: Fri, 18 Jul 2014 21:23:58 -0400
>> Subject: [PATCH] gnu: Add wireless-tools.
>>
>> * gnu/packages/linux.scm (wireless-tools): New variable.
>
> Excellent, please push.

Pushed!

> I think we should add to the installation image, no?

That's a good idea.  Add to %base-packages?

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gnu: Add wireless-tools.
  2014-07-19 12:47   ` David Thompson
@ 2014-07-19 13:18     ` Ludovic Courtès
  2014-07-19 13:41       ` David Thompson
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2014-07-19 13:18 UTC (permalink / raw)
  To: David Thompson; +Cc: guix-devel

David Thompson <dthompson2@worcester.edu> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> David Thompson <dthompson2@worcester.edu> skribis:
>>
>>> There was a conversation on #guix today about wpa-supplicant possibly
>>> needing wireless tools in order to work.  Well, I haven't tested that
>>> yet, but I did write a package for the wireless tools.
>>
>> I think it expects it to be in $PATH.
>
> So I guess we can either try to patch the source code to explicitly
> refer to the wireless-tools in the store, or make wireless-tools a
> propagated input?

I would either do nothing, or patch (with ‘wrap-program’) the
wpa_supplicant programs so they get $PATH right.

>> I think we should add to the installation image, no?
>
> That's a good idea.  Add to %base-packages?

No, to the ‘packages’ field in gnu/system/install.scm.
Could you do that?

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gnu: Add wireless-tools.
  2014-07-19 13:18     ` Ludovic Courtès
@ 2014-07-19 13:41       ` David Thompson
  0 siblings, 0 replies; 6+ messages in thread
From: David Thompson @ 2014-07-19 13:41 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

Ludovic Courtès <ludo@gnu.org> writes:

> David Thompson <dthompson2@worcester.edu> skribis:
>
>> So I guess we can either try to patch the source code to explicitly
>> refer to the wireless-tools in the store, or make wireless-tools a
>> propagated input?
>
> I would either do nothing, or patch (with ‘wrap-program’) the
> wpa_supplicant programs so they get $PATH right.

Okay.

>>> I think we should add to the installation image, no?
>>
>> That's a good idea.  Add to %base-packages?
>
> No, to the ‘packages’ field in gnu/system/install.scm.
> Could you do that?

Yup.  I will push a patch.

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-19 13:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-19  1:28 [PATCH] gnu: Add wireless-tools David Thompson
2014-07-19  1:30 ` David Thompson
2014-07-19 12:28 ` Ludovic Courtès
2014-07-19 12:47   ` David Thompson
2014-07-19 13:18     ` Ludovic Courtès
2014-07-19 13:41       ` David Thompson

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).