mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: hashcash: Fix build with CFLAGS.
* gnu/packages/networking.scm (hashcash): Fix build and restyle. [arguments]<#:tests?>: Turn off. <#:make-flags>: Add -Wno-error=implicit-function-declaration. <#:phases>: Replace old install phase with fix-makefile phase. [home-page]: Fix. Merges guix/guix!7322 Change-Id: I1790a123321d82b3257114ab60651d733fca3fe4 Signed-off-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
committed by
Cayetano Santos
parent
18ea608fcf
commit
3cf8ff32f2
@@ -4923,24 +4923,23 @@ an implementation of LLDP. It also supports some proprietary protocols.")
|
||||
"15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
|
||||
(list
|
||||
#:tests? #f ;No tests available.
|
||||
#:make-flags
|
||||
#~(list "CFLAGS=-g -O2 -Wno-error=implicit-function-declaration"
|
||||
(string-append "CC=" #$(cc-for-target)))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
;; No tests available.
|
||||
(delete 'check)
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((bindir (string-append #$output "/bin"))
|
||||
(mandir (string-append #$output "/share/man/man1"))
|
||||
(docdir (string-append #$output "/share/doc/hashcash-" #$version)))
|
||||
;; Install manually, as we don't need the `sha1' binary
|
||||
(install-file "hashcash" bindir)
|
||||
(install-file "hashcash.1" mandir)
|
||||
(install-file "README" docdir)
|
||||
(install-file "LICENSE" docdir)
|
||||
(install-file "CHANGELOG" docdir)))))))
|
||||
(home-page "https://www.hashcash.org/")
|
||||
(add-after 'unpack 'fix-makefile
|
||||
(lambda _
|
||||
(substitute* "Makefile"
|
||||
(("/usr") #$output)
|
||||
;; Only install hashcash, as we don't need the `sha1` binary.
|
||||
((" hashcash sha1 ") " hashcash ")
|
||||
(("sha1-hashcash.1 ") " ")))))))
|
||||
;; Home page does not have https.
|
||||
(home-page "http://www.hashcash.org/")
|
||||
(synopsis "Denial-of-service countermeasure")
|
||||
(description "Hashcash is a proof-of-work algorithm, which has been used
|
||||
as a denial-of-service countermeasure technique in a number of systems.
|
||||
|
||||
Reference in New Issue
Block a user