wok-current view fusioninventory-agent/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 1ce6630d50fe |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fusioninventory-agent"
4 VERSION="2.6"
5 CATEGORY="network"
6 SHORT_DESC="FusionInventory generic management agent."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://fusioninventory.org/"
11 TARBALL="FusionInventory-Agent-$VERSION.tar.gz"
12 WGET_URL="https://github.com/fusioninventory/$PACKAGE/releases/download/$VERSION/$TARBALL"
14 DEPENDS="libwww-perl perl-file-copy-recursive perl-file-which perl-http-proxy
15 perl-http-server-simple perl-http-server-simple-authen perl-io-capture
16 perl-io-socket-ssl perl-ipc-run perl-json-pp perl-lwp-protocol-https
17 perl-net-ip perl-net-snmp perl-parallel-forkmanager perl-test-compile
18 perl-test-deep perl-test-exception perl-test-nowarnings perl-test-mockmodule
19 perl-test-mockobject perl-text-template perl-universal-require perl-uri
20 perl-xml-treepp"
21 BUILD_DEPENDS="$DEPENDS"
23 current_version()
24 {
25 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
26 sed '/archive.*tar/!d;/pkg/d;s|.*/\(.*[0-9]\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's|/usr/local|/usr|;s|\$(PREFIX)\(/.../\)|\1|' \
33 Makefile.PL
35 perl Makefile.PL &&
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 }