summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-25 01:24:36 +0100
committerGitHub <noreply@github.com>2021-01-25 01:24:36 +0100
commiteccdb601c1662e96951c1ec8e23791c9d5ef8814 (patch)
treeede906d2dc2b7f010ce9d3519d33f77c21c561cf /pkgs
parent32e44ef1828a4378d0336e97ca1eb2681cec5fa3 (diff)
parentc784a01944c2ca134f8c49f21d1b57188adaab2a (diff)
downloadnixpkgs-eccdb601c1662e96951c1ec8e23791c9d5ef8814.tar
nixpkgs-eccdb601c1662e96951c1ec8e23791c9d5ef8814.tar.gz
nixpkgs-eccdb601c1662e96951c1ec8e23791c9d5ef8814.tar.bz2
nixpkgs-eccdb601c1662e96951c1ec8e23791c9d5ef8814.tar.lz
nixpkgs-eccdb601c1662e96951c1ec8e23791c9d5ef8814.tar.xz
nixpkgs-eccdb601c1662e96951c1ec8e23791c9d5ef8814.tar.zst
nixpkgs-eccdb601c1662e96951c1ec8e23791c9d5ef8814.zip
Merge pull request #107314 from fabaff/ike-scan
ike-scan: init at 1.9.4
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/ike-scan/default.nix54
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/tools/security/ike-scan/default.nix b/pkgs/tools/security/ike-scan/default.nix
new file mode 100644
index 00000000000..5d54e36585d
--- /dev/null
+++ b/pkgs/tools/security/ike-scan/default.nix
@@ -0,0 +1,54 @@
+{ lib
+, autoconf
+, automake
+, autoreconfHook
+, fetchFromGitHub
+, fetchpatch
+, openssl
+, stdenv
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ike-scan";
+  version = "1.9.4";
+
+  src = fetchFromGitHub {
+    owner = "royhills";
+    repo = pname;
+    rev = version;
+    sha256 = "01a39bk9ma2lm59q320m9g11909if5gc3qynd8pzn6slqiq5r8kw";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    openssl
+  ];
+
+  configureFlags = [ "--with-openssl=${openssl.dev}" ];
+
+  patches = [
+    # Using the same patches as for the Fedora RPM
+    (fetchpatch {
+      # Memory leaks, https://github.com/royhills/ike-scan/pull/15
+      url = "https://github.com/royhills/ike-scan/pull/15/commits/d864811de08dcddd65ac9b8d0f2acf5d7ddb9dea.patch";
+      sha256 = "0wbrq89dl8js7cdivd0c45hckmflan33cpgc3qm5s3az6r4mjljm";
+    })
+    (fetchpatch {
+      # Unknown vendor IDs,  https://github.com/royhills/ike-scan/pull/18, was merged but not released
+      url = "https://github.com/royhills/ike-scan/pull/18/commits/e065ddbe471880275dc7975e7da235e7a2097c22.patch";
+      sha256 = "13ly01c96nnd5yh7rxrhv636csm264m5xf2a1inprrzxkkri5sls";
+    })
+  ];
+
+  meta = with lib; {
+    description = "Tool to discover, fingerprint and test IPsec VPN servers";
+    longDescription = ''
+      ike-scan is a command-line tool that uses the IKE protocol to discover,
+      fingerprint and test IPsec VPN servers.
+    '';
+    homepage = "https://github.com/royhills/ike-scan";
+    license = with licenses; [ gpl3Plus ];
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 50e9d94b150..4ec71d13d7a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5168,6 +5168,8 @@ in
 
   iruby = callPackage ../applications/editors/jupyter-kernels/iruby { };
 
+  ike-scan = callPackage ../tools/security/ike-scan { };
+
   imapproxy = callPackage ../tools/networking/imapproxy {
     openssl = openssl_1_0_2;
   };