1 |
vadimk 09/08/26 14:59:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vmware-vix-1.6.2.156745-r2.ebuild |
5 |
Removed: vmware-vix-1.6.2.156745-r1.ebuild |
6 |
Log: |
7 |
removed unnecessary dependencies |
8 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 app-emulation/vmware-vix/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-vix/ChangeLog?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-vix/ChangeLog?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-vix/ChangeLog?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- ChangeLog 8 Jul 2009 18:26:38 -0000 1.3 |
24 |
+++ ChangeLog 26 Aug 2009 14:59:25 -0000 1.4 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-emulation/vmware-vix |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v 1.3 2009/07/08 18:26:38 vadimk Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v 1.4 2009/08/26 14:59:25 vadimk Exp $ |
30 |
+ |
31 |
+*vmware-vix-1.6.2.156745-r2 (26 Aug 2009) |
32 |
+ |
33 |
+ 26 Aug 2009; Vadim Kuznetsov vadimk@g.o |
34 |
+ -vmware-vix-1.6.2.156745-r1.ebuild, +vmware-vix-1.6.2.156745-r2.ebuild: |
35 |
+ Removed unnecessary dependencies |
36 |
|
37 |
*vmware-vix-1.6.2.156745-r1 (08 Jul 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-emulation/vmware-vix/vmware-vix-1.6.2.156745-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-vix/vmware-vix-1.6.2.156745-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-vix/vmware-vix-1.6.2.156745-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: vmware-vix-1.6.2.156745-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/vmware-vix-1.6.2.156745-r2.ebuild,v 1.1 2009/08/26 14:59:25 vadimk Exp $ |
52 |
|
53 |
# Unlike many other binary packages the user doesn't need to agree to a licence |
54 |
# to download VMWare. The agreeing to a licence is part of the configure step |
55 |
# which the user must run manually. |
56 |
|
57 |
EAPI="2" |
58 |
|
59 |
inherit eutils versionator |
60 |
|
61 |
MY_PV=$(replace_version_separator 3 '-' ) |
62 |
MY_PN="VMware-vix-${MY_PV}" |
63 |
|
64 |
DESCRIPTION="VMware VIX for Linux" |
65 |
HOMEPAGE="http://www.vmware.com/" |
66 |
SRC_URI=" x86? ( mirror://vmware/software/vmserver/${MY_PN}.i386.tar.gz ) |
67 |
amd64? ( mirror://vmware/software/vmserver/${MY_PN}.x86_64.tar.gz ) " |
68 |
|
69 |
LICENSE="vmware" |
70 |
IUSE="" |
71 |
SLOT="0" |
72 |
KEYWORDS="-* ~x86 ~amd64" |
73 |
RESTRICT="strip" |
74 |
|
75 |
# vmware-server should not use virtual/libc as this is a |
76 |
# precompiled binary package thats linked to glibc. |
77 |
DEPEND=" |
78 |
>=dev-lang/perl-5 |
79 |
sys-apps/pciutils |
80 |
sys-apps/findutils |
81 |
>=sys-libs/glibc-2.3.5 |
82 |
x11-misc/shared-mime-info |
83 |
virtual/os-headers" |
84 |
RDEPEND="${DEPEND} |
85 |
dev-libs/glib |
86 |
dev-libs/libxml2 |
87 |
dev-libs/openssl |
88 |
net-misc/curl |
89 |
sys-libs/zlib |
90 |
!app-emulation/vmware-workstation |
91 |
" |
92 |
|
93 |
S=${WORKDIR}/vmware-vix-distrib |
94 |
|
95 |
|
96 |
pkg_setup() { |
97 |
if use x86; then |
98 |
MY_P="${MY_PN}.i386" |
99 |
elif use amd64; then |
100 |
MY_P="${MY_PN}.x86_64" |
101 |
fi |
102 |
} |
103 |
|
104 |
src_prepare() { |
105 |
VMWARE_GROUP=${VMWARE_GROUP:-vmware} |
106 |
VMWARE_INSTALL_DIR=/opt/${PN//-//} |
107 |
|
108 |
shortname="vix" |
109 |
product="vmware-vix" |
110 |
config_dir="/etc/vmware-vix" |
111 |
product_name="VMware VIX API" |
112 |
|
113 |
enewgroup ${VMWARE_GROUP} |
114 |
# EPATCH_SOURCE="${FILESDIR}"/${PV} EPATCH_SUFFIX="patch" epatch |
115 |
|
116 |
sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/installer/services.sh || die "sed of services" |
117 |
|
118 |
# We won't want any perl scripts from VMware |
119 |
rm -f *.pl bin/*.pl |
120 |
rm -f etc/installer.sh |
121 |
} |
122 |
|
123 |
src_install() { |
124 |
# We loop through our directories and copy everything to our system. |
125 |
for x in api bin lib include |
126 |
do |
127 |
if [[ -e "${S}/vmware-vix/${x}" ]] |
128 |
then |
129 |
dodir "${VMWARE_INSTALL_DIR}"/${x} |
130 |
cp -pPR "${S}"/vmware-vix/${x}/* "${D}""${VMWARE_INSTALL_DIR}"/${x} \ |
131 |
|| die "copying ${x}" |
132 |
fi |
133 |
done |
134 |
|
135 |
# If we have an /etc directory, we copy it. |
136 |
#if [[ -e "${S}/etc" ]] |
137 |
#then |
138 |
dodir "${config_dir}" |
139 |
# cp -pPR "${S}"/etc/* "${D}""${config_dir}" |
140 |
# fowners root:${VMWARE_GROUP} "${config_dir}" |
141 |
# fperms 770 "${config_dir}" |
142 |
#fi |
143 |
|
144 |
# If we have any helper files, we install them. First, we check for an |
145 |
# init script. |
146 |
if [[ -e "${FILESDIR}/${PN}.rc" ]] |
147 |
then |
148 |
newinitd "${FILESDIR}"/${PN}.rc ${product} || die "newinitd" |
149 |
fi |
150 |
|
151 |
local ENVD="${T}/90${PN}" |
152 |
echo "PATH=${VMWARE_INSTALL_DIR}/bin" > "${ENVD}" |
153 |
echo "ROOTPATH=${VMWARE_INSTALL_DIR}/bin" >> "${ENVD}" |
154 |
doenvd "${ENVD}" || die "doenvd" |
155 |
|
156 |
# Last, we check for any mime files. |
157 |
if [[ -e "${FILESDIR}/${PN}.xml" ]] |
158 |
then |
159 |
insinto /usr/share/mime/packages |
160 |
doins "${FILESDIR}"/${PN}.xml || die "mimetypes" |
161 |
fi |
162 |
|
163 |
# Blame bug #91191 for this one. |
164 |
if [[ -e doc/EULA ]] |
165 |
then |
166 |
insinto "${VMWARE_INSTALL_DIR}"/doc |
167 |
doins doc/EULA || die "copying EULA" |
168 |
fi |
169 |
|
170 |
# Now, we copy in our services.sh file |
171 |
#exeinto "${config_dir}"/init.d |
172 |
#newexe installer/services.sh ${product} || die "services.sh" |
173 |
|
174 |
dohtml -r doc/VMwareVix/* |
175 |
|
176 |
# Finally, we run the "questions" |
177 |
# Questions: |
178 |
einfo "Adding answers to ${config_dir}/locations" |
179 |
locations="${D}${config_dir}/locations" |
180 |
echo "answer BINDIR ${VMWARE_INSTALL_DIR}/bin" >> ${locations} |
181 |
echo "answer VIXLIBDIR ${VMWARE_INSTALL_DIR}/lib" >> ${locations} |
182 |
echo "answer LIBDIR ${VMWARE_INSTALL_DIR}/lib" >> ${locations} |
183 |
#echo "answer MANDIR ${VMWARE_INSTALL_DIR}/man" >> ${locations} |
184 |
echo "answer DOCDIR /usr/share/doc/${P}" >> ${locations} |
185 |
|
186 |
local VMWARECONFIG="${T}"/config |
187 |
if [[ -e ${ROOT}/etc/vmware/config ]] |
188 |
then |
189 |
cp -a "${ROOT}"/etc/vmware/config "${VMWARECONFIG}" |
190 |
sed -i -e "/vix.libdir/d" "${VMWARECONFIG}" |
191 |
fi |
192 |
echo "vix.libdir = \"${VMWARE_INSTALL_DIR}/lib\"" >> "${VMWARECONFIG}" |
193 |
insinto /etc/vmware/ |
194 |
doins "${VMWARECONFIG}" |
195 |
} |
196 |
|
197 |
pkg_preinst() { |
198 |
# This must be done after the install to get the mtimes on each file |
199 |
# right. |
200 |
|
201 |
#Note: it's a bit weird to use ${D} in a preinst script but it should work |
202 |
#(drobbins, 1 Feb 2002) |
203 |
|
204 |
einfo "Generating ${config_dir}/locations file." |
205 |
d=`echo ${D} | wc -c` |
206 |
for x in `find ${D}${VMWARE_INSTALL_DIR} ${D}${config_dir}` ; do |
207 |
x="`echo ${x} | cut -c ${d}-`" |
208 |
if [ -d "${D}/${x}" ] ; then |
209 |
echo "directory ${x}" >> "${D}${config_dir}"/locations |
210 |
else |
211 |
echo -n "file ${x}" >> "${D}${config_dir}"/locations |
212 |
if [ "${x}" == "${config_dir}/locations" ] ; then |
213 |
echo "" >> "${D}${config_dir}"/locations |
214 |
elif [ "${x}" == "${config_dir}/not_configured" ] ; then |
215 |
echo "" >> "${D}${config_dir}"/locations |
216 |
else |
217 |
echo -n " " >> "${D}${config_dir}"/locations |
218 |
find "${D}${x}" -printf %T@ >> "${D}${config_dir}"/locations |
219 |
echo "" >> "${D}${config_dir}"/locations |
220 |
fi |
221 |
fi |
222 |
done |
223 |
} |
224 |
|
225 |
pkg_postinst() { |
226 |
update-mime-database /usr/share/mime |
227 |
[[ -d "${config_dir}" ]] && chown -R root:${VMWARE_GROUP} ${config_dir} |
228 |
|
229 |
# This is to fix the problem where the not_configured file doesn't get |
230 |
# removed when the configuration is run. This doesn't remove the file |
231 |
# It just tells the vmware-config.pl script it can delete it. |
232 |
einfo "Updating ${config_dir}/locations" |
233 |
for x in "${config_dir}"/._cfg????_locations ; do |
234 |
if [ -f $x ] ; then |
235 |
cat $x >> "${config_dir}"/locations |
236 |
rm $x |
237 |
fi |
238 |
done |
239 |
|
240 |
ewarn "In order to run ${product_name}, you have to" |
241 |
ewarn "be in the '${VMWARE_GROUP}' group." |
242 |
} |
243 |
|
244 |
pkg_prerm() { |
245 |
sed -i -e "/vix.libdir/d" "${ROOT}"/etc/vmware/config |
246 |
} |
247 |
|
248 |
pkg_postrm() { |
249 |
if ! has_version app-emulation/${PN}; then |
250 |
ewarn "To remove all traces of ${producti_name} you will need to remove the files" |
251 |
ewarn "in ${config_dir} and /etc/init.d/${product}." |
252 |
ewarn "If the vmware-modules package is installed, you may no longer need it." |
253 |
fi |
254 |
} |