summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Auty <ikelos@gentoo.org>2006-06-19 18:16:39 +0000
committerMike Auty <ikelos@gentoo.org>2006-06-19 18:16:39 +0000
commitd10857c7c545b7c9b35f747e506fe7ddb4af7c74 (patch)
tree1a133c9f40109b8bd8ca39be3648e92e60e9ca4d /app-emulation/vmware-server-console
parentFix a couple of important typos in vmware.eclass. (diff)
downloadvmware-d10857c7c545b7c9b35f747e506fe7ddb4af7c74.tar.gz
vmware-d10857c7c545b7c9b35f747e506fe7ddb4af7c74.tar.bz2
vmware-d10857c7c545b7c9b35f747e506fe7ddb4af7c74.zip
Whole bunch of changes to fully convert vmware-server and vmware-server-console over
to the vmware.eclass. svn path=/trunk/; revision=58
Diffstat (limited to 'app-emulation/vmware-server-console')
-rw-r--r--app-emulation/vmware-server-console/Manifest32
-rw-r--r--app-emulation/vmware-server-console/files/90vmware-server-console (renamed from app-emulation/vmware-server-console/files/99vmware-server-console)0
-rw-r--r--app-emulation/vmware-server-console/files/digest-vmware-server-console-1.0.0.238693
-rw-r--r--app-emulation/vmware-server-console/files/vmware-server-console.xml (renamed from app-emulation/vmware-server-console/files/vmware.xml)0
-rw-r--r--app-emulation/vmware-server-console/vmware-server-console-1.0.0.23869.ebuild181
-rw-r--r--app-emulation/vmware-server-console/vmware-server-console-1.0.0.24927.ebuild119
6 files changed, 21 insertions, 314 deletions
diff --git a/app-emulation/vmware-server-console/Manifest b/app-emulation/vmware-server-console/Manifest
index 971e05e..3f95feb 100644
--- a/app-emulation/vmware-server-console/Manifest
+++ b/app-emulation/vmware-server-console/Manifest
@@ -1,24 +1,16 @@
-AUX 99vmware-server-console 76 RMD160 22fed127d20bfb758163443dcbd2879bf1d49be6 SHA1 105e3194c134b752a8d5cef1a23ae621cd835d80 SHA256 ff3abe9d58fd673d8f3d2f7e967aa6db426e3e15b4d868dc1483682357a928b8
-MD5 e422834560595f9a56b6a2036c583b97 files/99vmware-server-console 76
-RMD160 22fed127d20bfb758163443dcbd2879bf1d49be6 files/99vmware-server-console 76
-SHA256 ff3abe9d58fd673d8f3d2f7e967aa6db426e3e15b4d868dc1483682357a928b8 files/99vmware-server-console 76
-AUX vmware.xml 1592 RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c SHA1 02db2ee7ca0abb8b8793c9f56d858bb08c1c715f SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d
-MD5 aa1b576735134579f04b29763901dc4f files/vmware.xml 1592
-RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c files/vmware.xml 1592
-SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d files/vmware.xml 1592
+AUX 90vmware-server-console 76 RMD160 22fed127d20bfb758163443dcbd2879bf1d49be6 SHA1 105e3194c134b752a8d5cef1a23ae621cd835d80 SHA256 ff3abe9d58fd673d8f3d2f7e967aa6db426e3e15b4d868dc1483682357a928b8
+MD5 e422834560595f9a56b6a2036c583b97 files/90vmware-server-console 76
+RMD160 22fed127d20bfb758163443dcbd2879bf1d49be6 files/90vmware-server-console 76
+SHA256 ff3abe9d58fd673d8f3d2f7e967aa6db426e3e15b4d868dc1483682357a928b8 files/90vmware-server-console 76
+AUX vmware-server-console.xml 1592 RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c SHA1 02db2ee7ca0abb8b8793c9f56d858bb08c1c715f SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d
+MD5 aa1b576735134579f04b29763901dc4f files/vmware-server-console.xml 1592
+RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c files/vmware-server-console.xml 1592
+SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d files/vmware-server-console.xml 1592
DIST VMware-server-linux-client-1.0.0-24927.zip 23347926 RMD160 7c77d6b0981af78f3c32d127da0b5db9db1961c8 SHA1 64475333923eba59f6462cc6b86ce1e10e87d65f SHA256 c92d8b25b08fe654bf2ea73b0010c4a4ffce651e1d3f08c040d36b8f1df2b458
-DIST VMware-server-linux-client-e.x.p-23869.zip 24680832 RMD160 0bd8cf6acd4924519d44506387eb869ad5b9fd7d SHA256 0d585a3eec68e8ee2d06dc64c9e7613fa12ce5095a5fbaf8f101fd008041687d
-EBUILD vmware-server-console-1.0.0.23869.ebuild 4953 RMD160 c48fc103da5eb9d15157fcda8e4c3513379c7e84 SHA1 7680aaa9348312fe8984bc2413a17cf52c6ef133 SHA256 306ec13dc8fbcb12b7058bbcf692e34854e2b16fe9d650d71c9713299325f001
-MD5 555368ea61fcc6da9d6a9f073a037931 vmware-server-console-1.0.0.23869.ebuild 4953
-RMD160 c48fc103da5eb9d15157fcda8e4c3513379c7e84 vmware-server-console-1.0.0.23869.ebuild 4953
-SHA256 306ec13dc8fbcb12b7058bbcf692e34854e2b16fe9d650d71c9713299325f001 vmware-server-console-1.0.0.23869.ebuild 4953
-EBUILD vmware-server-console-1.0.0.24927.ebuild 4947 RMD160 a5d8f0ee2f6f05fb64f032c7fc4ba4ed72ea455c SHA1 6f475a42c8e14499dbd26967a26e9108b6aaaeb3 SHA256 abc66e5fcd1a8745f9a54912b39715e7343622e1e4fca95837dec10cf68b1979
-MD5 c1bdcf7fdd0f5de7aba130a7a38f73d6 vmware-server-console-1.0.0.24927.ebuild 4947
-RMD160 a5d8f0ee2f6f05fb64f032c7fc4ba4ed72ea455c vmware-server-console-1.0.0.24927.ebuild 4947
-SHA256 abc66e5fcd1a8745f9a54912b39715e7343622e1e4fca95837dec10cf68b1979 vmware-server-console-1.0.0.24927.ebuild 4947
-MD5 322676dcbda83026e3e508ff58d77881 files/digest-vmware-server-console-1.0.0.23869 313
-RMD160 67e422935bcdc78b5eb850bfe47a718a94fa060d files/digest-vmware-server-console-1.0.0.23869 313
-SHA256 08c5a8a2cca094752436696355dc6760a0587ba16c8d3ffa18fb87956f082005 files/digest-vmware-server-console-1.0.0.23869 313
+EBUILD vmware-server-console-1.0.0.24927.ebuild 2023 RMD160 d2523cf30b536d931e5800b901aeb6585983e7be SHA1 4dea4b06c4633c8c702054d03f4ea84246c22194 SHA256 d9f363823937c71e3c4fcbb2d4267bc22b808ad672b136bb860a66e510b5c390
+MD5 215a10b6a6555395f7de6e0dcf21a6a0 vmware-server-console-1.0.0.24927.ebuild 2023
+RMD160 d2523cf30b536d931e5800b901aeb6585983e7be vmware-server-console-1.0.0.24927.ebuild 2023
+SHA256 d9f363823937c71e3c4fcbb2d4267bc22b808ad672b136bb860a66e510b5c390 vmware-server-console-1.0.0.24927.ebuild 2023
MD5 169e209dcc507a9afb913a10068f1445 files/digest-vmware-server-console-1.0.0.24927 313
RMD160 6711e1d73d14582135da43e4a7457a239912e60d files/digest-vmware-server-console-1.0.0.24927 313
SHA256 2ddfe40b5e7929b1c09f4639cb3cb18d69fbaea0a29449fe255701abd3eb8bb1 files/digest-vmware-server-console-1.0.0.24927 313
diff --git a/app-emulation/vmware-server-console/files/99vmware-server-console b/app-emulation/vmware-server-console/files/90vmware-server-console
index 847dd8c..847dd8c 100644
--- a/app-emulation/vmware-server-console/files/99vmware-server-console
+++ b/app-emulation/vmware-server-console/files/90vmware-server-console
diff --git a/app-emulation/vmware-server-console/files/digest-vmware-server-console-1.0.0.23869 b/app-emulation/vmware-server-console/files/digest-vmware-server-console-1.0.0.23869
deleted file mode 100644
index 3ece405..0000000
--- a/app-emulation/vmware-server-console/files/digest-vmware-server-console-1.0.0.23869
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 0d96ddfa90ede84a7b3632b9681875fc VMware-server-linux-client-e.x.p-23869.zip 24680832
-RMD160 0bd8cf6acd4924519d44506387eb869ad5b9fd7d VMware-server-linux-client-e.x.p-23869.zip 24680832
-SHA256 0d585a3eec68e8ee2d06dc64c9e7613fa12ce5095a5fbaf8f101fd008041687d VMware-server-linux-client-e.x.p-23869.zip 24680832
diff --git a/app-emulation/vmware-server-console/files/vmware.xml b/app-emulation/vmware-server-console/files/vmware-server-console.xml
index 8d5e2ef..8d5e2ef 100644
--- a/app-emulation/vmware-server-console/files/vmware.xml
+++ b/app-emulation/vmware-server-console/files/vmware-server-console.xml
diff --git a/app-emulation/vmware-server-console/vmware-server-console-1.0.0.23869.ebuild b/app-emulation/vmware-server-console/vmware-server-console-1.0.0.23869.ebuild
deleted file mode 100644
index 9a3e8e6..0000000
--- a/app-emulation/vmware-server-console/vmware-server-console-1.0.0.23869.ebuild
+++ /dev/null
@@ -1,181 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id: vmware-server-console-1.0.0.23869.ebuild 33 2006-05-06 12:35:44Z ikelos $
-
-# Unlike many other binary packages the user doesn't need to agree to a licence
-# to download VMWare. The agreeing to a licence is part of the configure step
-# which the user must run manually.
-
-inherit eutils versionator
-
-MY_PN=${PN/vm/VM}
-MY_PV="e.x.p-$(get_version_component_range 4)"
-NP="${MY_PN}-${MY_PV}"
-FN="VMware-server-linux-client-${MY_PV}"
-S="${WORKDIR}/${PN}-distrib"
-
-DESCRIPTION="VMware Remote Console for Linux"
-HOMEPAGE="http://www.vmware.com/"
-SRC_URI="http://download3.vmware.com/software/vmserver/${FN}.zip"
-
-LICENSE="vmware"
-IUSE=""
-SLOT="0"
-KEYWORDS="-* ~amd64 ~x86"
-RESTRICT="nostrip"
-
-DEPEND=">=sys-libs/glibc-2.3.5
- virtual/os-headers
- >=dev-lang/perl-5
- >=sys-apps/portage-2.0.54
- app-arch/unzip
- "
-# vmware-server-console should not use virtual/libc as this is a
-# precompiled binary package thats linked to glibc.
-RDEPEND=">=sys-libs/glibc-2.3.5
- amd64? ( app-emulation/emul-linux-x86-gtklibs )
- !amd64 ( || ( ( x11-libs/libSM
- x11-libs/libICE
- x11-libs/libX11
- x11-libs/libXau
- x11-libs/libXcursor
- x11-libs/libXdmcp
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXft
- x11-libs/libXi
- x11-libs/libXrandr
- x11-libs/libXrender
- x11-libs/libXt
- x11-libs/libXtst
- )
- virtual/x11
- )
- )
- >=dev-lang/perl-5
- "
-
-etcdir="/etc/${PN}"
-dir="/opt/vmware/server/console"
-Ddir=${D}/${dir}
-
-src_unpack() {
- cd ${WORKDIR}
- unpack ${FN}.zip
- unpack ./${NP}.tar.gz
- cd ${S}
-}
-
-src_install() {
- echo 'libdir = "/opt/vmware/server/console/lib"' >etc/config
-
- dodir ${dir}/bin
- cp -pPR ${S}/bin/* ${Ddir}/bin
-
- dodir ${dir}/lib
- cp -dr ${S}/lib/* ${Ddir}/lib
-
- dodoc doc/* || die "dodoc"
- # Fix for bug #91191
- dodir ${dir}/doc
- insinto ${dir}/doc
- doins doc/EULA || die "copying EULA"
-
- doman ${S}/man/man1/${PN}.1.gz || die "doman"
-
- # vmware enviroment
- doenvd ${FILESDIR}/99${PN} || die "doenvd"
-
- dodir ${etcdir}
- cp -pPR etc/* ${D}${etcdir}
-
- insinto ${dir}/lib/icon
- newins ${S}/doc/icon48x48.png ${PN}.png || die
- newicon ${S}/doc/icon48x48.png ${PN}.png || die
- insinto /usr/share/mime/packages
- doins ${FILESDIR}/vmware.xml
-
- make_desktop_entry ${PN} "VMWare Remote Console" ${PN}.png
-
- dodir /usr/bin
- dosym ${dir}/bin/${PN} /usr/bin/${PN}
-
- # Questions:
- einfo "Adding answers to ${etcdir}/locations"
- locations="${D}${etcdir}/locations"
- echo "answer BINDIR ${dir}/bin" >> ${locations}
- echo "answer LIBDIR ${dir}/lib" >> ${locations}
- echo "answer MANDIR ${dir}/man" >> ${locations}
- echo "answer DOCDIR ${dir}/doc" >> ${locations}
-}
-
-pkg_preinst() {
- # This must be done after the install to get the mtimes on each file
- # right. This perl snippet gets the /etc/vmware/locations file code:
- # perl -e "@a = stat('bin/vmware'); print \$a[9]"
- # The above perl line and the find line below output the same thing.
- # I would think the find line is faster to execute.
- # find /opt/vmware/workstation/bin/vmware -printf %T@
-
- #Note: it's a bit weird to use ${D} in a preinst script but it should work
- #(drobbins, 1 Feb 2002)
-
- einfo "Generating ${etcdir}/locations file."
- d=`echo ${D} | wc -c`
- for x in `find ${Ddir} ${D}${etcdir}` ; do
- x="`echo ${x} | cut -c ${d}-`"
- if [ -d ${D}/${x} ] ; then
- echo "directory ${x}" >> ${D}${etcdir}/locations
- else
- echo -n "file ${x}" >> ${D}${etcdir}/locations
- if [ "${x}" == "${etcdir}/locations" ] ; then
- echo "" >> ${D}${etcdir}/locations
- elif [ "${x}" == "${etcdir}/not_configured" ] ; then
- echo "" >> ${D}${etcdir}/locations
- else
- echo -n " " >> ${D}${etcdir}/locations
- #perl -e "@a = stat('${D}${x}'); print \$a[9]" >> ${D}${etcdir}/locations
- find ${D}${x} -printf %T@ >> ${D}${etcdir}/locations
- echo "" >> ${D}${etcdir}/locations
- fi
- fi
- done
-}
-
-pkg_config() {
- einfo "Running ${ROOT}${dir}/bin/vmware-config-server-console.pl"
- ${ROOT}${dir}/bin/vmware-config-server-console.pl
-}
-
-pkg_postinst() {
- update-mime-database "${ROOT}/usr/share/mime"
-
- # This is to fix the problem where the not_configured file doesn't get
- # removed when the configuration is run. This doesn't remove the file
- # It just tells the vmware-config-console.pl script it can delete it.
- einfo "Updating ${etcdir}/locations"
- for x in "${ROOT}${etcdir}/._cfg????_locations" ; do
- if [ -f $x ] ; then
- cat $x >> "${ROOT}${etcdir}/locations"
- rm $x
- fi
- done
-
- einfo
- einfo "You need to run"
- einfo
- einfo " ${dir}/bin/vmware-config-server-console.pl"
- einfo
- einfo "to complete the install."
- einfo
- einfo "For VMware Add-Ons just visit"
- einfo "http://www.vmware.com/download/downloadaddons.html"
- einfo
-}
-
-pkg_postrm() {
- einfo
- einfo "To remove all traces of vmware you will need to remove the files"
- einfo "in ${etcdir}."
- einfo
-}
diff --git a/app-emulation/vmware-server-console/vmware-server-console-1.0.0.24927.ebuild b/app-emulation/vmware-server-console/vmware-server-console-1.0.0.24927.ebuild
index d443db3..a326d70 100644
--- a/app-emulation/vmware-server-console/vmware-server-console-1.0.0.24927.ebuild
+++ b/app-emulation/vmware-server-console/vmware-server-console-1.0.0.24927.ebuild
@@ -6,11 +6,10 @@
# to download VMWare. The agreeing to a licence is part of the configure step
# which the user must run manually.
-inherit eutils versionator
+inherit eutils versionator vmware
MY_PN=${PN/vm/VM}
MY_PV=$(replace_version_separator 3 '-')
-NP="${MY_PN}-${MY_PV}"
FN="VMware-server-linux-client-${MY_PV}"
S="${WORKDIR}/${PN}-distrib"
@@ -28,8 +27,8 @@ DEPEND=">=sys-libs/glibc-2.3.5
virtual/os-headers
>=dev-lang/perl-5
>=sys-apps/portage-2.0.54
- app-arch/unzip
- "
+ app-arch/unzip"
+
# vmware-server-console should not use virtual/libc as this is a
# precompiled binary package thats linked to glibc.
RDEPEND=">=sys-libs/glibc-2.3.5
@@ -56,126 +55,26 @@ RDEPEND=">=sys-libs/glibc-2.3.5
"
etcdir="/etc/${PN}"
-dir="/opt/vmware/server/console"
-Ddir=${D}/${dir}
+ANY_ANY=""
src_unpack() {
cd ${WORKDIR}
- unpack ${FN}.zip
- unpack ./${NP}.tar.gz
+ unpack ${A}
+ unpack ./${MY_PN}-${MY_PV}.tar.gz
cd ${S}
}
src_install() {
- echo 'libdir = "/opt/vmware/server/console/lib"' >etc/config
+ echo 'libdir = "'${VMWARE_INSTALL_DIR}'/lib"' > etc/config
+ not-vmware_src_install
- dodir ${dir}/bin
- cp -pPR ${S}/bin/* ${Ddir}/bin
-
- dodir ${dir}/lib
- cp -dr ${S}/lib/* ${Ddir}/lib
-
- dodoc doc/* || die "dodoc"
- # Fix for bug #91191
- dodir ${dir}/doc
- insinto ${dir}/doc
- doins doc/EULA || die "copying EULA"
-
- doman ${S}/man/man1/${PN}.1.gz || die "doman"
-
- # vmware enviroment
- doenvd ${FILESDIR}/99${PN} || die "doenvd"
-
- dodir ${etcdir}
- cp -pPR etc/* ${D}${etcdir}
-
- insinto ${dir}/lib/icon
- newins ${S}/doc/icon48x48.png ${PN}.png || die
- newicon ${S}/doc/icon48x48.png ${PN}.png || die
- insinto /usr/share/mime/packages
- doins ${FILESDIR}/vmware.xml
-
make_desktop_entry ${PN} "VMWare Remote Console" ${PN}.png
dodir /usr/bin
- dosym ${dir}/bin/${PN} /usr/bin/${PN}
-
- # Questions:
- einfo "Adding answers to ${etcdir}/locations"
- locations="${D}${etcdir}/locations"
- echo "answer BINDIR ${dir}/bin" >> ${locations}
- echo "answer LIBDIR ${dir}/lib" >> ${locations}
- echo "answer MANDIR ${dir}/man" >> ${locations}
- echo "answer DOCDIR ${dir}/doc" >> ${locations}
-}
-
-pkg_preinst() {
- # This must be done after the install to get the mtimes on each file
- # right. This perl snippet gets the /etc/vmware/locations file code:
- # perl -e "@a = stat('bin/vmware'); print \$a[9]"
- # The above perl line and the find line below output the same thing.
- # I would think the find line is faster to execute.
- # find /opt/vmware/workstation/bin/vmware -printf %T@
-
- #Note: it's a bit weird to use ${D} in a preinst script but it should work
- #(drobbins, 1 Feb 2002)
-
- einfo "Generating ${etcdir}/locations file."
- d=`echo ${D} | wc -c`
- for x in `find ${Ddir} ${D}${etcdir}` ; do
- x="`echo ${x} | cut -c ${d}-`"
- if [ -d ${D}/${x} ] ; then
- echo "directory ${x}" >> ${D}${etcdir}/locations
- else
- echo -n "file ${x}" >> ${D}${etcdir}/locations
- if [ "${x}" == "${etcdir}/locations" ] ; then
- echo "" >> ${D}${etcdir}/locations
- elif [ "${x}" == "${etcdir}/not_configured" ] ; then
- echo "" >> ${D}${etcdir}/locations
- else
- echo -n " " >> ${D}${etcdir}/locations
- #perl -e "@a = stat('${D}${x}'); print \$a[9]" >> ${D}${etcdir}/locations
- find ${D}${x} -printf %T@ >> ${D}${etcdir}/locations
- echo "" >> ${D}${etcdir}/locations
- fi
- fi
- done
+ dosym ${VMWARE_INSTALL_DIR}/bin/${PN} /usr/bin/${PN}
}
pkg_config() {
einfo "Running ${ROOT}${dir}/bin/vmware-config-server-console.pl"
${ROOT}${dir}/bin/vmware-config-server-console.pl
}
-
-pkg_postinst() {
- update-mime-database "${ROOT}/usr/share/mime"
-
- # This is to fix the problem where the not_configured file doesn't get
- # removed when the configuration is run. This doesn't remove the file
- # It just tells the vmware-config-console.pl script it can delete it.
- einfo "Updating ${etcdir}/locations"
- for x in "${ROOT}${etcdir}/._cfg????_locations" ; do
- if [ -f $x ] ; then
- cat $x >> "${ROOT}${etcdir}/locations"
- rm $x
- fi
- done
-
- einfo
- einfo "You need to run"
- einfo
- einfo " ${dir}/bin/vmware-config-server-console.pl"
- einfo
- einfo "to complete the install."
- einfo
- einfo "For VMware Add-Ons just visit"
- einfo "http://www.vmware.com/download/downloadaddons.html"
- einfo
-}
-
-pkg_postrm() {
- einfo
- einfo "To remove all traces of vmware you will need to remove the files"
- einfo "in ${etcdir}."
- einfo
-}