SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "fusioninventory-agent"

# SliTaz package receipt.

PACKAGE="fusioninventory-agent"
VERSION="2.6"
CATEGORY="network"
SHORT_DESC="FusionInventory generic management agent."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://fusioninventory.org/"

TARBALL="FusionInventory-Agent-$VERSION.tar.gz"
WGET_URL="https://github.com/fusioninventory/$PACKAGE/releases/download/$VERSION/$TARBALL"

DEPENDS="libwww-perl perl-file-copy-recursive perl-file-which perl-http-proxy
    perl-http-server-simple perl-http-server-simple-authen perl-io-capture
    perl-io-socket-ssl perl-ipc-run perl-json-pp perl-lwp-protocol-https
    perl-net-ip perl-net-snmp perl-parallel-forkmanager perl-test-compile
    perl-test-deep perl-test-exception perl-test-nowarnings perl-test-mockmodule
    perl-test-mockobject perl-text-template perl-universal-require perl-uri
    perl-xml-treepp"
BUILD_DEPENDS="$DEPENDS"

current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/archive.*tar/!d;/pkg/d;s|.*/\(.*[0-9]\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|/usr/local|/usr|;s|\$(PREFIX)\(/.../\)|\1|' \
        Makefile.PL

    perl Makefile.PL &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/*    $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)