mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: usbguard: Remove input labels.
* gnu/packages/hardware.scm (usbguard)[native-inputs, inputs]: Remove labels. [arguments]: Use SEARCH-INPUT-FILE and remove trailing #t's.
This commit is contained in:
parent
678c5bea3a
commit
0945e43bf7
1 changed files with 26 additions and 29 deletions
|
@ -837,7 +837,7 @@ (define-public usbguard
|
|||
(base32 "0rc0213qsfap3sgx9m3m1kppxbjl2fdwmzlbn5rbmn1i33125dfi"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-bootstrap-script
|
||||
(lambda _
|
||||
|
@ -849,19 +849,17 @@ (define-public usbguard
|
|||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "configure"
|
||||
(("/usr/include/catch")
|
||||
(string-append (assoc-ref inputs "catch") "/include")))
|
||||
(dirname (search-input-file inputs "include/catch.hpp"))))
|
||||
;; Do not create log directory.
|
||||
(substitute* "Makefile.in" ((".*/log/usbguard.*") ""))
|
||||
;; Disable LDAP tests: they use 'sudo'.
|
||||
(substitute* "src/Tests/Makefile.in"
|
||||
(("\\$\\(am__append_2\\)") ""))
|
||||
#t))
|
||||
(("\\$\\(am__append_2\\)") ""))))
|
||||
(add-after 'install 'delete-static-library
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; It can't be direclty disabled since it's needed for the tests.
|
||||
(delete-file (string-append (assoc-ref outputs "out")
|
||||
"/lib/libusbguard.a"))
|
||||
#t))
|
||||
"/lib/libusbguard.a"))))
|
||||
(add-after 'install 'install-zsh-completion
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
|
@ -869,8 +867,7 @@ (define-public usbguard
|
|||
(string-append out "/share/zsh/site-functions")))
|
||||
(mkdir-p site-functions)
|
||||
(copy-file "scripts/usbguard-zsh-completion"
|
||||
(string-append site-functions "/_usbguard"))
|
||||
#t))))
|
||||
(string-append site-functions "/_usbguard"))))))
|
||||
#:make-flags
|
||||
(list (string-append "BASH_COMPLETION_DIR="
|
||||
(assoc-ref %outputs "out")
|
||||
|
@ -883,28 +880,28 @@ (define-public usbguard
|
|||
"--with-dbus"
|
||||
"--with-polkit")))
|
||||
(inputs
|
||||
`(("audit" ,audit)
|
||||
("catch" ,catch-framework)
|
||||
("dbus-glib" ,dbus-glib)
|
||||
("ldap" ,openldap)
|
||||
("libcap-ng" ,libcap-ng)
|
||||
("libseccomp" ,libseccomp)
|
||||
("libsodium" ,libsodium)
|
||||
("pegtl" ,pegtl)
|
||||
("polkit" ,polkit)
|
||||
("protobuf" ,protobuf)
|
||||
("libqb" ,libqb)))
|
||||
(list audit
|
||||
catch-framework
|
||||
dbus-glib
|
||||
openldap
|
||||
libcap-ng
|
||||
libseccomp
|
||||
libsodium
|
||||
pegtl
|
||||
polkit
|
||||
protobuf
|
||||
libqb))
|
||||
(native-inputs
|
||||
`(("asciidoc" ,asciidoc)
|
||||
("autoconf" ,autoconf)
|
||||
("automake" ,automake)
|
||||
("libtool" ,libtool)
|
||||
("bash-completion" ,bash-completion)
|
||||
("gdbus-codegen" ,glib "bin")
|
||||
("umockdev" ,umockdev)
|
||||
("xmllint" ,libxml2)
|
||||
("xsltproc" ,libxslt)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(list asciidoc
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
bash-completion
|
||||
`(,glib "bin")
|
||||
umockdev
|
||||
libxml2
|
||||
libxslt
|
||||
pkg-config))
|
||||
(home-page "https://usbguard.github.io")
|
||||
(synopsis "Helps to protect your computer against rogue USB devices (a.k.a. BadUSB)")
|
||||
(description "USBGuard is a software framework for implementing USB device
|
||||
|
|
Loading…
Reference in a new issue