wok-6.x view ocsinventory-agent/receipt @ rev 24722
updated libcaca and libcaca-dev (0.99.beta19 -> 0.99.beta20)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 10:03:33 2022 +0100 (2022-03-15) |
parents | c265f9cf4b14 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ocsinventory-agent"
4 VERSION="2.0.4"
5 CATEGORY="network"
6 SHORT_DESC="OCS Inventory NG agent for Linux."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="Ocsinventory-Unix-Agent"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 SUGGESTED="nmap perl-net-ssleay"
12 WEB_SITE="https://www.ocsinventory-ng.org/"
13 WGET_URL="https://launchpad.net/ocsinventory-unix-agent/stable-${VERSION%.*}/$VERSION/+download/$TARBALL"
15 DEPENDS="perl perl-libwww perl-uri dmidecode"
16 BUILD_DEPENDS="perl wget"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://launchpad.net/ocsinventory-unix-agent/ 2>/dev/null | \
22 sed '/Latest version/!d;s|.*is ||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cp $stuff/Slitaz.pm $src/lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB
29 cp $stuff/Tazpkg.pm $src/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging
31 # don't run postinstall script
32 rm -f run-postinst
33 for p in $stuff/ocsinventory-agent-1.1.2.1.u
34 do
35 [ -f done.$(basename $p) ] && continue
36 patch -p1 -i $p || return 1
37 touch done.$(basename $p)
38 done
39 perl Makefile.PL
40 rm -f run-postinst
41 make && make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr \
48 $fs/etc/ocsinventory-agent \
49 $fs/var/lib/ocsinventory-agent
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib $fs/usr
53 }
55 post_install(){
56 cat > "$1/etc/ocsinventory-agent/ocsinventory-agent.cfg" <<EOT
57 basevardir=/var/lib/ocsinventory-agent
58 server=http://localhost/ocsinventory
59 EOT
60 # We need fix missing status for dpkg
61 # So we can Ocs agent can run Tazpkg.pm
62 if [ ! -d "$1/var/lib/dpkg" ]; then
63 install -o root -g root -m 0755 -d "$1/var/lib/dpkg"
64 touch "$1/var/lib/dpkg/status"
65 fi
66 }