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 , openssl
, ppp , ppp
, systemd , systemd
@ -8,13 +12,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "openfortivpn"; pname = "openfortivpn";
version = "1.20.2"; version = "1.20.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "adrienverge"; owner = "adrienverge";
repo = pname; repo = pname;
rev = "v${version}"; 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 # 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 = [ configureFlags = [
"--with-openssl=${openssl.dev}" "--localstatedir=/var"
"--sysconfdir=/etc" "--sysconfdir=/etc"
"--with-openssl=${openssl.dev}"
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
autoreconfHook autoreconfHook
]; ];
buildInputs = [ buildInputs = [
libpcap libpcap
libxcrypt libxcrypt
@ -47,6 +49,8 @@ stdenv.mkDerivation rec {
scripts/{pon,poff,plog} scripts/{pon,poff,plog}
''; '';
enableParallelBuilding = true;
makeFlags = [ makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc" "CC=${stdenv.cc.targetPrefix}cc"
]; ];
@ -57,11 +61,8 @@ stdenv.mkDerivation rec {
"sysconfdir=$(out)/etc" "sysconfdir=$(out)/etc"
]; ];
preInstall = ''
mkdir -p $out/bin
'';
postInstall = '' postInstall = ''
install -D -m 755 scripts/{pon,poff,plog} $out/bin install -Dm755 -t $out/bin scripts/{pon,poff,plog}
''; '';
postFixup = '' postFixup = ''