wok view open-vm-tools/receipt @ rev 18391

Add: WIP open-vm-tools (10.0.0)
author Nathan Neulinger <nneul@neulinger.org>
date Fri Sep 18 23:31:50 2015 +0000 (2015-09-18)
parents
children a4a380229dc9
line source
1 # SliTaz package receipt.
3 PACKAGE="open-vm-tools"
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="shutdown glib libffi libmspack"
16 BUILD_DEPENDS="autoconf automake libtool linux-source 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/$(uname -r)/source ] || get-linux-source
24 cd open-vm-tools
25 sed -i -e "s/-Werror//" configure.ac
26 autoreconf -i
27 ./configure \
28 --with-distro="SliTaz" \
29 --without-pam \
30 --without-x \
31 --without-icu \
32 --without-gtk2 \
33 --without-gtkmm \
34 --without-xmlsecurity \
35 --without-xerces \
36 $CONFIGURE_ARGS &&
37 make && make DESTDIR=$install install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 mkdir -p $fs/usr/share
45 mkdir -p $fs/sbin
46 mkdir -p $fs/etc
47 mkdir -p $fs/lib
48 mkdir -p $fs/include
49 mkdir -p $fs/etc/init.d
51 cp $stuff/vmtoolsd $fs/etc/init.d
52 chmod 755 $fs/etc/init.d
54 cp -a $install/etc/vmware-tools $fs/etc
56 # Replace with slitaz customized default network script
57 cp $stuff/network $fs/etc/vmware-tools/scripts/vmware/network
58 chmod 755 $fs/etc/vmware-tools/scripts/vmware/network
60 cp -a $install/sbin $fs/sbin
62 cp -a $install/lib/modules $fs/lib
64 cp -a $install/usr/include $fs/usr
65 cp -a $install/usr/bin $fs/usr
66 cp -a $install/usr/sbin $fs/usr
68 cp -a $install/usr/share/open-vm-tools $fs/usr/share
70 cp -a $install/usr/lib/*.so* $fs/usr/lib
71 cp -a $install/usr/lib/*.a $fs/usr/lib
72 cp -a $install/usr/lib/open-vm-tools $fs/usr/lib
73 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
74 }
76 post_install()
77 {
78 echo -n "Processing post-install commands..."
79 chroot "$1/" depmod -a
80 status
81 }