diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-emulation/open-vm-tools | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-emulation/open-vm-tools')
13 files changed, 765 insertions, 0 deletions
diff --git a/app-emulation/open-vm-tools/Manifest b/app-emulation/open-vm-tools/Manifest new file mode 100644 index 000000000000..5ea04658108b --- /dev/null +++ b/app-emulation/open-vm-tools/Manifest @@ -0,0 +1,4 @@ +DIST open-vm-tools-2013.09.16-1328054.tar.gz 3793719 SHA256 470a6ea3ce14c2c5ea6b7bc59745eccbacc8d88a3f343e712312786435975d13 SHA512 7ae62d5411b4bdefd0e8db5f0a81bb357bfd4a624af06bf9a5a74f49ede0b7051b41dfe548c758fd7e73cded34af983c8aa0c412e65343092e05ae9b997895cb WHIRLPOOL 688fb4e494fb7aab7d0eb09189afff95ec8727bcc1893a4ec632bb8198661a1a55d58a813d2d56a3ac330fd7a55afc1fa7dc11f1d60c06c91ecf6a0bf866b249 +DIST open-vm-tools-9.10.0-2476743.tar.gz 4093306 SHA256 e146ad53d744d7793ee72c5271fc49a916613534c14827c227fdaef4b3579c96 SHA512 8c8e4a559c0374e020c8261d4c8f6855efbe3f509745ee02ec03ab9ebce7e1327ec1e5e18f674cb464630ace9dc33b4262ffd119fc237c286ee44327e4590385 WHIRLPOOL 162aba889e249ac229e003a57753ff78b86f612a0753ae83f9de52eb1d0ae0a11aee0279c192eb073dabc76d718747c614d4122395abfc8c8d0f9d80a903189a +DIST open-vm-tools-9.10.2-2822639.tar.gz 4044062 SHA256 6c5a7f88b597585a273fb9918fdb9201c79e30731a765fbec1acda14d1f3d74c SHA512 0a0683b1d86ff1926517c882943c30267f04710bdd9a70bf7aa75534d64480c3cc2cf5eae5655ed228d4e140129f46efeb2cdbbb8191b142756ad359cec58b72 WHIRLPOOL 7a15d5561fcd52c32c668d8da86ada5a850b4fdaac373f9850c4906b4939ebf620a2ef7740b8a15e513ececb95bd02b285ea5632860bea87df666fcef539ef5f +DIST open-vm-tools-9.4.0-1280544.tar.gz 3659504 SHA256 5d30652eb0f6dc5e930781029c184837e700be5543b6a7116db4c62a6f3ca399 SHA512 07b36f49713140606f74864b59c2e01c9ed83a960dd3f5d172b84fc75e760f7370065774a0e26897924af60454c86b682ca0fd32276b0e9fb17b268247f8cbdf WHIRLPOOL 88533768cf718de3b5f64e688597209fa2029d02cdf350d7fd05ec8dd8ca0f0c125a8d1445c1ec9287bc486076d5c335f3cc615c3f0b9aa7bac84e921da4c9e6 diff --git a/app-emulation/open-vm-tools/files/9.10.0-vgauth.patch b/app-emulation/open-vm-tools/files/9.10.0-vgauth.patch new file mode 100644 index 000000000000..aa8d1e3e353c --- /dev/null +++ b/app-emulation/open-vm-tools/files/9.10.0-vgauth.patch @@ -0,0 +1,22 @@ +--- a/vgauth/service/Makefile.am ++++ b/vgauth/service/Makefile.am +@@ -78,7 +78,7 @@ + $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ + else +- VGAuthService_LINK = $(LINK) ++ VGAuthService_LINK = $(CXXLINK) + endif + + # Message catalogs. +--- a/vgauth/service/Makefile.in ++++ b/vgauth/service/Makefile.in +@@ -322,7 +322,7 @@ + ../lib/libvgauth.la @XERCES_LIBS@ @XMLSECURITY_LIBS@ \ + @SSL_LIBS@ -lxerces-c -lxml-security-c -lssl -lcrypto \ + $(am__append_1) +-@HAVE_ICU_FALSE@VGAuthService_LINK = $(LINK) ++@HAVE_ICU_FALSE@VGAuthService_LINK = $(CXXLINK) + @HAVE_ICU_TRUE@VGAuthService_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ + @HAVE_ICU_TRUE@ $(LIBTOOLFLAGS) --mode=link $(CXX) \ + @HAVE_ICU_TRUE@ $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ diff --git a/app-emulation/open-vm-tools/files/network b/app-emulation/open-vm-tools/files/network new file mode 100644 index 000000000000..3608455a9bc0 --- /dev/null +++ b/app-emulation/open-vm-tools/files/network @@ -0,0 +1,22 @@ +#!/bin/sh + +# +# net.eth0, net.eth1, network, wicd, NetworkManager +service="net.eth0" + +if ! rc-service -e ${service} +then + service="network" +fi + +case "$1" in + suspend-vm) + rc-service ${service} stop + ;; + resume-vm) + rc-service ${service} start + ;; + *) + ;; +esac + diff --git a/app-emulation/open-vm-tools/files/open-vm-tools.confd b/app-emulation/open-vm-tools/files/open-vm-tools.confd new file mode 100644 index 000000000000..4414fabdb46e --- /dev/null +++ b/app-emulation/open-vm-tools/files/open-vm-tools.confd @@ -0,0 +1,2 @@ +# Set this to no to disable drag and drop (and vmblock) loading. +VM_DRAG_AND_DROP="yes" diff --git a/app-emulation/open-vm-tools/files/open-vm-tools.desktop b/app-emulation/open-vm-tools/files/open-vm-tools.desktop new file mode 100644 index 000000000000..97d4abf17f80 --- /dev/null +++ b/app-emulation/open-vm-tools/files/open-vm-tools.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Exec=vmware-user-suid-wrapper +Name=VMware User Agent +X-KDE-autostart-phase=1 +NoDisplay=true diff --git a/app-emulation/open-vm-tools/files/open-vm-tools.initd b/app-emulation/open-vm-tools/files/open-vm-tools.initd new file mode 100644 index 000000000000..6da69d4fb6ed --- /dev/null +++ b/app-emulation/open-vm-tools/files/open-vm-tools.initd @@ -0,0 +1,60 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +pidfile="/run/vmtoolsd.pid" +command="/usr/bin/vmtoolsd" +command_args="-b ${pidfile}" + +vmblockmntpt="/proc/fs/vmblock/mountPoint" +vmblockfusemntpt="/run/vmblock-fuse" + +depend() { + before checkfs fsck net X +} + +start_vmblock() { + checkpath -d -m 1777 /tmp/VMwareDnD + if command -v vmware-vmblock-fuse > /dev/null; then + modprobe fuse > /dev/null 2>&1 + checkpath -d "${vmblockfusemntpt}" + ebegin "Mounting vmblock-fuse" + vmware-vmblock-fuse \ + -o subtype=vmware-vmblock,default_permissions,allow_other \ + "${vmblockfusemntpt}" + eend $? + else + modprobe vmblock > /dev/null 2>&1 + checkpath -d "${vmblockmntpt}" + ebegin "Mounting vmblock" + mount -t vmblock vmblock "${vmblockmntpt}" + eend $? + fi +} + +stop_vmblock() { + if [ -d "${vmblockfusemntpt}" ]; then + ebegin "Unmounting vmblock-fuse" + umount "${vmblockfusemntpt}" + eend $? + else + ebegin "Unmounting vmblock" + umount "${vmblockmntpt}" + eend $? + fi +} + +start_pre() { + if [ x"${VM_DRAG_AND_DROP}" = xyes ]; then + start_vmblock + fi + return 0 +} + +stop_post() { + if [ x"${VM_DRAG_AND_DROP}" = xyes ]; then + stop_vmblock + fi + return 0 +} diff --git a/app-emulation/open-vm-tools/files/vmtoolsd.service b/app-emulation/open-vm-tools/files/vmtoolsd.service new file mode 100644 index 000000000000..426d4fbd993c --- /dev/null +++ b/app-emulation/open-vm-tools/files/vmtoolsd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Service for virtual machines hosted on VMware +Documentation=http://open-vm-tools.sourceforge.net/about.php +ConditionVirtualization=vmware + +[Service] +ExecStart=/usr/bin/vmtoolsd +TimeoutStopSec=5 + +[Install] +WantedBy=multi-user.target diff --git a/app-emulation/open-vm-tools/metadata.xml b/app-emulation/open-vm-tools/metadata.xml new file mode 100644 index 000000000000..021bf9a90fc5 --- /dev/null +++ b/app-emulation/open-vm-tools/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>vmware</herd> + <maintainer> + <email>floppym@gentoo.org</email> + <name>Mike Gilbert</name> + </maintainer> + <longdescription> + The Open Virtual Machine Tools (open-vm-tools) are the open source + implementation of VMware Tools. They are a set of guest operating system + virtualization components that enhance performance and user experience + of virtual machines. + </longdescription> + <use> + <flag name="doc">Generate API documentation</flag> + <flag name="fuse">Build vmblock-fuse in favor of FUSE based blocking mechanism for DnD</flag> + <flag name="grabbitmqproxy">Enable grabbitmqproxy</flag> + <flag name="pic">Force shared libraries to be built as PIC</flag> + <flag name="vgauth">Enable vgauth</flag> + </use> + <upstream> + <remote-id type="github">vmware/open-vm-tools</remote-id> + <remote-id type="sourceforge">open-vm-tools</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-emulation/open-vm-tools/open-vm-tools-2013.09.16.1328054-r2.ebuild b/app-emulation/open-vm-tools/open-vm-tools-2013.09.16.1328054-r2.ebuild new file mode 100644 index 000000000000..3383e6fbdf22 --- /dev/null +++ b/app-emulation/open-vm-tools/open-vm-tools-2013.09.16.1328054-r2.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib pam user versionator flag-o-matic systemd toolchain-funcs + +MY_PV="$(replace_version_separator 3 '-')" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Opensourced tools for VMware guests" +HOMEPAGE="https://github.com/vmware/open-vm-tools" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X doc +fuse icu modules pam +pic xinerama" + +COMMON_DEPEND=" + dev-libs/glib:2 + dev-libs/libdnet + sys-apps/ethtool + sys-process/procps + pam? ( virtual/pam ) + X? ( + dev-cpp/gtkmm:2.4 + x11-base/xorg-server + x11-drivers/xf86-input-vmmouse + x11-drivers/xf86-video-vmware + x11-libs/gtk+:2 + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libXtst + ) + fuse? ( sys-fs/fuse ) + icu? ( dev-libs/icu:= ) + xinerama? ( x11-libs/libXinerama ) +" + +DEPEND="${COMMON_DEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig + virtual/linux-sources + sys-apps/findutils +" + +RDEPEND="${COMMON_DEPEND} + modules? ( app-emulation/open-vm-tools-kmod ) +" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup vmware +} + +src_prepare() { + # 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() { + # http://bugs.gentoo.org/402279 + if has_version '>=sys-process/procps-3.3.2'; then + export CUSTOM_PROCPS_NAME=procps + export CUSTOM_PROCPS_LIBS="$($(tc-getPKG_CONFIG) --libs libprocps)" + fi + + local myeconfargs=( + --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 pam) + $(use_with pic) + $(use_enable xinerama multimon) + ) + + econf "${myeconfargs[@]}" + + # Bugs 260878, 326761 + find ./ -name Makefile | xargs sed -i -e 's/-Werror//g' || die "sed out Werror failed" +} + +src_install() { + default + + 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 + newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools + systemd_dounit "${FILESDIR}"/vmtoolsd.service + + exeinto /etc/vmware-tools/scripts/vmware/ + doexe "${FILESDIR}"/network + + if use X; + then + fperms 4755 "/usr/bin/vmware-user-suid-wrapper" + + dobin "${S}"/scripts/common/vmware-xdg-detect-de + + insinto /etc/xdg/autostart + doins "${FILESDIR}/open-vm-tools.desktop" + + elog "To be able to use the drag'n'drop feature of VMware for file" + elog "exchange, please add the users to the 'vmware' group." + fi + elog "Add 'vmware-tools' service to the default runlevel." +} diff --git a/app-emulation/open-vm-tools/open-vm-tools-2013.09.16.1328054-r3.ebuild b/app-emulation/open-vm-tools/open-vm-tools-2013.09.16.1328054-r3.ebuild new file mode 100644 index 000000000000..9340280cede9 --- /dev/null +++ b/app-emulation/open-vm-tools/open-vm-tools-2013.09.16.1328054-r3.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib pam user versionator flag-o-matic systemd toolchain-funcs + +MY_PV="$(replace_version_separator 3 '-')" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Opensourced tools for VMware guests" +HOMEPAGE="https://github.com/vmware/open-vm-tools" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X doc icu modules pam +pic xinerama" + +COMMON_DEPEND=" + dev-libs/glib:2 + dev-libs/libdnet + sys-apps/ethtool + sys-process/procps + pam? ( virtual/pam ) + X? ( + dev-cpp/gtkmm:2.4 + x11-base/xorg-server + x11-drivers/xf86-input-vmmouse + x11-drivers/xf86-video-vmware + x11-libs/gtk+:2 + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libXtst + ) + sys-fs/fuse + icu? ( dev-libs/icu:= ) + xinerama? ( x11-libs/libXinerama ) +" + +DEPEND="${COMMON_DEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig + virtual/linux-sources + sys-apps/findutils +" + +RDEPEND="${COMMON_DEPEND} + modules? ( app-emulation/open-vm-tools-kmod ) +" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup vmware +} + +src_prepare() { + # 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() { + # http://bugs.gentoo.org/402279 + if has_version '>=sys-process/procps-3.3.2'; then + export CUSTOM_PROCPS_NAME=procps + export CUSTOM_PROCPS_LIBS="$($(tc-getPKG_CONFIG) --libs libprocps)" + fi + + local myeconfargs=( + --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 pam) + $(use_with pic) + $(use_enable xinerama multimon) + ) + + econf "${myeconfargs[@]}" + + # Bugs 260878, 326761 + find ./ -name Makefile | xargs sed -i -e 's/-Werror//g' || die "sed out Werror failed" +} + +src_install() { + default + + 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 + newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools + systemd_dounit "${FILESDIR}"/vmtoolsd.service + + exeinto /etc/vmware-tools/scripts/vmware/ + doexe "${FILESDIR}"/network + + if use X; + then + fperms 4755 "/usr/bin/vmware-user-suid-wrapper" + + dobin "${S}"/scripts/common/vmware-xdg-detect-de + + insinto /etc/xdg/autostart + doins "${FILESDIR}/open-vm-tools.desktop" + + elog "To be able to use the drag'n'drop feature of VMware for file" + elog "exchange, please add the users to the 'vmware' group." + fi + elog "Add 'vmware-tools' service to the default runlevel." +} diff --git a/app-emulation/open-vm-tools/open-vm-tools-9.10.0_p2476743.ebuild b/app-emulation/open-vm-tools/open-vm-tools-9.10.0_p2476743.ebuild new file mode 100644 index 000000000000..565c0d77cf3c --- /dev/null +++ b/app-emulation/open-vm-tools/open-vm-tools-9.10.0_p2476743.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib pam user versionator flag-o-matic systemd toolchain-funcs + +MY_P="${PN}-${PV/_p/-}" + +DESCRIPTION="Opensourced tools for VMware guests" +HOMEPAGE="https://github.com/vmware/open-vm-tools" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X doc grabbitmqproxy icu modules pam +pic vgauth xinerama" + +COMMON_DEPEND=" + dev-libs/glib:2 + dev-libs/libdnet + sys-apps/ethtool + sys-fs/fuse + >=sys-process/procps-3.3.2 + grabbitmqproxy? ( dev-libs/openssl:0 ) + icu? ( dev-libs/icu:= ) + pam? ( virtual/pam ) + vgauth? ( + dev-libs/openssl:0 + dev-libs/xerces-c + dev-libs/xml-security-c + ) + X? ( + dev-cpp/gtkmm:2.4 + x11-base/xorg-server + x11-drivers/xf86-input-vmmouse + x11-drivers/xf86-video-vmware + x11-libs/gtk+:2 + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libXtst + ) + xinerama? ( x11-libs/libXinerama ) +" + +DEPEND="${COMMON_DEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig + virtual/linux-sources + sys-apps/findutils +" + +RDEPEND="${COMMON_DEPEND} + modules? ( app-emulation/open-vm-tools-kmod ) +" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup vmware +} + +src_prepare() { + epatch "${FILESDIR}/9.10.0-vgauth.patch" + epatch_user +} + +src_configure() { + # http://bugs.gentoo.org/402279 + export CUSTOM_PROCPS_NAME=procps + export CUSTOM_PROCPS_LIBS="$($(tc-getPKG_CONFIG) --libs libprocps)" + + local myeconfargs=( + --disable-deploypkg + --disable-tests + # Broken build + --docdir=/usr/share/doc/${PF} + --with-procps + --with-dnet + --without-kernel-modules + $(use_enable doc docs) + $(use_enable grabbitmqproxy) + $(use_enable vgauth) + $(use_enable xinerama multimon) + $(use_with icu) + $(use_with pam) + $(use_with pic) + $(use_with X gtk2) + $(use_with X gtkmm) + $(use_with X x) + ) + + econf "${myeconfargs[@]}" + + # Bugs 260878, 326761 + find . -name Makefile | xargs sed -i -e 's/-Werror//g' || die "sed out Werror failed" +} + +src_install() { + default + + 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 + newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools + systemd_dounit "${FILESDIR}"/vmtoolsd.service + + exeinto /etc/vmware-tools/scripts/vmware + doexe "${FILESDIR}"/network + + if use X; then + fperms 4755 "/usr/bin/vmware-user-suid-wrapper" + + dobin "${S}"/scripts/common/vmware-xdg-detect-de + + insinto /etc/xdg/autostart + doins "${FILESDIR}/open-vm-tools.desktop" + + elog "To be able to use the drag'n'drop feature of VMware for file" + elog "exchange, please add the users to the 'vmware' group." + fi + elog "Add 'vmware-tools' service to the default runlevel." +} diff --git a/app-emulation/open-vm-tools/open-vm-tools-9.10.2_p2822639.ebuild b/app-emulation/open-vm-tools/open-vm-tools-9.10.2_p2822639.ebuild new file mode 100644 index 000000000000..3c2064794121 --- /dev/null +++ b/app-emulation/open-vm-tools/open-vm-tools-9.10.2_p2822639.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib pam user versionator flag-o-matic systemd toolchain-funcs + +MY_P="${PN}-${PV/_p/-}" + +DESCRIPTION="Opensourced tools for VMware guests" +HOMEPAGE="https://github.com/vmware/open-vm-tools" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X doc grabbitmqproxy icu pam +pic vgauth xinerama" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/libdnet + sys-apps/ethtool + sys-fs/fuse + >=sys-process/procps-3.3.2 + grabbitmqproxy? ( dev-libs/openssl:0 ) + icu? ( dev-libs/icu:= ) + pam? ( virtual/pam ) + vgauth? ( + dev-libs/openssl:0 + dev-libs/xerces-c + dev-libs/xml-security-c + ) + X? ( + dev-cpp/gtkmm:2.4 + x11-base/xorg-server + x11-drivers/xf86-input-vmmouse + x11-drivers/xf86-video-vmware + x11-libs/gtk+:2 + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libXtst + ) + xinerama? ( x11-libs/libXinerama ) +" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig + sys-apps/findutils +" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup vmware +} + +src_prepare() { + epatch "${FILESDIR}/9.10.0-vgauth.patch" + chmod +x configure || die + epatch_user +} + +src_configure() { + # http://bugs.gentoo.org/402279 + export CUSTOM_PROCPS_NAME=procps + export CUSTOM_PROCPS_LIBS="$($(tc-getPKG_CONFIG) --libs libprocps)" + + local myeconfargs=( + --disable-deploypkg + --disable-tests + # Broken build + --docdir=/usr/share/doc/${PF} + --with-procps + --with-dnet + --without-kernel-modules + $(use_enable doc docs) + $(use_enable grabbitmqproxy) + $(use_enable vgauth) + $(use_enable xinerama multimon) + $(use_with icu) + $(use_with pam) + $(use_with pic) + $(use_with X gtk2) + $(use_with X gtkmm) + $(use_with X x) + ) + + econf "${myeconfargs[@]}" + + # Bugs 260878, 326761 + find . -name Makefile | xargs sed -i -e 's/-Werror//g' || die "sed out Werror failed" +} + +src_install() { + default + + 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 + newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools + systemd_dounit "${FILESDIR}"/vmtoolsd.service + + exeinto /etc/vmware-tools/scripts/vmware + doexe "${FILESDIR}"/network + + if use X; then + fperms 4755 "/usr/bin/vmware-user-suid-wrapper" + + dobin "${S}"/scripts/common/vmware-xdg-detect-de + + insinto /etc/xdg/autostart + doins "${FILESDIR}/open-vm-tools.desktop" + + elog "To be able to use the drag'n'drop feature of VMware for file" + elog "exchange, please add the users to the 'vmware' group." + fi +} diff --git a/app-emulation/open-vm-tools/open-vm-tools-9.4.0.1280544.ebuild b/app-emulation/open-vm-tools/open-vm-tools-9.4.0.1280544.ebuild new file mode 100644 index 000000000000..105c842bf803 --- /dev/null +++ b/app-emulation/open-vm-tools/open-vm-tools-9.4.0.1280544.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib pam user versionator flag-o-matic systemd toolchain-funcs + +MY_PV="$(replace_version_separator 3 '-')" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Opensourced tools for VMware guests" +HOMEPAGE="https://github.com/vmware/open-vm-tools" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X doc fuse icu +pic 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:2.4 + x11-base/xorg-server + x11-drivers/xf86-input-vmmouse + x11-drivers/xf86-video-vmware + x11-libs/gtk+:2 + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libXtst + ) + fuse? ( sys-fs/fuse ) + icu? ( dev-libs/icu:= ) + xinerama? ( x11-libs/libXinerama ) + " + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig + virtual/linux-sources + sys-apps/findutils + " + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup vmware +} + +src_prepare() { + # 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() { + # http://bugs.gentoo.org/402279 + if has_version '>=sys-process/procps-3.3.2'; then + export CUSTOM_PROCPS_NAME=procps + export CUSTOM_PROCPS_LIBS="$($(tc-getPKG_CONFIG) --libs libprocps)" + fi + + 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 xinerama multimon) + + # Bugs 260878, 326761 + find ./ -name Makefile | xargs sed -i -e 's/-Werror//g' || die "sed out Werror failed" +} + +src_install() { + default + + 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 + newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools + systemd_dounit "${FILESDIR}"/vmtoolsd.service + + exeinto /etc/vmware-tools/scripts/vmware/ + doexe "${FILESDIR}"/network + + if use X; + then + fperms 4755 "/usr/bin/vmware-user-suid-wrapper" + + dobin "${S}"/scripts/common/vmware-xdg-detect-de + + insinto /etc/xdg/autostart + doins "${FILESDIR}/open-vm-tools.desktop" + + elog "To be able to use the drag'n'drop feature of VMware for file" + elog "exchange, please add the users to the 'vmware' group." + fi + elog "Add 'vmware-tools' service to the default runlevel." +} |