Gentoo Archives: gentoo-commits

From: "Vadim Kuznetsov (vadimk)" <vadimk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/open-vm-tools: ChangeLog open-vm-tools-0.0.20090722.179896.ebuild
Date: Fri, 24 Jul 2009 23:12:58
Message-Id: E1MUTwe-00039g-2z@stork.gentoo.org
1 vadimk 09/07/24 23:12:56
2
3 Modified: ChangeLog
4 Added: open-vm-tools-0.0.20090722.179896.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.23 app-emulation/open-vm-tools/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?rev=1.23&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?rev=1.23&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?r1=1.22&r2=1.23
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v
19 retrieving revision 1.22
20 retrieving revision 1.23
21 diff -u -r1.22 -r1.23
22 --- ChangeLog 10 Jul 2009 19:51:51 -0000 1.22
23 +++ ChangeLog 24 Jul 2009 23:12:56 -0000 1.23
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-emulation/open-vm-tools
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.22 2009/07/10 19:51:51 vadimk Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.23 2009/07/24 23:12:56 vadimk Exp $
29 +
30 +*open-vm-tools-0.0.20090722.179896 (24 Jul 2009)
31 +
32 + 24 Jul 2009; Vadim Kuznetsov vadimk@g.o
33 + +open-vm-tools-0.0.20090722.179896.ebuild:
34 + Version bump.
35
36 *open-vm-tools-0.0.20090618.172495-r2 (10 Jul 2009)
37
38
39
40
41 1.1 app-emulation/open-vm-tools/open-vm-tools-0.0.20090722.179896.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20090722.179896.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20090722.179896.ebuild?rev=1.1&content-type=text/plain
45
46 Index: open-vm-tools-0.0.20090722.179896.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20090722.179896.ebuild,v 1.1 2009/07/24 23:12:56 vadimk Exp $
51
52 EAPI="2"
53
54 inherit eutils linux-mod pam versionator
55
56 MY_DATE="$(get_version_component_range 3)"
57 MY_BUILD="$(get_version_component_range 4)"
58 MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}"
59 MY_P="${PN}-${MY_PV}"
60
61 DESCRIPTION="Opensourced tools for VMware guests"
62 HOMEPAGE="http://open-vm-tools.sourceforge.net/"
63 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
64
65 LICENSE="LGPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="X doc fuse icu unity xinerama"
69
70 RDEPEND=">=dev-libs/glib-2
71 dev-libs/libdnet
72 sys-apps/ethtool
73 sys-process/procps
74 virtual/pam
75 X? (
76 dev-cpp/gtkmm
77 x11-base/xorg-server
78 x11-drivers/xf86-input-vmmouse
79 x11-drivers/xf86-video-vmware
80 x11-libs/gtk+
81 x11-libs/libnotify
82 x11-libs/libX11
83 )
84 fuse? ( sys-fs/fuse )
85 icu? ( dev-libs/icu )
86 unity? (
87 dev-libs/uriparser
88 x11-libs/libXScrnSaver
89 )
90 xinerama? ( x11-libs/libXinerama )
91 !app-emulation/vmware-esx-tools
92 !app-emulation/vmware-server-tools
93 !app-emulation/vmware-workstation-tools
94 "
95
96 DEPEND="${RDEPEND}
97 dev-util/pkgconfig
98 virtual/linux-sources
99 doc? ( app-doc/doxygen )
100 "
101
102 S="${WORKDIR}/${MY_P}"
103
104 VMWARE_MOD_DIR="modules/linux"
105 VMWARE_MODULE_LIST="pvscsi vmblock vmci vmhgfs vmsync vmmemctl vmxnet vmxnet3 vsock"
106
107 pkg_setup() {
108 use unity && ! use xinerama && \
109 die 'The Unity USE flag requires USE="xinerama" as well'
110
111 linux-mod_pkg_setup
112 MODULE_NAMES=""
113 BUILD_TARGETS="auto-build HEADER_DIR=${KERNEL_DIR}/include BUILD_DIR=${KV_OUT_DIR} OVT_SOURCE_DIR=${S}"
114
115 for mod in ${VMWARE_MODULE_LIST};
116 do
117 if [ "${mod}" == "vmxnet" -o "${mod}" == "vmxnet3" ];
118 then
119 MODTARGET="net"
120 else
121 MODTARGET="openvmtools"
122 fi
123 MODULE_NAMES="${MODULE_NAMES} ${mod}(${MODTARGET}:${S}/${VMWARE_MOD_DIR}/${mod})"
124 done
125
126 enewgroup vmware
127 }
128
129 src_prepare() {
130 epatch "${FILESDIR}/default-scripts.patch"
131 #sed -i -e 's:VMTOOLSD_PLUGIN_ROOT=\\"\$(pkglibdir)\\":VMTOOLSD_PLUGIN_ROOT=\\"\$(pkglibdir)/plugins\\":g' \
132 # services/vmtoolsd/Makefile.in || die "sed plugin path failed"
133 sed -i -e 's/proc-3.2.7/proc/g' configure || die "sed configure failed"
134 sed -i -e 's/CFLAGS=.*Werror/#&/g' configure || die "sed comment out Werror failed"
135 }
136
137 src_configure() {
138 econf \
139 --with-procps \
140 --with-dnet \
141 --without-kernel-modules \
142 $(use_with X x) \
143 $(use_with X gtk2) \
144 $(use_with X gtkmm) \
145 $(use_with icu) \
146 $(use_enable unity) \
147 $(use_enable xinerama multimon)
148 }
149
150 src_compile() {
151 linux-mod_src_compile
152
153 emake || die "failed to compile"
154 }
155
156 src_install() {
157 linux-mod_src_install
158
159 emake DESTDIR="${D}" install || die "failed to install"
160
161 rm "${D}"/etc/pam.d/vmtoolsd
162 pamd_mimic_system vmtoolsd auth account
163
164 newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools || die "failed to newinitd"
165 newconfd "${FILESDIR}/open-vm.confd" vmware-tools || die "failed to newconfd"
166
167 if use X;
168 then
169 insinto /etc/xdg/autostart
170 doins "${FILESDIR}/open-vm-tools.desktop" || die "failed to install .desktop"
171
172 elog "To be able to use the drag'n'drop feature of VMware for file"
173 elog "exchange, you need to do this:"
174 elog " Add 'vmware-tools' to your default runlevel."
175 elog " Add the users which should have access to this function"
176 elog " to the group 'vmware'."
177 fi
178 }