Github messages for voidlinux
 help / color / mirror / Atom feed
From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: forticlient-7.2.1.0700
Date: Thu, 05 Oct 2023 11:07:04 +0200	[thread overview]
Message-ID: <20231005090704.abRaEKaGAQrTEQSCR8nk9IDOF3-E3cC52Efw6SH5MUM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46439@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages forticlient7.2
https://github.com/void-linux/void-packages/pull/46439

[WIP] New package: forticlient-7.2.1.0700
Forticlient VPN, which is a bit tricky to get running on void. It works for me, and I'm not sure about which dependencies does it require.

#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **NO**
  - Proprietary
  - Installs in /opt


#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/46439.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-forticlient7.2-46439.patch --]
[-- Type: text/x-diff, Size: 6194 bytes --]

From 9bbc866486a3dfc514b70157921ef32b3c8f8b6b Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 5 Oct 2023 10:44:31 +0200
Subject: [PATCH] New package: forticlient-7.2.1.0700

---
 srcpkgs/forticlient/files/forticlient/run |   3 +
 srcpkgs/forticlient/template              | 106 ++++++++++++++++++++++
 srcpkgs/forticlient/update                |   1 +
 3 files changed, 110 insertions(+)
 create mode 100755 srcpkgs/forticlient/files/forticlient/run
 create mode 100644 srcpkgs/forticlient/template
 create mode 100644 srcpkgs/forticlient/update

