wok-next diff 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 | 0ffd89c64ef5 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/open-vm-tools-kernel/receipt Fri Sep 18 23:50:52 2015 +0000 1.3 @@ -0,0 +1,53 @@ 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 +DEPENDS="shutdown glib libffi libmspack open-vm-tools" 1.19 +BUILD_DEPENDS="autoconf automake libtool linux-source glib-dev libffi-dev libdnet-dev libmspack-dev slitaz-toolchain" 1.20 + 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + [ -d /lib/modules/$(uname -r)/source ] || get-linux-source 1.26 + 1.27 + cd open-vm-tools 1.28 + sed -i -e "s/-Werror//" configure.ac 1.29 + autoreconf -i 1.30 + ./configure \ 1.31 + --without-pam \ 1.32 + --without-x \ 1.33 + --without-icu \ 1.34 + --without-gtk2 \ 1.35 + --without-gtkmm \ 1.36 + --without-xmlsecurity \ 1.37 + --without-xerces \ 1.38 + $CONFIGURE_ARGS && 1.39 + make && make DESTDIR=$install install 1.40 +} 1.41 + 1.42 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 +genpkg_rules() 1.44 +{ 1.45 + EXTRAVERSION=_${kvers} 1.46 + 1.47 + mkdir -p $fs/lib 1.48 + cp -a $install/lib/modules $fs/lib 1.49 +} 1.50 + 1.51 +post_install() 1.52 +{ 1.53 + echo -n "Processing post-install commands..." 1.54 + chroot "$1/" depmod -a 1.55 + status 1.56 +}