{
 "app_id": "com.openwall.John",
 "source_url": "https://raw.githubusercontent.com/flathub/com.openwall.John/master/com.openwall.John.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:08:28.025844+00:00",
 "manifest": {
  "$schema": "https://raw.githubusercontent.com/flatpak/flatpak-builder/main/data/flatpak-manifest.schema.json",
  "id": "com.openwall.John",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "john",
  "tags": [
   "1.9.1-ce"
  ],
  "finish-args": [
   "--filesystem=home",
   "--share=ipc",
   "--device=dri"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.GL": {
    "version": "1.4",
    "versions": "%{branch};%{branch-extra};1.4",
    "directory": "%{lib}/GL",
    "add-ld-path": "lib",
    "merge-dirs": "%{gl_merge_dirs}",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true,
    "download-if": "active-gl-driver",
    "enable-if": "active-gl-driver",
    "autoprune-unless": "active-gl-driver"
   }
  },
  "cleanup": [
   "/include",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "clinfo",
    "no-autogen": true,
    "no-make-install": true,
    "build-commands": [
     "install -Dm755 -t /app/bin/ clinfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Oblomov/clinfo/archive/refs/tags/3.0.23.01.25.tar.gz",
      "sha256": "6dcdada6c115873db78c7ffc62b9fc1ee7a2d08854a3bccea396df312e7331e3"
     }
    ],
    "modules": [
     {
      "name": "ocl-icd",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/OCL-dev/ocl-icd/archive/refs/tags/v2.3.2.tar.gz",
        "sha256": "ec47d7dcd961ea06695b067e8b7edb82e420ddce03e0081a908c62fd0b8535c5"
       },
       {
        "type": "script",
        "dest-filename": "autogen.sh",
        "commands": [
         "autoreconf -fiv"
        ]
       }
      ]
     },
     {
      "name": "opencl-headers",
      "buildsystem": "simple",
      "build-commands": [
       "cp -av opencl22/CL /app/include"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/KhronosGroup/OpenCL-Headers.git",
        "commit": "e986688daf750633898dfd3994e14a9e618f2aa5"
       }
      ]
     }
    ]
   },
   {
    "name": "libpcap",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.tcpdump.org/release/libpcap-1.10.5.tar.gz",
      "sha256": "37ced90a19a302a7f32e458224a00c365c117905c2cd35ac544b6880a81488f0"
     }
    ]
   },
   {
    "name": "librexgen",
    "buildsystem": "cmake",
    "subdir": "./src",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/janstarke/rexgen/archive/2.1.5.zip",
      "sha256": "c176cc7c08bc20fd6493f26bf0cd350562cdd96e3b507b08738dd442a17fa441"
     }
    ]
   },
   {
    "name": "john",
    "buildsystem": "simple",
    "subdir": "./src",
    "build-commands": [
     "###### build script ######",
     "../build.sh",
     "###### Install JtR system wide ######",
     "cp -r ../run/.   /app/bin",
     "cp -r ../doc/    /app/",
     "cp    ../README* /app/",
     "###### Bash Completion ######",
     "mkdir -p /app/share/bash-completion/completions",
     "cp ../run/john.*_completion /app/share/bash-completion/completions"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/openwall/john.git",
      "commit": "126b2a4814f24f2ff6486e2c050ecb17072be7ba"
     },
     {
      "type": "patch",
      "path": "patches/confined-system-wide-build.patch"
     },
     {
      "type": "file",
      "path": "build.sh",
      "dest-filename": "build.sh"
     },
     {
      "type": "file",
      "path": "run-john.sh"
     },
     {
      "type": "file",
      "path": "com.openwall.John.metainfo.xml"
     },
     {
      "type": "file",
      "path": "com.openwall.John.desktop"
     },
     {
      "type": "file",
      "path": "com.openwall.John.png"
     }
    ],
    "post-install": [
     "install -Dm644 ../com.openwall.John.metainfo.xml /app/share/metainfo/com.openwall.John.metainfo.xml",
     "install -Dm644 ../com.openwall.John.png /app/share/icons/hicolor/256x256/apps/com.openwall.John.png",
     "install -Dm644 ../com.openwall.John.desktop    /app/share/applications/com.openwall.John.desktop",
     "install -Dm744 ../run-john.sh                  /app/bin/run-john.sh"
    ]
   }
  ]
 }
}