Merge pull request #230687 from peterhoeg/u/openfortivpn_1_20_3

openfortivpn: 1.20.2 -> 1.20.3
This commit is contained in:
Georges Dubus 2023-05-09 10:31:07 +02:00 committed by GitHub
commit 644e10a761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 8 deletions

View file

@ -1,4 +1,8 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config
{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, pkg-config
, openssl
, ppp
, systemd
@ -8,13 +12,13 @@
stdenv.mkDerivation rec {
pname = "openfortivpn";
version = "1.20.2";
version = "1.20.3";
src = fetchFromGitHub {
owner = "adrienverge";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Ml1aVvF+kqlSTuzZeHG8Ry+BA24YdWACwQNlO2K+FGo=";
hash = "sha256-3HKVHH9S409t07TgiZtw58AhQH6W+Ch8chsSmof1Jkk=";
};
# we cannot write the config file to /etc and as we don't need the file, so drop it

View file

@ -23,14 +23,16 @@ stdenv.mkDerivation rec {
};
configureFlags = [
"--with-openssl=${openssl.dev}"
"--localstatedir=/var"
"--sysconfdir=/etc"
"--with-openssl=${openssl.dev}"
];
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
libpcap
libxcrypt
@ -47,6 +49,8 @@ stdenv.mkDerivation rec {
scripts/{pon,poff,plog}
'';
enableParallelBuilding = true;
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
@ -57,11 +61,8 @@ stdenv.mkDerivation rec {
"sysconfdir=$(out)/etc"
];
preInstall = ''
mkdir -p $out/bin
'';
postInstall = ''
install -D -m 755 scripts/{pon,poff,plog} $out/bin
install -Dm755 -t $out/bin scripts/{pon,poff,plog}
'';
postFixup = ''