wok-next view ocsinventory-agent/receipt @ rev 20845

Add neofetch, tcl2c-fork; build two versions of tklauncher (using tcl2c and tcl2c-fork) with different warnings
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 09:45:42 2018 +0300 (2018-06-23)
parents ded7bc956f55
children 04db1a3c3590
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="http://www.ocsinventory-ng.org/"
13 WGET_URL="https://launchpad.net/ocsinventory-unix-agent/stable-${VERSION%.*}/$VERSION/+download/$TARBALL"
15 DEPENDS="perl perl-libwww-perl perl-uri dmidecode"
16 BUILD_DEPENDS="perl wget"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cp $stuff/Slitaz.pm $src/lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB
22 cp $stuff/Tazpkg.pm $src/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging
24 # don't run postinstall script
25 rm -f run-postinst
26 perl Makefile.PL
27 rm -f run-postinst
28 make && make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr \
35 $fs/etc/ocsinventory-agent \
36 $fs/var/lib/ocsinventory-agent
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 }
42 post_install(){
43 cat > "$1/etc/ocsinventory-agent/ocsinventory-agent.cfg" <<EOT
44 basevardir=/var/lib/ocsinventory-agent
45 server=http://localhost/ocsinventory
46 EOT
47 # We need fix missing status for dpkg
48 # So we can Ocs agent can run Tazpkg.pm
49 if [ ! -d "$1/var/lib/dpkg" ]; then
50 install -o root -g root -m 0755 -d "$1/var/lib/dpkg"
51 touch "$1/var/lib/dpkg/status"
52 fi
53 }