ocsinventory-agent3

LOW
maintainer executter 0 votes scanned 2026-10-28 15:50:30.098556
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: executter <executter at hotmail dot com>
2
3pkgname=ocsinventory-agent3
4pkgver=3.0.0
5pkgrel=1
6pkgdesc="Hardware and software inventory agent for OCS Inventory server 3.x"
7arch=('x86_64')
8url="https://github.com/OCSInventory-NG/OCSInventory-Agent-Rework"
9license=('GPL-3.0-or-later' 'GPL-3.0-only')
10depends=('bash' 'ca-certificates' 'coreutils' 'dmidecode' 'glibc'
11 'inetutils' 'iproute2' 'systemd' 'tar' 'util-linux' 'which')
12makedepends=('dart')
13optdepends=('cups: printer inventory'
14 'libdisplay-info: monitor inventory'
15 'libvirt: libvirt virtual machine inventory'
16 'pciutils: controller, sound and video card inventory'
17 'python: process, cron and uptime inventory (Extended template)'
18 'smartmontools: disk model, firmware and serial numbers'
19 'sudo: per-user VM, firewall and TeamViewer inventory'
20 'teamviewer: TeamViewer ID inventory (Extended template)'
21 'upower: battery inventory'
22 'usbutils: USB device inventory'
23 'virtualbox: VirtualBox virtual machine inventory')
24options=('!strip' '!debug')
25install=$pkgname.install
26backup=('etc/ocsinventory-agent/config.json')
27source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"
28 'fix-agent-version.patch'
29 'fix-os-release.patch'
30 'fix-ip-address.patch'
31 'config.json'
32 'linux-arch-template.json'
33 'linux-arch-extended-template.json')
34sha256sums=('704d641fc523902f88c05aa665e68d614cf5a3a26ce1f69e5fd3610fc4725365'
35 '212f04b36efccf976251226ce1fc09f333ce7dafe3b50634b5199f81bdf1a9d3'
36 'd474fb83581dd17d282ea03558c9e3d9fc826e2d426e93e93ffd3179a4ad1b31'
37 'b504d7ce0480966bb044d28703ec1df9ef3ac5e52afbd03c21a1cc248cba0923'
38 '3d1a7939a86f46a01efc14de561371ca63ad5228256585c37139b0032f603027'
39 '7918b3fdb1d1c6751cab7c3ba66b1b4bb0b34568ca839e3e32596595a311e60a'
40 '097ba2e2892b5ace03c77d7e33f3d46ea8afd0a3ee886cdf02b91e70cdf68445')
41
42prepare() {
43 cd OCSInventory-Agent-Rework-$pkgver
44
45 # Merged after 3.0.0: https://github.com/OCSInventory-NG/OCSInventory-Agent-Rework/pull/168
46 patch -Np1 -i ../fix-agent-version.patch
47 # https://github.com/OCSInventory-NG/OCSInventory-Agent-Rework/pull/173
48 patch -Np1 -i ../fix-os-release.patch
49 # https://github.com/OCSInventory-NG/OCSInventory-Agent-Rework/pull/172
50 patch -Np1 -i ../fix-ip-address.patch
51
52 sed -i '/^PIDFile=/d' setup/linux/ocsinventory-agent.service
53
54 export PUB_CACHE="$srcdir/pub-cache"
55 dart --suppress-analytics pub get
56}
57
58build() {
59 cd OCSInventory-Agent-Rework-$pkgver
60
61 export PUB_CACHE="$srcdir/pub-cache"
62 dart --suppress-analytics compile exe -DAPP_VERSION=$pkgver \
63 -o ocsinventory-cli lib/app/app.dart
64}
65
66package() {
67 install -Dm600 config.json "$pkgdir/etc/ocsinventory-agent/config.json"
68 install -Dm644 -t "$pkgdir/usr/share/ocsinventory-agent3" \
69 linux-arch-template.json linux-arch-extended-template.json
70
71 cd OCSInventory-Agent-Rework-$pkgver
72 install -Dm755 ocsinventory-cli "$pkgdir/usr/bin/ocsinventory-cli"
73 install -Dm644 setup/linux/ocsinventory-agent.service \
74 "$pkgdir/usr/lib/systemd/system/ocsinventory-agent3.service"
75}
76

Scan history

Scanned at (UTC)SeverityRules
2026-10-28 15:50:30 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion