wok view open-vm-tools/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents ac8ca9758df1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="open-vm-tools"
4 VERSION="10.0.0-3000743"
5 CATEGORY="utilities"
6 TAGS="vmware kernel"
7 SHORT_DESC="Open VMware Tools"
8 MAINTAINER="nobody@slitaz.org"
9 LICENSE="GPL"
10 TARBALL="open-vm-tools-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/vmware/open-vm-tools"
12 WGET_URL="https://github.com/vmware/open-vm-tools/archive/$TARBALL"
13 HOST_ARCH="i486 x86_64"
15 DEPENDS="shutdown glib libffi libmspack procps libdnet"
16 BUILD_DEPENDS="wget cacerts autoconf automake libtool linux-source procps \
17 glib-dev libffi-dev libdnet-dev libmspack-dev openssl-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
24 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd open-vm-tools
31 sed -i -e "s/-Werror//" configure.ac
32 autoreconf -i
33 ./configure \
34 --without-kernel-modules \
35 --without-pam \
36 --without-x \
37 --without-icu \
38 --without-gtk2 \
39 --without-gtkmm \
40 --without-xmlsecurity \
41 --without-xerces \
42 $CONFIGURE_ARGS &&
43 make && make DESTDIR=$install install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib
50 mkdir -p $fs/usr/share
51 mkdir -p $fs/sbin
52 mkdir -p $fs/etc
53 mkdir -p $fs/lib
54 mkdir -p $fs/include
55 mkdir -p $fs/etc/init.d
57 cp $stuff/vmtoolsd $fs/etc/init.d
58 chmod 755 $fs/etc/init.d
60 cp -a $install/etc/vmware-tools $fs/etc
62 # Replace with slitaz customized default network script
63 cp $stuff/network $fs/etc/vmware-tools/scripts/vmware/network
64 chmod 755 $fs/etc/vmware-tools/scripts/vmware/network
66 cp -a $install/usr/include $fs/usr
67 cp -a $install/usr/bin $fs/usr
68 cp -a $install/usr/sbin $fs/usr
69 ln -s ../usr/sbin/mount.vmhgfs $fs/sbin/mount.vmhgfs
71 cp -a $install/usr/share/open-vm-tools $fs/usr/share
73 cp -a $install/usr/lib/*.so* $fs/usr/lib
74 cp -a $install/usr/lib/*.a $fs/usr/lib
75 cp -a $install/usr/lib/open-vm-tools $fs/usr/lib
76 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
77 }