wok annotate fusioninventory-agent/receipt @ rev 24565
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 25 22:15:31 2022 +0000 (2022-02-25) |
parents | 3434c7a83344 |
children | 1ce6630d50fe |
rev | line source |
---|---|
pascal@20463 | 1 # SliTaz package receipt. |
pascal@20463 | 2 |
pascal@20463 | 3 PACKAGE="fusioninventory-agent" |
Hans-G?nter@22787 | 4 VERSION="2.5.2" |
pascal@20463 | 5 CATEGORY="network" |
Hans-G?nter@22787 | 6 SHORT_DESC="FusionInventory generic management agent." |
pascal@20463 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20463 | 8 LICENSE="GPL2" |
Hans-G?nter@22787 | 9 WEB_SITE="http://fusioninventory.org/" |
Hans-G?nter@22787 | 10 |
pascal@20463 | 11 TARBALL="FusionInventory-Agent-$VERSION.tar.gz" |
pascal@20463 | 12 WGET_URL="https://github.com/fusioninventory/$PACKAGE/releases/download/$VERSION/$TARBALL" |
pascal@20463 | 13 |
pascal@20471 | 14 DEPENDS="libwww-perl perl-file-copy-recursive perl-file-which perl-http-proxy \ |
Hans-G?nter@22787 | 15 perl-http-server-simple perl-http-server-simple-authen perl-io-capture \ |
Hans-G?nter@22787 | 16 perl-io-socket-ssl perl-ipc-run perl-json-pp perl-lwp-protocol-https \ |
Hans-G?nter@22787 | 17 perl-net-ip perl-net-snmp perl-parallel-forkmanager perl-test-compile \ |
Hans-G?nter@22787 | 18 perl-test-deep perl-test-exception perl-test-nowarnings perl-test-mockmodule \ |
Hans-G?nter@22787 | 19 perl-test-mockobject perl-text-template perl-universal-require perl-uri \ |
Hans-G?nter@22787 | 20 perl-xml-treepp" |
pascal@20464 | 21 BUILD_DEPENDS="$DEPENDS" |
pascal@20463 | 22 |
pascal@24055 | 23 current_version() |
pascal@24055 | 24 { |
pascal@24055 | 25 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 26 sed '/archive.*tar/!d;/pkg/d;s|.*/\(.*[0-9]\).tar.*|\1|;q' |
pascal@24055 | 27 } |
pascal@24055 | 28 |
pascal@20463 | 29 # Rules to configure and make the package. |
pascal@20463 | 30 compile_rules() |
pascal@20463 | 31 { |
Hans-G?nter@22787 | 32 sed -i 's|/usr/local|/usr|;s|\$(PREFIX)\(/.../\)|\1|' \ |
Hans-G?nter@22787 | 33 Makefile.PL |
Hans-G?nter@22787 | 34 |
Hans-G?nter@22787 | 35 perl Makefile.PL && |
pascal@20463 | 36 make && |
pascal@20463 | 37 make DESTDIR=$DESTDIR install |
pascal@20463 | 38 } |
pascal@20463 | 39 |
pascal@20463 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20463 | 41 genpkg_rules() |
pascal@20463 | 42 { |
Hans-G?nter@22787 | 43 cp -a $install/* $fs |
pascal@20463 | 44 } |