diff --git a/srcpkgs/forticlient/files/forticlient/run b/srcpkgs/forticlient/files/forticlient/run
new file mode 100755
index 0000000000000..c6ad465a81733
--- /dev/null
+++ b/srcpkgs/forticlient/files/forticlient/run
@@ -0,0 +1,3 @@
+#! /bin/sh
+exec 2>&1
+exec /opt/forticlient/fctsched
diff --git a/srcpkgs/forticlient/template b/srcpkgs/forticlient/template
new file mode 100644
index 0000000000000..5aff92c226094
--- /dev/null
+++ b/srcpkgs/forticlient/template
@@ -0,0 +1,106 @@
+# Template file for 'forticlient'
+pkgname=forticlient
+version=7.2.1.0700
+revision=1
+archs="x86_64"
+depends="libffi"
+short_desc="FortiClient VPN"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom:Proprietary"
+homepage="https://www.fortinet.com"
+distfiles="https://repo.fortinet.com/repo/forticlient/7.2/debian/pool/non-free/f/forticlient/forticlient_${version}_amd64.deb"
+checksum=e2197329afc7305e558da2c69dccaaf0b526e787095578d917ed78cea0a18260
+alternatives="forticlient:/usr/bin/FortiClient:/opt/forticlient/gui/FortiClient-linux-x64/FortiClient"
+make_dirs="/etc/forticlient 0755 root root
+ /var/log/forticlient/ 0755 root root"
+repository=nonfree
+nopie=yes
+
+do_install() {
+	vmkdir usr/share/applications
+	vinstall usr/share/applications/forticlient.desktop 644 /usr/share/applications
+	vinstall usr/share/applications/forticlient-register.desktop 644 /usr/share/applications
+	vinstall opt/forticlient/Fortitray.desktop 644 /usr/share/applications
+
+	vmkdir usr/share/doc/forticlient
+	vinstall usr/share/doc/forticlient/changelog 644 /usr/share/doc/forticlient
+	vinstall usr/share/doc/forticlient/copyright 644 /usr/share/doc/forticlient
+	
+	for size in 16 22 24 32 48 64 128 256; do
+		vinstall usr/share/icons/hicolor/${size}x${size}/apps/forticlient.png 644 \
+			/usr/share/icons/hicolor/${size}x${size}/apps
+	done
+	
+	vinstall usr/share/polkit-1/actions/org.fortinet.forticlient.policy 644 \
+		/usr/share/polkit-1/actions
+	vinstall usr/share/polkit-1/actions/org.fortinet.fortitray.policy 644 \
+		/usr/share/polkit-1/actions
+	
+	cd opt/forticlient
+	vinstall FortiGuardAgent 744 /opt/forticlient
+	vinstall confighandler 744 /opt/forticlient
+	vinstall epctrl 744 /opt/forticlient
+	vinstall fazlogupload 744 /opt/forticlient
+	vinstall fchelper 744 /opt/forticlient
+	vinstall fctsched 744 /opt/forticlient
+	vinstall firewall 744 /opt/forticlient
+	vinstall fmon 744 /opt/forticlient
+	vinstall forticlient-cli 744 /opt/forticlient
+	vinstall fortitray 744 /opt/forticlient
+	vinstall fortitraylauncher 744 /opt/forticlient
+	vinstall fortivpn 744 /opt/forticlient
+	vinstall scanunit 744 /opt/forticlient
+	vinstall update 744 /opt/forticlient
+	vinstall vpn 744 /opt/forticlient
+	vinstall vulscan 744 /opt/forticlient
+	vinstall webfilter 744 /opt/forticlient
+	vinstall ztproxy 744 /opt/forticlient
+
+	vinstall FGD_category_list.json 644 /opt/forticlient
+	vinstall TLS_whitelist.json 644 /opt/forticlient
+	vinstall icdb 644 /opt/forticlient
+	vinstall isdb_app.txt 644 /opt/forticlient
+	vinstall isdb_map.dat 644 /opt/forticlient
+	vinstall libav.so 644 /opt/forticlient
+	vinstall libvcm.so 644 /opt/forticlient
+	vinstall wf_intercepted_apps.json 644 /opt/forticlient
+	vinstall vcm_sig/vulns.dat 644 /opt/forticlient/vcm_sig
+	vinstall vir_sig/vir_high 644 /opt/forticlient/vir_sig/vir_high
+
+	cd images
+	for name in Forticlient Virus_Alert alert avatar_b notification_error notification_info notification_warning; do
+		vinstall ${name}.png 644 /opt/forticlient/images
+	done
+	cd ../gui/FortiClient-linux-x64
+	vmkdir /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall FortiClient 744 /opt/forticlient/gui/FortiClient-linux-x64	
+	vinstall chrome-sandbox 744 /opt/forticlient/gui/FortiClient-linux-x64	
+	vinstall chrome_100_percent.pak 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall chrome_200_percent.pak 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall icudtl.dat 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall libEGL.so 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall libGLESv2.so 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall libffmpeg.so 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall libvk_swiftshader.so 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall libvulkan.so 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall resources.pak 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall snapshot_blob.bin 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall v8_context_snapshot.bin 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall version 644 /opt/forticlient/gui/FortiClient-linux-x64
+	vinstall vk_swiftshader_icd.json 644 /opt/forticlient/gui/FortiClient-linux-x64
+
+	vmkdir opt/forticlient/gui/FortiClient-linux-x64/locales
+	vcopy "locales/*.pak" opt/forticlient/gui/FortiClient-linux-x64/locales
+
+	vinstall resources/app.asar 644 /opt/forticlient/gui/FortiClient-linux-x64/resources
+
+	vinstall swiftshader/libEGL.so 644 /opt/forticlient/gui/FortiClient-linux-x64/swiftshader
+	vinstall swiftshader/libGLESv2.so 644 /opt/forticlient/gui/FortiClient-linux-x64/swiftshader
+}
+
+post_install() {
+	vsv forticlient
+	vlicense usr/share/doc/forticlient/copyright
+	vlicense opt/forticlient/gui/FortiClient-linux-x64/LICENSE
+	vlicense opt/forticlient/gui/FortiClient-linux-x64/LICENSES.chromium.html
+}
diff --git a/srcpkgs/forticlient/update b/srcpkgs/forticlient/update
new file mode 100644
index 0000000000000..2895f28691111
--- /dev/null
+++ b/srcpkgs/forticlient/update
@@ -0,0 +1 @@
+pattern="forticlient_\K[\d.]+"
\ No newline at end of file

  parent reply	other threads:[~2023-10-05  9:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05  8:54 [PR PATCH] " Eloitor
2023-10-05  9:03 ` [PR PATCH] [Updated] " Eloitor
2023-10-05  9:07 ` Eloitor [this message]
2023-10-05  9:13 ` Eloitor
2023-10-05  9:19 ` Eloitor
2023-10-05 11:30 ` [PR PATCH] [Updated] " Eloitor
2024-01-04  1:46 ` github-actions
2024-01-18  1:46 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231005090704.abRaEKaGAQrTEQSCR8nk9IDOF3-E3cC52Efw6SH5MUM@z \
    --to=eloitor@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).