wok annotate open-vm-tools-kernel/receipt @ rev 25545
Add pom1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 15 16:15:09 2023 +0000 (20 months ago) |
parents | 5ea0ce1cecc0 |
children | 7364ffdaaa60 |
rev | line source |
---|---|
nneul@18392 | 1 # SliTaz package receipt. |
nneul@18392 | 2 |
nneul@18392 | 3 PACKAGE="open-vm-tools-kernel" |
nneul@18392 | 4 VERSION="10.0.0-3000743" |
nneul@18392 | 5 CATEGORY="utilities" |
nneul@18392 | 6 TAGS="vmware kernel" |
nneul@18392 | 7 SHORT_DESC="Open VMware Tools" |
nneul@18392 | 8 MAINTAINER="nobody@slitaz.org" |
nneul@18392 | 9 LICENSE="GPL" |
nneul@18392 | 10 TARBALL="open-vm-tools-$VERSION.tar.gz" |
nneul@18392 | 11 WEB_SITE="https://github.com/vmware/open-vm-tools" |
nneul@18392 | 12 WGET_URL="https://github.com/vmware/open-vm-tools/archive/$TARBALL" |
nneul@18392 | 13 HOST_ARCH="i486 x86_64" |
nneul@18392 | 14 |
nneul@18401 | 15 DEPENDS="linux shutdown glib libffi libmspack open-vm-tools procps" |
nneul@18408 | 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" |
nneul@18392 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24299 | 21 sed '/release.*tar.gz/!d;s|.*/open-vm-tools-\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
nneul@18392 | 24 |
nneul@18392 | 25 # Rules to configure and make the package. |
nneul@18392 | 26 compile_rules() |
nneul@18392 | 27 { |
nneul@18396 | 28 [ -d /lib/modules/${kvers}-slitaz/source ] || get-linux-source |
nneul@18392 | 29 |
nneul@18392 | 30 cd open-vm-tools |
nneul@18392 | 31 sed -i -e "s/-Werror//" configure.ac |
nneul@18392 | 32 autoreconf -i |
nneul@18392 | 33 ./configure \ |
nneul@18392 | 34 --without-pam \ |
nneul@18392 | 35 --without-x \ |
nneul@18392 | 36 --without-icu \ |
nneul@18392 | 37 --without-gtk2 \ |
nneul@18392 | 38 --without-gtkmm \ |
nneul@18392 | 39 --without-xmlsecurity \ |
nneul@18392 | 40 --without-xerces \ |
nneul@18406 | 41 --with-kernel-release=${kvers}-slitaz \ |
nneul@18396 | 42 $CONFIGURE_ARGS && cd modules && \ |
nneul@18392 | 43 make && make DESTDIR=$install install |
nneul@18392 | 44 } |
nneul@18392 | 45 |
nneul@18392 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18392 | 47 genpkg_rules() |
nneul@18392 | 48 { |
nneul@18392 | 49 EXTRAVERSION=_${kvers} |
nneul@18392 | 50 |
nneul@18392 | 51 mkdir -p $fs/lib |
nneul@18392 | 52 cp -a $install/lib/modules $fs/lib |
nneul@18392 | 53 } |
nneul@18392 | 54 |
nneul@18392 | 55 post_install() |
nneul@18392 | 56 { |
nneul@18399 | 57 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
nneul@18392 | 58 status |
nneul@18392 | 59 } |