diff options
author | Vadim Kuznetsov <vadimk@gentoo.org> | 2011-03-11 16:11:53 +0000 |
---|---|---|
committer | Vadim Kuznetsov <vadimk@gentoo.org> | 2011-03-11 16:11:53 +0000 |
commit | 049c5ed6bc814dc4a4d7ecd27d3a5b6f8111a2e9 (patch) | |
tree | 512b8dae001dc250147a1be0449f4f77e88fa427 | |
parent | use CTARGET iso CHOST, as pointed out by SpanKY (diff) | |
download | historical-049c5ed6bc814dc4a4d7ecd27d3a5b6f8111a2e9.tar.gz historical-049c5ed6bc814dc4a4d7ecd27d3a5b6f8111a2e9.tar.bz2 historical-049c5ed6bc814dc4a4d7ecd27d3a5b6f8111a2e9.zip |
cleanup
Package-Manager: portage-2.1.9.42/cvs/Linux x86_64
10 files changed, 13 insertions, 592 deletions
diff --git a/app-emulation/open-vm-tools-kmod/ChangeLog b/app-emulation/open-vm-tools-kmod/ChangeLog index d18e23b5e000..6102bfe3f09a 100644 --- a/app-emulation/open-vm-tools-kmod/ChangeLog +++ b/app-emulation/open-vm-tools-kmod/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/open-vm-tools-kmod # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/ChangeLog,v 1.12 2011/02/06 13:48:54 vadimk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/ChangeLog,v 1.13 2011/03/11 16:11:53 vadimk Exp $ + + 11 Mar 2011; Vadim Kuznetsov <vadimk@gentoo.org> + -open-vm-tools-kmod-0.0.20100223.236320.ebuild, + -open-vm-tools-kmod-0.0.20100320.243334.ebuild: + cleanup *open-vm-tools-kmod-0.0.20110124.354108 (06 Feb 2011) diff --git a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100223.236320.ebuild b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100223.236320.ebuild deleted file mode 100644 index 1e7a0c2f2c36..000000000000 --- a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100223.236320.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100223.236320.ebuild,v 1.1 2010/03/16 16:15:37 vadimk Exp $ - -inherit linux-mod versionator - -MY_DATE="$(get_version_component_range 3)" -MY_BUILD="$(get_version_component_range 4)" -MY_PN="${PN/-kmod}" -MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}" -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="Opensourced tools for VMware guests" -HOMEPAGE="http://open-vm-tools.sourceforge.net/" -SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="" - -DEPEND="${RDEPEND} - virtual/linux-sources - " - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - linux-mod_pkg_setup - - VMWARE_MOD_DIR="modules/linux" - VMWARE_MODULE_LIST="pvscsi vmblock vmci vmhgfs vmsync vmmemctl vmxnet vsock" - - MODULE_NAMES="" - BUILD_TARGETS="auto-build HEADER_DIR=${KERNEL_DIR}/include BUILD_DIR=${KV_OUT_DIR} OVT_SOURCE_DIR=${S}" - - for mod in ${VMWARE_MODULE_LIST}; - do - if [ "${mod}" == "vmxnet" ]; - then - MODTARGET="net" - else - MODTARGET="openvmtools" - fi - MODULE_NAMES="${MODULE_NAMES} ${mod}(${MODTARGET}:${S}/${VMWARE_MOD_DIR}/${mod})" - done -} -pkg_postinst() { - linux-mod_pkg_postinst - elog "vmxnet3 for Linux is now upstream (as of Linux 2.6.32)" -} diff --git a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild deleted file mode 100644 index 80cbe4962141..000000000000 --- a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild,v 1.1 2010/03/24 16:58:11 vadimk Exp $ - -inherit linux-mod versionator - -MY_DATE="$(get_version_component_range 3)" -MY_BUILD="$(get_version_component_range 4)" -MY_PN="${PN/-kmod}" -MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}" -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="Opensourced tools for VMware guests" -HOMEPAGE="http://open-vm-tools.sourceforge.net/" -SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="" - -DEPEND="${RDEPEND} - virtual/linux-sources - " - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - linux-mod_pkg_setup - - VMWARE_MOD_DIR="modules/linux" - VMWARE_MODULE_LIST="pvscsi vmblock vmci vmhgfs vmsync vmmemctl vmxnet vsock" - - MODULE_NAMES="" - BUILD_TARGETS="auto-build HEADER_DIR=${KERNEL_DIR}/include BUILD_DIR=${KV_OUT_DIR} OVT_SOURCE_DIR=${S}" - - for mod in ${VMWARE_MODULE_LIST}; - do - if [ "${mod}" == "vmxnet" ]; - then - MODTARGET="net" - else - MODTARGET="openvmtools" - fi - MODULE_NAMES="${MODULE_NAMES} ${mod}(${MODTARGET}:${S}/${VMWARE_MOD_DIR}/${mod})" - done -} -pkg_postinst() { - linux-mod_pkg_postinst - elog "vmxnet3 for Linux is now upstream (as of Linux 2.6.32)" -} diff --git a/app-emulation/open-vm-tools/ChangeLog b/app-emulation/open-vm-tools/ChangeLog index f21525b5910e..1fa8ff32a1fe 100644 --- a/app-emulation/open-vm-tools/ChangeLog +++ b/app-emulation/open-vm-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/open-vm-tools # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.43 2011/02/06 13:53:05 vadimk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.44 2011/03/11 16:09:56 vadimk Exp $ + + 11 Mar 2011; Vadim Kuznetsov <vadimk@gentoo.org> + -files/default-scripts1.patch, -open-vm-tools-0.0.20100223.236320-r1.ebuild, + -open-vm-tools-0.0.20100320.243334.ebuild, -files/open-vm.initd, + -files/tools.conf, -files/xautostart.conf: + cleanup *open-vm-tools-0.0.20110124.354108 (06 Feb 2011) *open-vm-tools-0.0.20101219.339835-r1 (06 Feb 2011) diff --git a/app-emulation/open-vm-tools/files/default-scripts1.patch b/app-emulation/open-vm-tools/files/default-scripts1.patch deleted file mode 100644 index d89ff907805f..000000000000 --- a/app-emulation/open-vm-tools/files/default-scripts1.patch +++ /dev/null @@ -1,163 +0,0 @@ -diff -ur scripts.orig/linux/resume-vm-default scripts/linux/resume-vm-default ---- scripts.orig/linux/resume-vm-default 2009-10-26 14:08:44.000000000 -0400 -+++ scripts/linux/resume-vm-default 2009-10-26 14:07:29.000000000 -0400 -@@ -25,37 +25,6 @@ - echo `date` ": Executing '$0'" - echo - --find_networking_script() { -- local script="error" -- for dir in "/etc/init.d" "/sbin/init.d" "/etc" "/etc/rc.d" ; do -- if [ -d "$dir/rc0.d" ] && -- [ -d "$dir/rc1.d" ] && -- [ -d "$dir/rc2.d" ] && -- [ -d "$dir/rc3.d" ] && -- [ -d "$dir/rc4.d" ] && -- [ -d "$dir/rc5.d" ] && -- [ -d "$dir/rc6.d" ]; then -- -- # Now find the appropriate networking script. -- if [ -d "$dir/init.d" ]; then -- if [ -x "$dir/init.d/network" ]; then -- script="$dir/init.d/network" -- elif [ -x "$dir/init.d/networking" ]; then -- script="$dir/init.d/networking" -- fi -- else -- if [ -x "$dir/network" ]; then -- script="$dir/network" -- elif [ -x "$dir/networking" ]; then -- script="$dir/networking" -- fi -- fi -- fi -- done -- -- echo "$script" --} -- - save_active_NIC_list() { - ifconfig_path=`which ifconfig 2>/dev/null` - if [ $? ]; then -@@ -73,7 +42,7 @@ - rescue_NIC() { - niclist="/var/run/vmware-active-nics" - -- ifup_path=`which ifup 2>/dev/null`; -+ ifup_path="/etc/init.d/net."; - if [ $? -ne 0 ]; then - return 1; - fi -@@ -90,7 +59,7 @@ - else - echo `date` "[rescue_nic] activating $nic ..." - -- $ifup_path $nic -+ $ifup_path$nic restart - fi - done < $niclist - -@@ -120,7 +89,7 @@ - # NetworkManager 0.6 - $dbusSend --system --dest=org.freedesktop.NetworkManager \ - /org/freedesktop/NetworkManager \ -- org.freedesktop.NetworkManager.wake -+ org.freedesktop.NetworkManager.Sleep boolean:false - # NetworkManager 0.7.0 - $dbusSend --system --dest=org.freedesktop.NetworkManager \ - /org/freedesktop/NetworkManager \ -@@ -139,15 +108,8 @@ - - wakeNetworkManager - --network=`find_networking_script` --if [ "$network" != "error" ]; then -- "$network" restart -- # Continue even if the networking init script wasn't successful. -- status=0 --else -- echo "networking script not found" -- status=1 --fi -+# Continue even if the networking init script wasn't successful. -+status=0 - - if [ $status -eq 0 ]; then - rescue_NIC -diff -ur scripts.orig/linux/suspend-vm-default scripts/linux/suspend-vm-default ---- scripts.orig/linux/suspend-vm-default 2009-10-26 14:08:44.000000000 -0400 -+++ scripts/linux/suspend-vm-default 2009-10-25 16:27:09.000000000 -0400 -@@ -25,37 +25,6 @@ - echo `date` ": Executing '$0'" - echo - --find_networking_script() { -- local script="error" -- for dir in "/etc/init.d" "/sbin/init.d" "/etc" "/etc/rc.d" ; do -- if [ -d "$dir/rc0.d" ] && -- [ -d "$dir/rc1.d" ] && -- [ -d "$dir/rc2.d" ] && -- [ -d "$dir/rc3.d" ] && -- [ -d "$dir/rc4.d" ] && -- [ -d "$dir/rc5.d" ] && -- [ -d "$dir/rc6.d" ]; then -- -- # Now find the appropriate networking script. -- if [ -d "$dir/init.d" ]; then -- if [ -x "$dir/init.d/network" ]; then -- script="$dir/init.d/network" -- elif [ -x "$dir/init.d/networking" ]; then -- script="$dir/init.d/networking" -- fi -- else -- if [ -x "$dir/network" ]; then -- script="$dir/network" -- elif [ -x "$dir/networking" ]; then -- script="$dir/networking" -- fi -- fi -- fi -- done -- -- echo "$script" --} -- - save_active_NIC_list() { - ifconfig_path=`which ifconfig 2>/dev/null` - if [ $? ]; then -@@ -82,11 +51,6 @@ - # `which' may be a bit noisy, so we'll shush it. - dbusSend=`which dbus-send 2>/dev/null` - if [ $? -eq 0 ]; then -- # NetworkManager 0.6 -- $dbusSend --system --dest=org.freedesktop.NetworkManager \ -- /org/freedesktop/NetworkManager \ -- org.freedesktop.NetworkManager.sleep -- # NetworkManager 0.7.0 - $dbusSend --system --dest=org.freedesktop.NetworkManager \ - /org/freedesktop/NetworkManager \ - org.freedesktop.NetworkManager.Sleep boolean:true -@@ -107,16 +71,13 @@ - - save_active_NIC_list - --network=`find_networking_script` --if [ "$network" != "error" ]; then -- "$network" stop -- # If the network is down, this may fail but that's not a good reason -- # to prevent the suspend. -- status=0 --else -- echo "networking script not found" -- status=1 --fi -+for network in `ls /etc/init.d/net.*`; -+do -+ "$network" stop -+done -+# If the network is down, this may fail but that's not a good reason -+# to prevent the suspend. -+status=0 - - tranquilizeNetworkManager - diff --git a/app-emulation/open-vm-tools/files/open-vm.initd b/app-emulation/open-vm-tools/files/open-vm.initd deleted file mode 100644 index d4f96cc87655..000000000000 --- a/app-emulation/open-vm-tools/files/open-vm.initd +++ /dev/null @@ -1,76 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/files/open-vm.initd,v 1.2 2008/02/01 12:33:36 flameeyes Exp $ - -DND_TMPDIR="/tmp/VMwareDnD" -USER_GROUP="root:vmware" -DND_TMPDIR_PERMS="1777" -GUESTD_BIN="/usr/sbin/vmware-guestd" -PIDFILE="/var/run/vmware-guestd.pid" -MOUNTPOINT="/proc/fs/vmblock/mountPoint" - -depend() { - before checkfs fsck net X -} - -start() { - if [ "${VM_DRAG_AND_DROP}" == "yes" ]; - then - - if ! grep -q -w vmblock /proc/modules; - then - ebegin "Loading vmblock module" - modprobe vmblock - eend $? - sleep 0.25 - fi - - if [[ ! -d "${DND_TMPDIR}" ]]; - then - # einfo "Creating the VM drag and drop directory" - mkdir "${DND_TMPDIR}" - chown "${USER_GROUP}" "${DND_TMPDIR}" - chmod "${DND_TMPDIR_PERMS}" "${DND_TMPDIR}" - fi - - # DnD_TMPDIR must exist before vmblock can be mounted - ebegin "Mounting vmblock device" - mount -t vmblock none ${MOUNTPOINT} - eend $? - fi - - ebegin "Starting vmware-guestd" - start-stop-daemon --chuid "${USER_GROUP}" --start --quiet --exec ${GUESTD_BIN} -- --background "${PIDFILE}" - eend $? -} - -stop() { - local ret - - if [ "${VM_DRAG_AND_DROP}" == "yes" ]; - then - ebegin "Cleaning the contents of ${DND_TMPDIR}" - # First check, whether ${DND_TMPDIR} isn valid... we shouldn't risk deleting the content of ""/* - if [[ ! -z "${DND_TMPDIR}" ]] && [[ "${DND_TMPDIR}" != "/" ]]; - then - rm -rf ${DND_TMPDIR}/* - ret=0 - else - eerror "Not cleaning up ${DND_TMPDIR}, please check definition of variable" - ret=1 - fi - eend $ret - - ebegin "Unmounting vmblock device" - if grep -q -w "${MOUNTPOINT}" /proc/mounts; - then - umount ${MOUNTPOINT} 1>&2 > /dev/null - fi - eend 0 - fi - - ebegin "Stopping vmware-guestd" - start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" - eend $? -} diff --git a/app-emulation/open-vm-tools/files/tools.conf b/app-emulation/open-vm-tools/files/tools.conf deleted file mode 100644 index e0086f1f79ea..000000000000 --- a/app-emulation/open-vm-tools/files/tools.conf +++ /dev/null @@ -1,2 +0,0 @@ -bindir = "/usr/bin" - diff --git a/app-emulation/open-vm-tools/files/xautostart.conf b/app-emulation/open-vm-tools/files/xautostart.conf deleted file mode 100644 index cf0734d5d50f..000000000000 --- a/app-emulation/open-vm-tools/files/xautostart.conf +++ /dev/null @@ -1,7 +0,0 @@ -gnome-panel -ksmserver -startkde -kwrapper -panel -xfce4-panel - diff --git a/app-emulation/open-vm-tools/open-vm-tools-0.0.20100223.236320-r1.ebuild b/app-emulation/open-vm-tools/open-vm-tools-0.0.20100223.236320-r1.ebuild deleted file mode 100644 index f5e9d6fe805f..000000000000 --- a/app-emulation/open-vm-tools/open-vm-tools-0.0.20100223.236320-r1.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20100223.236320-r1.ebuild,v 1.1 2010/03/16 16:23:03 vadimk Exp $ - -EAPI="2" - -inherit eutils pam versionator - -MY_DATE="$(get_version_component_range 3)" -MY_BUILD="$(get_version_component_range 4)" -MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Opensourced tools for VMware guests" -HOMEPAGE="http://open-vm-tools.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="X doc fuse icu +pic unity xinerama" - -RDEPEND="app-emulation/open-vm-tools-kmod - >=dev-libs/glib-2 - dev-libs/libdnet - sys-apps/ethtool - sys-process/procps - virtual/pam - X? ( - dev-cpp/gtkmm - x11-base/xorg-server - x11-drivers/xf86-input-vmmouse - x11-drivers/xf86-video-vmware - x11-libs/gtk+ - x11-libs/libnotify - x11-libs/libX11 - x11-libs/libXtst - ) - fuse? ( sys-fs/fuse ) - icu? ( dev-libs/icu ) - unity? ( - dev-libs/uriparser - x11-libs/libXScrnSaver - ) - xinerama? ( x11-libs/libXinerama ) - " - -DEPEND="${RDEPEND} - dev-util/pkgconfig - virtual/linux-sources - doc? ( app-doc/doxygen ) - " - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - use unity && ! use xinerama && die 'The Unity USE flag requires USE="xinerama" as well' - - enewgroup vmware -} - -src_prepare() { - epatch "${FILESDIR}/default-scripts1.patch" - epatch "${FILESDIR}/checkvm-pie-safety.patch" - epatch "${FILESDIR}/vmguestlib-pkg-config.patch" - sed -i -e 's/proc-3.2.7/proc/g' configure || die "sed configure failed" - # Do not filter out Werror - # Upstream Bug http://sourceforge.net/tracker/?func=detail&aid=2959749&group_id=204462&atid=989708 - # sed -i -e 's/CFLAGS=.*Werror/#&/g' configure || die "sed comment out Werror failed" - sed -i -e 's:\(TEST_PLUGIN_INSTALLDIR=\).*:\1\$libdir/open-vm-tools/plugins/tests:g' configure || die "sed test_plugin_installdir failed" -} - -src_configure() { - econf \ - --with-procps \ - --with-dnet \ - --without-kernel-modules \ - $(use_enable doc docs) \ - --docdir=/usr/share/doc/${PF} \ - $(use_with X x) \ - $(use_with X gtk2) \ - $(use_with X gtkmm) \ - $(use_with icu) \ - $(use_with pic) \ - $(use_enable unity) \ - $(use_enable xinerama multimon) -} - -src_compile() { - emake || die "failed to compile" -} - -src_install() { - emake DESTDIR="${D}" install || die "failed to install" - - rm "${D}"/etc/pam.d/vmtoolsd - pamd_mimic_system vmtoolsd auth account - - rm "${D}"/usr/$(get_libdir)/*.la - rm "${D}"/usr/$(get_libdir)/open-vm-tools/plugins/common/*.la - - newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools || die "failed to newinitd" - newconfd "${FILESDIR}/open-vm.confd" vmware-tools || die "failed to newconfd" - - if use X; - then - insinto /etc/xdg/autostart - doins "${FILESDIR}/open-vm-tools.desktop" || die "failed to install .desktop" - - elog "To be able to use the drag'n'drop feature of VMware for file" - elog "exchange, you need to do this:" - elog " Add 'vmware-tools' to your default runlevel." - elog " Add the users which should have access to this function" - elog " to the group 'vmware'." - fi -} diff --git a/app-emulation/open-vm-tools/open-vm-tools-0.0.20100320.243334.ebuild b/app-emulation/open-vm-tools/open-vm-tools-0.0.20100320.243334.ebuild deleted file mode 100644 index 6f80daa7301a..000000000000 --- a/app-emulation/open-vm-tools/open-vm-tools-0.0.20100320.243334.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20100320.243334.ebuild,v 1.2 2010/07/04 00:50:52 vadimk Exp $ - -EAPI="2" - -inherit eutils pam versionator - -MY_DATE="$(get_version_component_range 3)" -MY_BUILD="$(get_version_component_range 4)" -MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Opensourced tools for VMware guests" -HOMEPAGE="http://open-vm-tools.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="X doc fuse icu +pic unity xinerama" - -RDEPEND="app-emulation/open-vm-tools-kmod - >=dev-libs/glib-2 - dev-libs/libdnet - sys-apps/ethtool - sys-process/procps - virtual/pam - X? ( - dev-cpp/gtkmm - x11-base/xorg-server - x11-drivers/xf86-input-vmmouse - x11-drivers/xf86-video-vmware - x11-libs/gtk+ - x11-libs/libnotify - x11-libs/libX11 - x11-libs/libXtst - ) - fuse? ( sys-fs/fuse ) - icu? ( dev-libs/icu ) - unity? ( - dev-libs/uriparser - x11-libs/libXScrnSaver - ) - xinerama? ( x11-libs/libXinerama ) - " - -DEPEND="${RDEPEND} - dev-util/pkgconfig - virtual/linux-sources - doc? ( app-doc/doxygen ) - " - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - use unity && ! use xinerama && die 'The Unity USE flag requires USE="xinerama" as well' - - enewgroup vmware -} - -src_prepare() { - epatch "${FILESDIR}/default-scripts1.patch" - epatch "${FILESDIR}/checkvm-pie-safety.patch" - epatch "${FILESDIR}/vmguestlib-pkg-config.patch" - sed -i -e 's/proc-3.2.7/proc/g' configure || die "sed configure failed" - # Do not filter out Werror - # Upstream Bug http://sourceforge.net/tracker/?func=detail&aid=2959749&group_id=204462&atid=989708 - # sed -i -e 's/CFLAGS=.*Werror/#&/g' configure || die "sed comment out Werror failed" - sed -i -e 's:\(TEST_PLUGIN_INSTALLDIR=\).*:\1\$libdir/open-vm-tools/plugins/tests:g' configure || die "sed test_plugin_installdir failed" -} - -src_configure() { - econf \ - --with-procps \ - --with-dnet \ - --without-kernel-modules \ - $(use_enable doc docs) \ - --docdir=/usr/share/doc/${PF} \ - $(use_with X x) \ - $(use_with X gtk2) \ - $(use_with X gtkmm) \ - $(use_with icu) \ - $(use_with pic) \ - $(use_enable unity) \ - $(use_enable xinerama multimon) - - # Bugs 260878, 326761 - find ./ -name Makefile | xargs sed -i -e 's/-Werror//g' || die "sed out Werror failed" - -} - -src_compile() { - emake || die "failed to compile" -} - -src_install() { - emake DESTDIR="${D}" install || die "failed to install" - - rm "${D}"/etc/pam.d/vmtoolsd - pamd_mimic_system vmtoolsd auth account - - rm "${D}"/usr/$(get_libdir)/*.la - rm "${D}"/usr/$(get_libdir)/open-vm-tools/plugins/common/*.la - - newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools || die "failed to newinitd" - newconfd "${FILESDIR}/open-vm.confd" vmware-tools || die "failed to newconfd" - - if use X; - then - insinto /etc/xdg/autostart - doins "${FILESDIR}/open-vm-tools.desktop" || die "failed to install .desktop" - - elog "To be able to use the drag'n'drop feature of VMware for file" - elog "exchange, you need to do this:" - elog " Add 'vmware-tools' to your default runlevel." - elog " Add the users which should have access to this function" - elog " to the group 'vmware'." - fi -} |