Skip to content
Snippets Groups Projects
Commit c2099a4c authored by Mark H Weaver's avatar Mark H Weaver
Browse files

gnu: wireless-tools: Build shared library; remove non-free headers.

* gnu/packages/linux.scm (wireless-tools)[source]: Replace unneeded
  old snippet with a new one that removes non-free files.
  [arguments]: Use modify-phases.  Remove custom 'configure' phase.  Add
  make-flags.
  [license]: Change to (list gpl2 lgpl2.1+).
parent c1670a81
No related branches found
No related tags found
No related merge requests found
...@@ -1712,19 +1712,22 @@ (define-public wireless-tools ...@@ -1712,19 +1712,22 @@ (define-public wireless-tools
(sha256 (sha256
(base32 (base32
"0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb")) "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))
(modules '((guix build utils)))
(snippet (snippet
;; Install the manual pages in the right place. '(begin
'(substitute* "Makefile" ;; Remove the older header files that are not free software.
(("INSTALL_MAN= .*") (for-each (lambda (n)
"INSTALL_MAN= $(PREFIX)/share/man"))))) (delete-file (format #f "wireless.~a.h" n)))
'(10 11 12 13 14 15 16 17 18 19 20))
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (alist-replace `(#:make-flags
'configure (list (string-append "PREFIX=" %output)
(lambda* (#:key outputs #:allow-other-keys) (string-append "INSTALL_MAN=" %output "/share/man")
(setenv "PREFIX" (assoc-ref outputs "out"))) (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
%standard-phases) "BUILD_STATIC=")
#:phases (modify-phases %standard-phases
(delete 'configure))
#:tests? #f)) #:tests? #f))
(synopsis "Tools for manipulating Linux Wireless Extensions") (synopsis "Tools for manipulating Linux Wireless Extensions")
(description "Wireless Tools are used to manipulate the now-deprecated (description "Wireless Tools are used to manipulate the now-deprecated
...@@ -1733,7 +1736,9 @@ (define-public wireless-tools ...@@ -1733,7 +1736,9 @@ (define-public wireless-tools
parameters and get the specific stats. It is deprecated in favor the nl80211 parameters and get the specific stats. It is deprecated in favor the nl80211
interface.") interface.")
(home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html") (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
(license gpl2+))) ;; wireless.21.h and wireless.22.h are distributed under lgpl2.1+, the
;; other files are distributed under gpl2.
(license (list gpl2 lgpl2.1+))))
(define-public crda (define-public crda
(package (package
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment