wok annotate open-vm-tools/receipt @ rev 25111

updated pass (1.7.3 -> 1.7.4)
author Hans-G?nter Theisgen
date Sat Jun 25 15:00:34 2022 +0100 (2022-06-25)
parents 5ea0ce1cecc0
children 7364ffdaaa60
rev   line source
nneul@18391 1 # SliTaz package receipt.
nneul@18391 2
nneul@18391 3 PACKAGE="open-vm-tools"
nneul@18391 4 VERSION="10.0.0-3000743"
nneul@18391 5 CATEGORY="utilities"
nneul@18391 6 TAGS="vmware kernel"
nneul@18391 7 SHORT_DESC="Open VMware Tools"
nneul@18391 8 MAINTAINER="nobody@slitaz.org"
nneul@18391 9 LICENSE="GPL"
nneul@18391 10 TARBALL="open-vm-tools-$VERSION.tar.gz"
nneul@18391 11 WEB_SITE="https://github.com/vmware/open-vm-tools"
nneul@18391 12 WGET_URL="https://github.com/vmware/open-vm-tools/archive/$TARBALL"
nneul@18391 13 HOST_ARCH="i486 x86_64"
nneul@18391 14
nneul@18431 15 DEPENDS="shutdown glib libffi libmspack procps libdnet"
pascal@18954 16 BUILD_DEPENDS="wget cacerts autoconf automake libtool linux-source procps \
pascal@18954 17 glib-dev libffi-dev libdnet-dev libmspack-dev openssl-dev"
nneul@18391 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24299 22 sed '/release.*tar.gz/!d;s|.*/open-vm-tools-\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
nneul@18391 25
nneul@18391 26 # Rules to configure and make the package.
nneul@18391 27 compile_rules()
nneul@18391 28 {
nneul@18391 29 cd open-vm-tools
nneul@18391 30 sed -i -e "s/-Werror//" configure.ac
nneul@18391 31 autoreconf -i
nneul@18391 32 ./configure \
nneul@18392 33 --without-kernel-modules \
nneul@18391 34 --without-pam \
nneul@18391 35 --without-x \
nneul@18391 36 --without-icu \
nneul@18391 37 --without-gtk2 \
nneul@18391 38 --without-gtkmm \
nneul@18391 39 --without-xmlsecurity \
nneul@18391 40 --without-xerces \
nneul@18391 41 $CONFIGURE_ARGS &&
nneul@18391 42 make && make DESTDIR=$install install
nneul@18391 43 }
nneul@18391 44
nneul@18391 45 # Rules to gen a SliTaz package suitable for Tazpkg.
nneul@18391 46 genpkg_rules()
nneul@18391 47 {
nneul@18391 48 mkdir -p $fs/usr/lib
nneul@18391 49 mkdir -p $fs/usr/share
nneul@18391 50 mkdir -p $fs/sbin
nneul@18391 51 mkdir -p $fs/etc
nneul@18391 52 mkdir -p $fs/lib
nneul@18391 53 mkdir -p $fs/include
nneul@18391 54 mkdir -p $fs/etc/init.d
nneul@18391 55
nneul@18391 56 cp $stuff/vmtoolsd $fs/etc/init.d
nneul@18391 57 chmod 755 $fs/etc/init.d
nneul@18391 58
nneul@18391 59 cp -a $install/etc/vmware-tools $fs/etc
nneul@18391 60
nneul@18391 61 # Replace with slitaz customized default network script
nneul@18391 62 cp $stuff/network $fs/etc/vmware-tools/scripts/vmware/network
nneul@18391 63 chmod 755 $fs/etc/vmware-tools/scripts/vmware/network
nneul@18391 64
nneul@18391 65 cp -a $install/usr/include $fs/usr
nneul@18391 66 cp -a $install/usr/bin $fs/usr
nneul@18391 67 cp -a $install/usr/sbin $fs/usr
pascal@19933 68 ln -s ../usr/sbin/mount.vmhgfs $fs/sbin/mount.vmhgfs
nneul@18391 69
nneul@18391 70 cp -a $install/usr/share/open-vm-tools $fs/usr/share
nneul@18391 71
nneul@18391 72 cp -a $install/usr/lib/*.so* $fs/usr/lib
nneul@18391 73 cp -a $install/usr/lib/*.a $fs/usr/lib
nneul@18391 74 cp -a $install/usr/lib/open-vm-tools $fs/usr/lib
nneul@18391 75 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
nneul@18391 76 }