blob: 68abfa341fa72c22ca5f859e57bc27564a44a295 (
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
|
# SPDX-License-Identifier: 0BSD
# Maintainer: Samuel Bernard <samuel.bernard@gmail.com>
pkgname=oneleet-agent
pkgver=2.3.1
pkgrel=2
pkgdesc='Endpoint security and compliance agent by Oneleet'
arch=('x86_64' 'aarch64')
url='https://www.oneleet.com/'
license=('LicenseRef-Proprietary')
depends=(
'alsa-lib'
'at-spi2-core'
'cairo'
'dbus'
'expat'
'glib2'
'glibc'
'gtk3'
'libcups'
'libgcc'
'libnotify'
'libsecret'
'libx11'
'libxcb'
'libxcomposite'
'libxdamage'
'libxext'
'libxfixes'
'libxkbcommon'
'libxrandr'
'libxss'
'libxtst'
'mesa'
'nspr'
'nss'
'pango'
'systemd-libs'
'util-linux-libs'
'xdg-utils'
)
optdepends=('libappindicator-gtk3: legacy system tray support')
# Preserve vendor binaries byte-for-byte for Oneleet's signed update mechanism.
options=('!strip' '!debug')
install='oneleet-agent.install'
source=('oneleet-daemon.service' 'oneleet-agent.sysusers' 'osquery.conf' 'LICENSE.oneleet')
source_x86_64=("https://downloads.oneleet.com/agent/linux/Oneleet_${pkgver}_amd64.deb")
source_aarch64=("https://downloads.oneleet.com/agent/linux/Oneleet_${pkgver}_arm64.deb")
sha512sums=('a6b526737d54bd6ce96ba42882cd3733daad8af217da946447e2deeae857aedf12428b3c47f1feb1939b1fac044fa5e8ce2930c781fc89a82e6152f263478979'
'69218b100ac240d112a99676d3f91de32bada71c5bf5d24ac112e74fdec1ac04243f567d5ee5c2d1cf90e75283b47be5a46520091498cb9c4ff098ac48f1cb9e'
'ca4b6defb8adcc010050bc8b1bb8f8092c4928b8a0fba32146abcfb256e4d91672f88ca2cdf6210e754e5b8ac5e23fb023806ccd749ac8b701f79a691f03c87a'
'028763481b30f2f134d15837cfac9dc14543e5322ef6c0fbae9f8a20d6854c88b6693739bb5d75b1234d39b96c76c0babf2a229eabe11dcdd014e194a19fdcdd')
sha512sums_x86_64=('2892b4617306522ccac7cc7320f6a1456e4c308e9edca5a7af87ecce451d615a4561c2d99ad10c27913e8e9320cacc2f5b984575c3d47c9a9456377fa8ac38b5')
sha512sums_aarch64=('974d9ba6dfc93d0520270d53269e3a6231230a527fe8478cc3ade9fa6dd508f77aca2b17d144bbf3b1d7c1773a04d96146e60e8dc51357cf6f0451d6489dfe43')
package() {
bsdtar --no-same-owner -xf data.tar.xz -C "$pkgdir"
install -Dm644 oneleet-daemon.service \
"$pkgdir/usr/lib/systemd/system/oneleet-daemon.service"
install -Dm644 oneleet-agent.sysusers \
"$pkgdir/usr/lib/sysusers.d/oneleet-agent.conf"
install -Dm644 osquery.conf \
"$pkgdir/usr/share/oneleet-agent/osquery.conf"
install -Dm644 LICENSE.oneleet \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -d "$pkgdir/usr/bin"
ln -s /opt/Oneleet/oneleet-agent "$pkgdir/usr/bin/oneleet-agent"
ln -s /opt/Oneleet/oneleet-daemon "$pkgdir/usr/bin/oneleet-cli"
# Chromium requires its fallback sandbox to be owned by root and setuid.
chmod 4755 "$pkgdir/opt/Oneleet/chrome-sandbox"
}
|