wok-current annotate open-vm-tools-kernel/receipt @ rev 24225
updated perl-io-socket-ssl (2.068 -> 2.073)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 17:41:39 2021 +0100 (2021-12-31) |
parents | d3cf4f4dc1a4 |
children | ac8ca9758df1 |
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@24055 | 21 sed '/release.*tar/!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 } |