wok-current view ocsinventory-agent/receipt @ rev 13985
xdg-utils: up to 1.1.0-rc1 , xdg-open support LXDE too
author | ernia <monghitri@aruba.it> |
---|---|
date | Fri Feb 08 22:07:00 2013 +0000 (2013-02-08) |
parents | 9dbb5fa4a354 |
children | 600aaedb561d |
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 SOURCE="Ocsinventory-Unix-Agent"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 DEPENDS="perl perl-libwww perl-uri dmidecode"
11 SUGGESTED="nmap perl-net-ssleay"
12 BUILD_DEPENDS="perl wget"
13 WEB_SITE="http://www.ocsinventory-ng.org/"
14 WGET_URL="https://launchpad.net/ocsinventory-unix-agent/stable-2.0/2.0.4/+download/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cp $stuff/Slitaz.pm $src/lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB
20 cp $stuff/Tazpkg.pm $src/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging
22 cd $src
24 # don't run postinstall script
25 rm -f run-postinst
26 for p in $stuff/ocsinventory-agent-1.1.2.1.u
27 do
28 [ -f done.$(basename $p) ] && continue
29 patch -p1 -i $p || return 1
30 touch done.$(basename $p)
31 done
32 perl Makefile.PL
33 rm -f run-postinst
34 make && make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr \
41 $fs/etc/ocsinventory-agent \
42 $fs/var/lib/ocsinventory-agent
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/lib $fs/usr
46 }
48 post_install(){
49 echo "Processing post-install commands..."
50 cat > $1/etc/ocsinventory-agent/ocsinventory-agent.cfg <<EOT
51 basevardir=/var/lib/ocsinventory-agent
52 server=http://localhost/ocsinventory
53 EOT
54 # We need fix missing status for dpkg
55 # So we can Ocs agent can run Tazpkg.pm
56 if [ ! -d $1/var/lib/dpkg ]; then
57 install -o root -g root -m 0755 -d $1/var/lib/dpkg
58 touch $1/var/lib/dpkg/status
59 fi
60 }