mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
snx: add version 800007027 of the CheckPoint SSL Network Extender
This commit is contained in:
parent
b7cbb4da11
commit
45eb9f5589
40
pkgs/tools/networking/snx/default.nix
Normal file
40
pkgs/tools/networking/snx/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ stdenv, fetchurl, makeWrapper, libX11, pam, gcc33 }:
|
||||
|
||||
let
|
||||
# The proper value for this offset can be found at the top of the snx_install script.
|
||||
archiveOffset = "78";
|
||||
libraryPath = stdenv.lib.makeSearchPath "lib" [libX11 pam gcc33.gcc];
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "snx-800007027";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://remote.us.publicisgroupe.net/CSHELL/snx_install.sh";
|
||||
sha256 = "1yq0r8gb6jw5pyfrw3wxvplrxxfhbhgm9ph4gyd754fyn52iwgxv";
|
||||
};
|
||||
|
||||
buildInputs = [makeWrapper];
|
||||
|
||||
unpackPhase = ''
|
||||
tail -n +${archiveOffset} ${src} | bunzip2 -c - | tar xfvp -
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" snx
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/sbin" "$out/libexec"
|
||||
mv snx "$out/libexec/"
|
||||
makeWrapper "$out/libexec/snx" "$out/sbin/snx" --prefix LD_LIBRARY_PATH ":" "${libraryPath}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.checkpoint.com/";
|
||||
description = "Check Point SSL Network Extender";
|
||||
license = "unknown";
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||
};
|
||||
}
|
BIN
pkgs/tools/networking/snx/snx_install.sh
Executable file
BIN
pkgs/tools/networking/snx/snx_install.sh
Executable file
Binary file not shown.
@ -1531,6 +1531,11 @@ let
|
||||
|
||||
smbnetfs = callPackage ../tools/filesystems/smbnetfs {};
|
||||
|
||||
snx = callPackage_i686 ../tools/networking/snx {
|
||||
inherit (pkgsi686Linux) pam gcc33;
|
||||
inherit (pkgsi686Linux.xlibs) libX11;
|
||||
};
|
||||
|
||||
stardict = callPackage ../applications/misc/stardict/stardict.nix {
|
||||
inherit (gnome) libgnomeui scrollkeeper;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user