mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: hostapd: Use G-expressions.
* gnu/packages/admin.scm (hostapd)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
3b3a4544a1
commit
a41fee184f
1 changed files with 35 additions and 40 deletions
|
@ -2023,16 +2023,15 @@ (define-public hostapd
|
|||
"0pcik0a6yin9nib02frjhaglmg44hwik086iwg1751b7kdwpqvi0"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda _
|
||||
;; This is mostly copied from 'wpa-supplicant' above.
|
||||
(chdir "hostapd")
|
||||
(copy-file "defconfig" ".config")
|
||||
(let ((port (open-file ".config" "al")))
|
||||
(display "
|
||||
CONFIG_LIBNL32=y
|
||||
(display "CONFIG_LIBNL32=y
|
||||
CONFIG_IEEE80211R=y
|
||||
CONFIG_IEEE80211N=y
|
||||
CONFIG_IEEE80211AC=y\n" port)
|
||||
|
@ -2041,27 +2040,23 @@ (define-public hostapd
|
|||
(lambda _
|
||||
(substitute* "src/drivers/drivers.mak"
|
||||
(("pkg-config")
|
||||
,(pkg-config-for-target)))))
|
||||
#$(pkg-config-for-target)))))
|
||||
(add-after 'install 'install-man-pages
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(man (string-append out "/share/man"))
|
||||
(let* ((man (string-append #$output "/share/man"))
|
||||
(man1 (string-append man "/man1"))
|
||||
(man8 (string-append man "/man8")))
|
||||
(define (copy-man-page target)
|
||||
(lambda (file)
|
||||
(install-file file target)))
|
||||
|
||||
(for-each (copy-man-page man1)
|
||||
(find-files "." "\\.1"))
|
||||
(for-each (copy-man-page man8)
|
||||
(find-files "." "\\.8"))))))
|
||||
|
||||
#:make-flags (list (string-append "CC=" ,(cc-for-target))
|
||||
(string-append "BINDIR=" (assoc-ref %outputs "out")
|
||||
"/sbin")
|
||||
(string-append "LIBDIR=" (assoc-ref %outputs "out")
|
||||
"/lib"))
|
||||
#:make-flags
|
||||
#~(list (string-append "CC=" #$(cc-for-target))
|
||||
(string-append "BINDIR=" #$output "/sbin")
|
||||
(string-append "LIBDIR=" #$output "/lib"))
|
||||
#:tests? #f))
|
||||
(native-inputs (list pkg-config))
|
||||
|
||||
|
|
Loading…
Reference in a new issue