blob: 625fdd7a3775954e51a1b291819d5787760bc35e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# ~/Documents/git/forticlient-vpn/PKGBUILD 19 May 2026 at 09:02:02 AM
# Maintainer: Inknyto <mbaye.sene.etu@esmt.sn>
# Contributor: Meowser <edward.o.holmes@gmail.com>
# Contributor: Douglas Iuri Medeiros Cabral <douglasimcabral@zohomail.com>
pkgname=forticlient-vpn
pkgver=7.4.3.5411
pkgrel=1
pkgdesc="FortiClient VPN only build from the official Fortinet package"
arch=("x86_64")
url="https://www.fortinet.com/support/product-downloads"
license=('LicenseRef-fortinet')
depends=(
'alsa-lib'
'at-spi2-core'
'bash'
'cairo'
'dbus'
'expat'
'glib2'
'glibc'
'gtk3'
'hicolor-icon-theme'
'libcups'
'libdrm'
'libgcc'
'libnotify'
'libsecret'
'libx11'
'libxcb'
'libxcomposite'
'libxdamage'
'libxext'
'libxfixes'
'libxkbcommon'
'libxrandr'
'mesa'
'nspr'
'nss'
'pango'
'procps-ng'
'systemd-libs'
'util-linux-libs'
'zlib'
)
optdepends=(
'gtk2: legacy GTK2 tray icon support (AUR)'
'libappindicator-gtk2: GTK2 tray icon support (AUR)'
'gnome-keyring: keyring integration'
'gzip: compression support'
'iptables: firewall rules support'
'libappindicator-gtk3: system tray icon support (GTK3)'
'libxss: screen saver integration'
'net-tools: legacy network tools'
'openssl: TLS support'
'polkit: privilege escalation prompts'
'systemd: service management'
'mate-polkit: polkit authentication for MATE'
'polkit-gnome: polkit authentication for GNOME'
'polkit-kde-agent: polkit authentication for KDE'
'deepin-polkit-agent: polkit authentication for Deepin'
'pantheon-polkit-agent: polkit authentication for Pantheon'
'lxqt-policykit: polkit authentication for LXQt'
)
provides=('fortivpn' 'FortiClient')
conflicts=('forticlient')
options=('!strip' '!debug')
install='forticlient-vpn.install'
source=("forticlient_vpn_${pkgver}_amd64.deb::https://filestore.fortinet.com/forticlient/downloads/forticlient_vpn_${pkgver}_amd64.deb")
sha256sums=('d2c0366decbf0b907fbf0d9306b8ac0b705d2d9cb4eb7b946ae06ce5388d4e5a')
b2sums=('53c85785ae47d036a455a3bc4e19246f10bf98aa446229127e10d12a929011ad9c3ba6af745fe9ec11044bce685c9f582e6f98bf755ab656c6431074dc898a9d')
prepare() {
cd "$srcdir"
bsdtar -xf "forticlient_vpn_${pkgver}_amd64.deb"
}
package() {
cd "$srcdir"
# Extract the .deb data archive directly into $pkgdir
if [ -f data.tar.zst ]; then
bsdtar -xf data.tar.zst -C "$pkgdir/"
else
bsdtar -xf data.tar.xz -C "$pkgdir/"
fi
# Move systemd service from non-standard /lib to /usr/lib
install -Dm644 "${pkgdir}/lib/systemd/system/forticlient.service" \
"${pkgdir}/usr/lib/systemd/system/forticlient.service"
rm -rf "${pkgdir}/lib"
# Runtime directories — intentionally empty at install time
mkdir -p "${pkgdir}/var/lib/forticlient"
# Install license
install -Dm644 "${pkgdir}/usr/share/doc/forticlient/copyright" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Symbolic link to fortivpn CLI
mkdir -p "${pkgdir}/usr/bin"
ln -sf '/opt/forticlient/fortivpn' "${pkgdir}/usr/bin/fortivpn"
}
|