diff --git a/packages/sysutils/open-vm-tools/build b/packages/sysutils/open-vm-tools/build deleted file mode 100755 index 9a5ebc2acf..0000000000 --- a/packages/sysutils/open-vm-tools/build +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -KERNEL_VER=$(basename $(ls -d $ROOT/$BUILD/linux-[0-9]*)| sed 's|linux-||g') - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --enable-shared \ - --disable-static \ - --disable-docs \ - --disable-tests \ - --without-pam \ - --without-gtk2 \ - --without-gtkmm \ - --without-dnet \ - --without-x \ - --without-icu \ - --without-procps \ - --with-kernel-release=$KERNEL_VER \ - --with-linuxdir=$(kernel_path) - -make CFLAGS+="-DG_DISABLE_DEPRECATED" diff --git a/packages/sysutils/open-vm-tools/install b/packages/sysutils/open-vm-tools/install deleted file mode 100755 index 2f273b4a10..0000000000 --- a/packages/sysutils/open-vm-tools/install +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -VER=`ls $BUILD/linux*/modules/lib/modules` - -mkdir -p $INSTALL/lib/modules/$VER/open-vm-tools - find $PKG_BUILD/ -name \*.ko -exec cp {} $INSTALL/lib/modules/$VER/open-vm-tools \; - -mkdir -p $INSTALL/usr/lib - cp -PR $PKG_BUILD/libvmtools/.libs/libvmtools.so* $INSTALL/usr/lib - -mkdir -p $INSTALL/usr/bin - cp -PR $PKG_BUILD/services/vmtoolsd/.libs/vmtoolsd $INSTALL/usr/bin - cp -PR $PKG_BUILD/checkvm/.libs/vmware-checkvm $INSTALL/usr/bin diff --git a/packages/sysutils/open-vm-tools/meta b/packages/sysutils/open-vm-tools/package.mk similarity index 57% rename from packages/sysutils/open-vm-tools/meta rename to packages/sysutils/open-vm-tools/package.mk index 8bdbe0b814..1f6663df1f 100644 --- a/packages/sysutils/open-vm-tools/meta +++ b/packages/sysutils/open-vm-tools/package.mk @@ -26,11 +26,40 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://open-vm-tools.sourceforge.net" PKG_URL="$SOURCEFORGE_SRC/project/open-vm-tools/open-vm-tools/stable-9.2.x/${PKG_NAME}-${PKG_VERSION}.tar.gz" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain glib" +PKG_DEPENDS="glib" +PKG_BUILD_DEPENDS_TARGET="toolchain glib" PKG_PRIORITY="optional" PKG_SECTION="virtualization" PKG_SHORTDESC="open-vm-tools: open source implementation of VMware Tools" PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools" + PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +ISCSI_KERNEL_VER=$(basename $(ls -d $ROOT/$BUILD/linux-[0-9]*)| sed 's|linux-||g') + +PKG_CONFIGURE_OPTS_TARGET="--disable-docs \ + --disable-tests \ + --without-pam \ + --without-gtk2 \ + --without-gtkmm \ + --without-dnet \ + --without-x \ + --without-icu \ + --without-procps \ + --with-kernel-release=$ISCSI_KERNEL_VER \ + --with-linuxdir=$(ls -d $ROOT/$BUILD/linux-*)" + +PKG_MAKE_OPTS_TARGET="CFLAGS+=-DG_DISABLE_DEPRECATED" + +makeinstall_target() { + mkdir -p $INSTALL/lib/modules/$ISCSI_KERNEL_VER/open-vm-tools + cp -PR ../modules/linux/vmxnet/vmxnet.ko $INSTALL/lib/modules/$ISCSI_KERNEL_VER/open-vm-tools + + mkdir -p $INSTALL/usr/lib + cp -PR libvmtools/.libs/libvmtools.so* $INSTALL/usr/lib + + mkdir -p $INSTALL/usr/bin + cp -PR services/vmtoolsd/.libs/vmtoolsd $INSTALL/usr/bin + cp -PR checkvm/.libs/vmware-checkvm $INSTALL/usr/bin +}