SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

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

# SliTaz package receipt.

PACKAGE="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"

DEPENDS="linux shutdown glib libffi libmspack open-vm-tools procps"
BUILD_DEPENDS="wget cacerts linux autoconf automake libtool linux-source linux-module-headers procps glib-dev libffi-dev libdnet-dev libmspack-dev slitaz-toolchain"

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}-slitaz \
                $CONFIGURE_ARGS && cd modules && \
        make && 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#_}-slitaz
    status
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)