wok-current diff linux64-open-vm-tools-kernel/receipt @ rev 18392

Add: WIP open-vm-tools kernel modules
author Nathan Neulinger <nneul@neulinger.org>
date Fri Sep 18 23:50:52 2015 +0000 (2015-09-18)
parents
children a5a02262b0bd
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux64-open-vm-tools-kernel/receipt	Fri Sep 18 23:50:52 2015 +0000
     1.3 @@ -0,0 +1,55 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="open-vm-tools-kernel"
     1.7 +VERSION="10.0.0-3000743"
     1.8 +CATEGORY="utilities"
     1.9 +TAGS="vmware kernel"
    1.10 +SHORT_DESC="Open VMware Tools"
    1.11 +MAINTAINER="nobody@slitaz.org"
    1.12 +LICENSE="GPL"
    1.13 +TARBALL="open-vm-tools-$VERSION.tar.gz"
    1.14 +WEB_SITE="https://github.com/vmware/open-vm-tools"
    1.15 +WGET_URL="https://github.com/vmware/open-vm-tools/archive/$TARBALL"
    1.16 +HOST_ARCH="i486 x86_64"
    1.17 +
    1.18 +PROVIDES="open-vm-tools-kernel:linux64"
    1.19 +
    1.20 +DEPENDS="shutdown glib libffi libmspack open-vm-tools linux64"
    1.21 +BUILD_DEPENDS="autoconf automake libtool linux-source linux64-module-headers glib-dev libffi-dev libdnet-dev libmspack-dev slitaz-toolchain"
    1.22 +
    1.23 +
    1.24 +# Rules to configure and make the package.
    1.25 +compile_rules()
    1.26 +{
    1.27 +	[ -d /lib/modules/$(uname -r)/source ] || get-linux-source
    1.28 +
    1.29 +	cd open-vm-tools
    1.30 +	sed -i -e "s/-Werror//" configure.ac
    1.31 +	autoreconf -i
    1.32 +        ./configure \
    1.33 +		--without-pam \
    1.34 +		--without-x \
    1.35 +		--without-icu \
    1.36 +		--without-gtk2 \
    1.37 +		--without-gtkmm \
    1.38 +		--without-xmlsecurity \
    1.39 +		--without-xerces \
    1.40 +                $CONFIGURE_ARGS &&
    1.41 +        make && make DESTDIR=$install install
    1.42 +}
    1.43 +
    1.44 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.45 +genpkg_rules()
    1.46 +{
    1.47 +	EXTRAVERSION=_${kvers}
    1.48 +
    1.49 +	mkdir -p $fs/lib
    1.50 +	cp -a $install/lib/modules $fs/lib
    1.51 +}
    1.52 +
    1.53 +post_install()
    1.54 +{
    1.55 +	echo -n "Processing post-install commands..."
    1.56 +	chroot "$1/" depmod -a
    1.57 +	status
    1.58 +}