wok-next diff ocsinventory-agent/receipt @ rev 20908
bzip2: update home page and source URL (thanks shann); domain bzip.org is suspended now...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 12 04:53:45 2018 +0300 (2018-08-12) |
parents | d6378d455338 |
children | d5aab818505e |
line diff
1.1 --- a/ocsinventory-agent/receipt Thu May 10 21:12:00 2018 +0300 1.2 +++ b/ocsinventory-agent/receipt Sun Aug 12 04:53:45 2018 +0300 1.3 @@ -1,45 +1,44 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="ocsinventory-agent" 1.8 VERSION="2.0.4" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="OCS Inventory NG agent for Linux." 1.11 +SHORT_DESC="OCS Inventory NG agent for Linux" 1.12 MAINTAINER="erjo@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://www.ocsinventory-ng.org/" 1.15 + 1.16 SOURCE="Ocsinventory-Unix-Agent" 1.17 TARBALL="$SOURCE-$VERSION.tar.gz" 1.18 -SUGGESTED="nmap perl-net-ssleay" 1.19 -WEB_SITE="http://www.ocsinventory-ng.org/" 1.20 WGET_URL="https://launchpad.net/ocsinventory-unix-agent/stable-${VERSION%.*}/$VERSION/+download/$TARBALL" 1.21 1.22 -DEPENDS="perl perl-libwww-perl perl-uri dmidecode" 1.23 -BUILD_DEPENDS="perl wget" 1.24 +BUILD_DEPENDS="perl-libwww-perl perl-xml-simple" 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 +compile_rules() { 1.30 cp $stuff/Slitaz.pm $src/lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB 1.31 cp $stuff/Tazpkg.pm $src/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging 1.32 1.33 # don't run postinstall script 1.34 rm -f run-postinst 1.35 - perl Makefile.PL 1.36 + PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 1.37 rm -f run-postinst 1.38 - make && make DESTDIR=$DESTDIR install 1.39 + make && 1.40 + make DESTDIR=$DESTDIR install || return 1 1.41 + 1.42 + mkdir -p \ 1.43 + $install/etc/ocsinventory-agent \ 1.44 + $install/var/lib/ocsinventory-agent 1.45 + 1.46 + chmod -R u+w $install 1.47 } 1.48 1.49 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.50 -genpkg_rules() 1.51 -{ 1.52 - mkdir -p $fs/usr \ 1.53 - $fs/etc/ocsinventory-agent \ 1.54 - $fs/var/lib/ocsinventory-agent 1.55 - 1.56 - cp -a $install/usr/bin $fs/usr 1.57 - cp -a $install/usr/lib $fs/usr 1.58 +genpkg_rules() { 1.59 + copy @std 1.60 + DEPENDS="perl perl-libwww-perl perl-uri dmidecode" 1.61 + SUGGESTED="nmap perl-crypt-ssleay perl-net-ssleay perl-net-ip" 1.62 } 1.63 1.64 -post_install(){ 1.65 +post_install() { 1.66 cat > "$1/etc/ocsinventory-agent/ocsinventory-agent.cfg" <<EOT 1.67 basevardir=/var/lib/ocsinventory-agent 1.68 server=http://localhost/ocsinventory