all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Benjamin <benjamin@uvy.fr>
To: 66990@debbugs.gnu.org
Cc: Benjamin <benjamin@uvy.fr>
Subject: [bug#66990] [PATCH 1/3] gnu: Add ppp-2.4.9.
Date: Tue,  7 Nov 2023 17:36:16 +0100	[thread overview]
Message-ID: <ecf60b4436d34cbfeb79d34bc6737d5ac128255c.1699374647.git.benjamin@uvy.fr> (raw)
In-Reply-To: <cover.1699374647.git.benjamin@uvy.fr>

* gnu/packages/samba.scm (ppp-2.4.9): New variable.

Change-Id: I496016429ec4a8289b2a4ab51caa9245b914b4a5
---
 gnu/packages/samba.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index 89a79cee2d..f52b86e1ed 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -507,6 +507,38 @@ (define-public ppp
                    license:gpl2+
                    license:public-domain))))
 
+(define-public ppp-2.4.9
+  (package
+    (inherit ppp)
+    (name "ppp")
+    (version "2.4.9")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ppp-project/ppp")
+                    (commit (string-append "ppp-" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1bhhksdclsnkw54a517ndrw55q5zljjbh9pcqz1z4a2z2flxpsgk"))))
+         (arguments
+    (list #:tests? #f                    ;; No "check" target
+          #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
+          #:phases
+          #~(modify-phases %standard-phases
+              (add-before 'configure 'patch-Makefile
+                (lambda* (#:key inputs #:allow-other-keys)
+                  (let ((openssl (assoc-ref inputs "openssl"))
+                        (libpcap (assoc-ref inputs "libpcap")))
+                    (substitute* "pppd/Makefile.linux"
+                      (("/usr/include/openssl")
+                       (string-append openssl "/include"))
+                      (("-DPPP_FILTER")
+                       (string-append "-DPPP_FILTER -I" libpcap "/include")))
+                    (substitute* "pppd/pppcrypt.h"
+                      (("des\\.h") "openssl/des.h")))
+                  #t)))))))
+
 (define-public wsdd
   (package
     (name "wsdd")
-- 
2.41.0





  reply	other threads:[~2023-11-07 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 16:33 [bug#66990] [PATCH 0/3] fix build of network-manager-fortisslvpn and openfortivpn Benjamin
2023-11-07 16:36 ` Benjamin [this message]
2023-11-07 16:36 ` [bug#66990] [PATCH 2/3] gnu: openfortivpn: fix build Benjamin
2023-11-07 16:36 ` [bug#66990] [PATCH 3/3] gnu: network-manager-fortisslvpn: " Benjamin
2023-11-07 17:07   ` Liliana Marie Prikler
2023-11-25 22:17 ` bug#66990: [PATCH 0/3] fix build of network-manager-fortisslvpn and openfortivpn Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ecf60b4436d34cbfeb79d34bc6737d5ac128255c.1699374647.git.benjamin@uvy.fr \
    --to=benjamin@uvy.fr \
    --cc=66990@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.