wok-6.x view linux64-open-vm-tools-kernel/receipt @ rev 24326
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 27 12:16:00 2022 +0000 (2022-01-27) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-open-vm-tools-kernel"
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 PROVIDE="open-vm-tools-kernel:linux64"
17 DEPENDS="shutdown glib libffi libmspack open-vm-tools linux64 procps"
18 BUILD_DEPENDS="uclibc-cross-compiler-x86_64 wget cacerts autoconf automake libtool linux-source linux-module-headers linux64 linux64-module-headers glib-dev libffi-dev libdnet-dev libmspack-dev procps slitaz-toolchain"
20 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
22 current_version()
23 {
24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
25 sed '/release.*tar.gz/!d;s|.*/open-vm-tools-\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 [ -d /lib/modules/${kvers}-slitaz/source ] || get-linux-source
33 cd open-vm-tools
34 sed -i -e "s/-Werror//" configure.ac
35 autoreconf -i
36 ./configure \
37 --without-pam \
38 --without-x \
39 --without-icu \
40 --without-gtk2 \
41 --without-gtkmm \
42 --without-xmlsecurity \
43 --without-xerces \
44 --with-kernel-release=${kvers}-slitaz64 \
45 $CONFIGURE_ARGS
46 cd modules && make CFLAGS="" KBUILD_VERBOSE=1 && make DESTDIR=$install install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 EXTRAVERSION=_${kvers}
54 mkdir -p $fs/lib
55 cp -a $install/lib/modules $fs/lib
56 }
58 post_install()
59 {
60 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
61 status
62 }