Gentoo Archives: gentoo-commits

From: "Mike Auty (ikelos)" <ikelos@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.20080808.109361-r1.ebuild open-vm-tools-0.0.20080808.109361.ebuild
Date: Sun, 19 Oct 2008 13:06:04
Message-Id: E1KrXyq-0002xr-GQ@stork.gentoo.org
1 ikelos 08/10/19 13:06:00
2
3 Modified: ChangeLog
4 Added: open-vm-tools-0.0.20080808.109361-r1.ebuild
5 Removed: open-vm-tools-0.0.20080808.109361.ebuild
6 Log:
7 Bump to fix bug 231525.
8 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo i686)
9
10 Revision Changes Path
11 1.10 app-emulation/open-vm-tools/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 31 Aug 2008 09:40:04 -0000 1.9
24 +++ ChangeLog 19 Oct 2008 13:06:00 -0000 1.10
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-emulation/open-vm-tools
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.9 2008/08/31 09:40:04 ikelos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.10 2008/10/19 13:06:00 ikelos Exp $
30 +
31 +*open-vm-tools-0.0.20080808.109361-r1 (19 Oct 2008)
32 +
33 + 19 Oct 2008; Mike Auty <ikelos@g.o>
34 + -open-vm-tools-0.0.20080808.109361.ebuild,
35 + +open-vm-tools-0.0.20080808.109361-r1.ebuild:
36 + Bump to fix bug 231525.
37
38 31 Aug 2008; Mike Auty <ikelos@g.o> +files/10-vmware-tools:
39 Add missing file 10-vmware-tools
40
41
42
43 1.1 app-emulation/open-vm-tools/open-vm-tools-0.0.20080808.109361-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20080808.109361-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20080808.109361-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: open-vm-tools-0.0.20080808.109361-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20080808.109361-r1.ebuild,v 1.1 2008/10/19 13:06:00 ikelos Exp $
53
54 inherit pam eutils linux-mod 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 S="${WORKDIR}/${MY_P}"
62
63 DESCRIPTION="Opensourced tools for VMware guests"
64 HOMEPAGE="http://open-vm-tools.sourceforge.net/"
65 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
66
67 LICENSE="LGPL-2"
68 SLOT="0"
69 KEYWORDS="~x86 ~amd64"
70 IUSE="X xinerama icu unity"
71 DEPEND="
72 virtual/linux-sources
73 sys-apps/ethtool
74 X? (
75 x11-libs/libX11
76 x11-libs/gtk+
77 )
78 unity? (
79 x11-libs/libXScrnSaver
80 dev-libs/uriparser
81 )
82 xinerama? (
83 x11-libs/libXinerama
84 )
85 !app-emulation/vmware-workstation-tools
86 !app-emulation/vmware-server-tools
87 !app-emulation/vmware-esx-tools
88 sys-process/procps
89 dev-libs/libdnet
90 icu? ( dev-libs/icu )
91 "
92
93 RDEPEND="${DEPEND/virtual\/linux\-sources/}
94 virtual/pam
95 X? (
96 x11-base/xorg-server
97 x11-drivers/xf86-video-vmware
98 x11-drivers/xf86-input-vmmouse
99 )
100 unity? (
101 x11-libs/libXScrnSaver
102 dev-libs/uriparser
103 )
104 "
105
106 VMWARE_MOD_DIR="modules/linux"
107 VMWARE_MODULE_LIST="vmblock vmhgfs vmsync vmmemctl vmxnet"
108
109 pkg_setup() {
110
111 linux-mod_pkg_setup
112 MODULE_NAMES=""
113 BUILD_TARGETS="auto-build HEADER_DIR=${KERNEL_DIR}/include BUILD_DIR=${KV_OUT_DIR}"
114
115 for mod in ${VMWARE_MODULE_LIST};
116 do
117 if [[ "${mod}" == "vmxnet" ]];
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 ewarn "If you're compiling for a hardened target, please use the hardened"
127 ewarn "toolchain (see bug #200376, comment 18)."
128
129 enewgroup vmware
130
131 }
132
133 src_unpack() {
134 unpack ${A}
135 cd "${S}"
136 epatch "${FILESDIR}/default-scripts.patch"
137 }
138
139 src_compile() {
140 econf \
141 --without-kernel-modules \
142 $(use_with icu) \
143 $(use_with X x) \
144 $(use_enable unity) \
145 $(use_enable xinerama multimon) \
146 || die "Error: econf failed!"
147
148 linux-mod_src_compile
149
150 emake || die
151 }
152
153 src_install() {
154
155 linux-mod_src_install
156
157 pamd_mimic_system vmware-guestd auth account
158
159 emake install DESTDIR="${D}" || die "Failed to install"
160
161 newinitd "${FILESDIR}/open-vm.initd" vmware-tools
162 newconfd "${FILESDIR}/open-vm.confd" vmware-tools
163
164 if use X;
165 then
166 exeinto /etc/X11/xinit/xinitrc.d
167 doexe "${FILESDIR}/10-vmware-tools"
168
169 elog "To be able to use the drag'n'drop feature of VMware for file"
170 elog "exchange, you need to do this:"
171 elog " Add 'vmware-tools' to your default runlevel"
172 elog " Add the users which should have access to this function"
173 elog " to the group 'vmware'"
174 fi
175 }