Advertisement
Guest User

package_definition

a guest
Mar 1st, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 2.65 KB | None | 0 0
  1. ;;; Copyright © 2024 Pablo Martínez <p.martinez@cleverpy.com>
  2.  
  3. (define-module (packages openfortivpn-webview)
  4.     #:use-module ((guix licenses) #:prefix license:)
  5.     #:use-module (guix packages)
  6.     #:use-module (guix download)
  7.     #:use-module (guix git-download)
  8.     #:use-module (guix build-system gnu)
  9.     #:use-module (guix utils)
  10.     #:use-module (gnu packages qt)
  11.     #:use-module (gnu packages pkg-config)
  12.     #:use-module (gnu packages samba)
  13.     #:use-module (gnu packages tls))
  14.  
  15. (define-public openfortivpn-webview
  16.     (package
  17.         (name "openfortivpn-webview")
  18.         (version "1.2.0")
  19.         (source (origin
  20.           (method git-fetch)
  21.           (uri (git-reference
  22.             (url "https://github.com/gm-vm/openfortivpn-webview.git")
  23.             (commit "e7aa3c10037c7d8daf80b34fe6b4992d81a5b44e")))
  24.           (file-name (git-file-name name version))
  25.           (sha256
  26.             (base32 "1446s2fri819z0jgdxrd1xan1wmzh8xvx2x9dmvgs0bj6n8yv6d9"))))
  27.           (build-system gnu-build-system)
  28.           (arguments
  29.             `(#:tests? #f
  30.               #:phases
  31.               (modify-phases %standard-phases
  32.                              (add-after 'unpack 'jump-to-qt-dir
  33.                                         (lambda* _
  34.                                                  (chdir "./openfortivpn-webview-qt")))
  35.                              (replace 'configure
  36.                                       (lambda* (#:key outputs #:allow-other-keys)
  37.                                                (invoke "qmake" "." (string-append "PREFIX="
  38.                                     (assoc-ref outputs "out")))))
  39.                              (replace 'build
  40.                                       (lambda* _
  41.                                       (invoke "make")))
  42.                             (delete 'compress-documentation))))
  43.           (native-inputs (list pkg-config qtbase qtwebchannel qtwebengine))
  44.           (inputs (list qtbase qtwebchannel qtwebengine qtwayland))
  45.           (home-page "https://github.com/gm-vm/openfortivpn-webview")
  46.           (synopsis "Application to perform the SAML single sing-on and
  47.                    easily retrieve the SVPNCOOKIE needed by
  48.                    openfortivpn.")
  49.           (description "Application to perform the SAML single sing-on and
  50.                        easily retrieve the SVPNCOOKIE needed by
  51.                        openfortivpn. The application will simply open the
  52.                        SAML page to let you sign in. As soon as the
  53.                        SVPNCOOKIE is set, the application will print it to
  54.                        stdout and exit")
  55.           (license license:expat)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement