wok view open-vm-tools-kernel/receipt @ rev 18406
open-vm-tools: another attempt to get kernel selection correct for build in the wok
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 13:09:14 2015 +0000 (2015-09-19) |
parents | a5e45eb2082b |
children | d3cf4f4dc1a4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="open-vm-tools-kernel"
4 VERSION="10.0.0-3000743"
5 CATEGORY="utilities"
6 TAGS="vmware kernel"
7 SHORT_DESC="Open VMware Tools"
8 MAINTAINER="nobody@slitaz.org"
9 LICENSE="GPL"
10 TARBALL="open-vm-tools-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/vmware/open-vm-tools"
12 WGET_URL="https://github.com/vmware/open-vm-tools/archive/$TARBALL"
13 HOST_ARCH="i486 x86_64"
15 DEPENDS="linux shutdown glib libffi libmspack open-vm-tools procps"
16 BUILD_DEPENDS="linux autoconf automake libtool linux-source linux-module-headers procps glib-dev libffi-dev libdnet-dev libmspack-dev slitaz-toolchain"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 [ -d /lib/modules/${kvers}-slitaz/source ] || get-linux-source
24 cd open-vm-tools
25 sed -i -e "s/-Werror//" configure.ac
26 autoreconf -i
27 ./configure \
28 --without-pam \
29 --without-x \
30 --without-icu \
31 --without-gtk2 \
32 --without-gtkmm \
33 --without-xmlsecurity \
34 --without-xerces \
35 --with-kernel-release=${kvers}-slitaz \
36 $CONFIGURE_ARGS && cd modules && \
37 make && make DESTDIR=$install install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 EXTRAVERSION=_${kvers}
45 mkdir -p $fs/lib
46 cp -a $install/lib/modules $fs/lib
47 }
49 post_install()
50 {
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
52 status
53 }