SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "linux64-open-vm-tools-kernel"

# SliTaz package receipt.

PACKAGE="linux64-open-vm-tools-kernel"
VERSION="10.0.0-3000743"
CATEGORY="utilities"
TAGS="vmware kernel"
SHORT_DESC="Open VMware Tools"
MAINTAINER="nobody@slitaz.org"
LICENSE="GPL"
TARBALL="open-vm-tools-$VERSION.tar.gz"
WEB_SITE="https://github.com/vmware/open-vm-tools"
WGET_URL="https://github.com/vmware/open-vm-tools/archive/$TARBALL"
HOST_ARCH="i486 x86_64"

PROVIDE="open-vm-tools-kernel:linux64"

DEPENDS="shutdown glib libffi libmspack open-vm-tools linux64 procps"
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"

AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/release.*tar.gz/!d;s|.*/open-vm-tools-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    [ -d /lib/modules/${kvers}-slitaz/source ] || get-linux-source

    cd open-vm-tools
    sed -i -e "s/-Werror//" configure.ac
    autoreconf -i
        ./configure \
        --without-pam \
        --without-x \
        --without-icu \
        --without-gtk2 \
        --without-gtkmm \
        --without-xmlsecurity \
        --without-xerces \
        --with-kernel-release=${kvers}-slitaz64 \
                $CONFIGURE_ARGS
    cd modules && make CFLAGS="" KBUILD_VERBOSE=1 && make DESTDIR=$install install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    EXTRAVERSION=_${kvers}

    mkdir -p $fs/lib
    cp -a $install/lib/modules $fs/lib
}

post_install()
{
    chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    status
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)