blob: f31737c1ecff81c01735d1c8650334ea8f3cbb9f (
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
|
# Maintainer: akaessens
pkgname=fusioninventory-agent-rust-git
_pkgname=fusioninventory-agent-rust
pkgver=3.0.0.dev
pkgrel=1
pkgdesc='An application for keeping track of the hardware and software'
url='http://fusioninventory.org'
source=("git+https://github.com/fusioninventory/$_pkgname")
arch=(x86_64)
license=('AGPL-3.0-or-later')
makedepends=('cargo')
options=(!debug !lto)
depends=('lshw' 'dmidecode')
provides=('fusioninventory-agent')
conflicts=('fusioninventory-agent')
sha256sums=('SKIP')
build () {
cd "$srcdir/$_pkgname"
cargo build --release
}
package() {
cd "$srcdir/$_pkgname"
# binary
install -Dm755 target/release/fusioninventory-agent "${pkgdir}/opt/fusioninventory/fusioninventory-agent"
# config and webserver
install agent.cfg "${pkgdir}/opt/fusioninventory/"
cp -r src/static "${pkgdir}/opt/fusioninventory/"
cd "$srcdir/.."
# custom systemd service
install -Dm644 fusioninventory-agent.service "${pkgdir}/usr/lib/systemd/system/fusioninventory-agent.service"
}
|