Skip to content

Commit

Permalink
openfortivpn: configure --enable-legacy-pppd
Browse files Browse the repository at this point in the history
Add the system pppd executable as a dependency.

The configure option `--enable-legacy-pppd` is required for pppd < 2.5.0.
As soon as a new macOS version ships pppd ≥ 2.5.0, you will have to add
code to:
- remove `--enable-legacy-pppd` for new targets that ship pppd ≥ 2.5.0;
- keep `--enable-legacy-pppd` for old targets that still ship pppd < 2.5.0.

See:
adrienverge/openfortivpn#1148
adrienverge/openfortivpn#1159

Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
  • Loading branch information
DimitriPapadopoulos and SMillerDev committed Nov 16, 2023
1 parent f04bca0 commit d88b7a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Formula/o/openfortivpn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ class Openfortivpn < Formula
depends_on "pkg-config" => :build
depends_on "openssl@3"

# awaiting formula creation
# uses_from_macos "pppd"

def install
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--enable-legacy-pppd", # only for pppd < 2.5.0
"--prefix=#{prefix}",
"--sysconfdir=#{etc}/openfortivpn"
system "make", "install"
Expand Down

0 comments on commit d88b7a1

Please sign in to comment.