mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: ppp: Use OpenSSL for cryptography.
* gnu/packages/samba.scm (ppp)[source](patches): Add upstream patch. [inputs]: Add OPENSSL. [arguments]: Add substitution for OpenSSL headers.
This commit is contained in:
parent
70dc8db8e7
commit
65a58f3907
1 changed files with 17 additions and 1 deletions
|
@ -400,6 +400,18 @@ (define-public ppp
|
|||
(method url-fetch)
|
||||
(uri (string-append "https://www.samba.org/ftp/ppp/ppp-"
|
||||
version ".tar.gz"))
|
||||
(patches
|
||||
(list (origin
|
||||
;; Use OpenSSL for cryptography instead of the obsolete glibc
|
||||
;; crypto functions that were removed in glibc 2.28.
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://github.com/paulusmack/ppp/commit/"
|
||||
"3c7b86229f7bd2600d74db14b1fe5b3896be3875"
|
||||
".patch"))
|
||||
(file-name "ppp-use-openssl-crypto.patch")
|
||||
(sha256
|
||||
(base32
|
||||
"0qlbi247lx3injpy8a1gcij9yilik0vfaibkpvdp88k3sa1rs69z")))))
|
||||
(sha256
|
||||
(base32
|
||||
"0c7vrjxl52pdwi4ckrvfjr08b31lfpgwf3pp0cqy76a77vfs7q02"))))
|
||||
|
@ -412,15 +424,19 @@ (define-public ppp
|
|||
(add-before 'configure 'patch-Makefile
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((libc (assoc-ref inputs "libc"))
|
||||
(openssl (assoc-ref inputs "openssl"))
|
||||
(libpcap (assoc-ref inputs "libpcap")))
|
||||
(substitute* "pppd/Makefile.linux"
|
||||
(("/usr/include/crypt\\.h")
|
||||
(string-append libc "/include/crypt.h"))
|
||||
(("/usr/include/openssl")
|
||||
(string-append openssl "/include/openssl"))
|
||||
(("/usr/include/pcap-bpf.h")
|
||||
(string-append libpcap "/include/pcap-bpf.h")))
|
||||
#t))))))
|
||||
(inputs
|
||||
`(("libpcap" ,libpcap)))
|
||||
`(("libpcap" ,libpcap)
|
||||
("openssl" ,(@ (gnu packages tls) openssl))))
|
||||
(synopsis "Implementation of the Point-to-Point Protocol")
|
||||
(home-page "https://ppp.samba.org/")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue