wok view open-vm-tools-kernel/receipt @ rev 25682

Up libqcow (20240308)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 24 18:25:46 2024 +0000 (2 months ago)
parents ac8ca9758df1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="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 DEPENDS="linux shutdown glib libffi libmspack open-vm-tools procps"
16 BUILD_DEPENDS="wget cacerts linux autoconf automake libtool linux-source linux-module-headers procps glib-dev libffi-dev libdnet-dev libmspack-dev slitaz-toolchain"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
23 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 [ -d /lib/modules/${kvers}-slitaz/source ] || get-linux-source
31 cd open-vm-tools
32 sed -i -e "s/-Werror//" configure.ac
33 autoreconf -i
34 ./configure \
35 --without-pam \
36 --without-x \
37 --without-icu \
38 --without-gtk2 \
39 --without-gtkmm \
40 --without-xmlsecurity \
41 --without-xerces \
42 --with-kernel-release=${kvers}-slitaz \
43 $CONFIGURE_ARGS && cd modules && \
44 make && make DESTDIR=$install install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 EXTRAVERSION=_${kvers}
52 mkdir -p $fs/lib
53 cp -a $install/lib/modules $fs/lib
54 }
56 post_install()
57 {
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
59 status
60 }