wok-next annotate ocsinventory-agent/receipt @ rev 21661

updated fonttosfnt (1.0.5 -> 1.1.0)
author Hans-G?nter Theisgen
date Sat Jun 27 13:41:53 2020 +0100 (2020-06-27)
parents 04db1a3c3590
children
rev   line source
al@20865 1 # SliTaz package receipt v2.
erjo@3675 2
erjo@3675 3 PACKAGE="ocsinventory-agent"
erjo@12233 4 VERSION="2.0.4"
erjo@3675 5 CATEGORY="network"
al@20865 6 SHORT_DESC="OCS Inventory NG agent for Linux"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15590 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="https://www.ocsinventory-ng.org/en/"
al@20865 10
erjo@12233 11 SOURCE="Ocsinventory-Unix-Agent"
erjo@3675 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@17869 13 WGET_URL="https://launchpad.net/ocsinventory-unix-agent/stable-${VERSION%.*}/$VERSION/+download/$TARBALL"
erjo@3675 14
al@20865 15 BUILD_DEPENDS="perl-libwww-perl perl-xml-simple"
pascal@15590 16
al@20865 17 compile_rules() {
slaxemulator@8751 18 cp $stuff/Slitaz.pm $src/lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB
slaxemulator@8751 19 cp $stuff/Tazpkg.pm $src/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging
al@18741 20
erjo@3675 21 # don't run postinstall script
erjo@3675 22 rm -f run-postinst
al@20865 23 PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
erjo@3675 24 rm -f run-postinst
al@20865 25 make &&
al@21020 26 make DESTDIR=$install install || return 1
al@20865 27
al@20865 28 mkdir -p \
al@20865 29 $install/etc/ocsinventory-agent \
al@20865 30 $install/var/lib/ocsinventory-agent
al@20865 31
al@20865 32 chmod -R u+w $install
erjo@3675 33 }
erjo@3675 34
al@20865 35 genpkg_rules() {
al@20865 36 copy @std
al@20865 37 DEPENDS="perl perl-libwww-perl perl-uri dmidecode"
al@20865 38 SUGGESTED="nmap perl-crypt-ssleay perl-net-ssleay perl-net-ip"
erjo@3675 39 }
erjo@3675 40
al@20865 41 post_install() {
pascal@18730 42 cat > "$1/etc/ocsinventory-agent/ocsinventory-agent.cfg" <<EOT
erjo@3675 43 basevardir=/var/lib/ocsinventory-agent
erjo@12278 44 server=http://localhost/ocsinventory
erjo@3675 45 EOT
erjo@3679 46 # We need fix missing status for dpkg
erjo@3679 47 # So we can Ocs agent can run Tazpkg.pm
pascal@18730 48 if [ ! -d "$1/var/lib/dpkg" ]; then
pascal@18730 49 install -o root -g root -m 0755 -d "$1/var/lib/dpkg"
pascal@18730 50 touch "$1/var/lib/dpkg/status"
erjo@3679 51 fi
erjo@3675 52 }