summaryrefslogtreecommitdiff
path: root/app-emulation
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/packettracer/Manifest2
-rw-r--r--app-emulation/packettracer/packettracer-533.ebuild102
-rw-r--r--app-emulation/playonlinux/playonlinux-4.2.5.ebuild133
3 files changed, 237 insertions, 0 deletions
diff --git a/app-emulation/packettracer/Manifest b/app-emulation/packettracer/Manifest
new file mode 100644
index 00000000..ff160046
--- /dev/null
+++ b/app-emulation/packettracer/Manifest
@@ -0,0 +1,2 @@
+DIST PacketTracer533_Generic_Fedora.tar.gz 105596078 RMD160 4f38b8ffcc2da286664a902da85d22c9952e4268 SHA1 9f1c348feb86ec3419e0d9c6cd5327ff26197ad4 SHA256 63bc7c285d1dd34dbd2fb00537456097a238ffcd530f1282f78b225273a03fdf
+EBUILD packettracer-533.ebuild 2663 RMD160 11322bd76e11043a89afb1a831428bc58bbe9c2a SHA1 a00b86b060b950772ba2e171932de9767e80c9fd SHA256 b2894b3747e493bacf0389973c5959e8a0a7141519b3ea98324e0937b777f63a
diff --git a/app-emulation/packettracer/packettracer-533.ebuild b/app-emulation/packettracer/packettracer-533.ebuild
new file mode 100644
index 00000000..99064db2
--- /dev/null
+++ b/app-emulation/packettracer/packettracer-533.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+MY_PN="PacketTracer"
+MY_PT="${MY_PN}${PV}"
+
+inherit eutils fdo-mime multilib
+
+DESCRIPTION="Cisco's Packet Tracer"
+HOMEPAGE="https://www.cisco.com/web/learning/netacad/course_catalog/PacketTracer.html"
+SRC_URI="http://pkg.rogentos.ro/~rogentos/${CATEGORY}/${MY_PT}_Generic_Fedora.tar.gz"
+
+RESTRICT="fetch mirror strip"
+LICENSE="Cisco_EULA"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc online-exam"
+
+DEPEND="app-arch/gzip"
+
+RDEPEND="doc? ( www-plugins/adobe-flash )
+ amd64? ( app-emulation/emul-linux-x86-compat
+ >=app-emulation/emul-linux-x86-qtlibs-20081109 )
+ !<app-emulation/packettracer-53"
+
+S="${WORKDIR}"
+
+pkg_setup () {
+ # This is a binary x86 package => ABI=x86
+ has_multilib_profile && ABI="x86"
+}
+
+pkg_nofetch () {
+ ewarn "To fetch sources you need cisco account which is available in case"
+ ewarn "you are cisco web-learning student, instructor or you sale cisco hardware, etc.. "
+ einfo ""
+ einfo ""
+ einfo "After that point your browser at http://cisco.netacad.net/"
+ einfo "Login, go to PacketTracer image and download:"
+ einfo "Packet Tracer v5.3.2 Application + Tutorial Generic Fedora links (tar.gz) file"
+ einfo ""
+}
+
+src_prepare(){
+
+ for file in install set_ptenv.sh tpl.linguist tpl.packettracer \
+ extensions/ptaplayer bin/linguist; do
+ rm -fr ${file} || die "unable to rm ${file}"
+ done
+ use !doc && rm -fr "${S}/"help/default/tutorials
+}
+
+src_install () {
+
+ local PKT_HOME="/opt/pt/"
+
+ dodir "${PKT_HOME}"
+ cp -R "${S}"/* "${D}${PKT_HOME}" || die "Install failed!"
+
+ doicon "${S}/${PN}-${PV}/art/"{app,pka,pkt,pkz}.{ico,png}
+
+ make_wrapper packettracer "./bin/PacketTracer5" "${PKT_HOME}${P}" "${PKT_HOME}${P}/lib"
+ make_desktop_entry "packettracer" "PacketTracer" "app" "Education;Emulator"
+
+ insinto /usr/share/mime/applications
+ doins "${D}${PKT_HOME}${P}/bin/"*.xml
+
+ rm -f "${D}${PKT_HOME}${MY_NAME}bin/"*.xml
+
+ dodir /etc/env.d
+ echo PT5HOME="${PKT_HOME}/${P}" > "${D}/etc/env.d/50${MY_PN}" || die "env.d files install failed"
+}
+
+pkg_postinst(){
+
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+
+ if use doc ; then
+ einfo " You have doc USE flag"
+ einfo " For use documentaion , please"
+ einfo " install you prefered brouser and flashplayer support"
+ einfo " such mozilla or konqerror"
+ fi
+
+ einfo ""
+ einfo " If you have multiuser enviroment"
+ einfo " you mist configure you firewall to use UPnP protocol."
+ einfo " Additional information see in packettracer user manual "
+
+}
+
+pkg_postrm() {
+
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+
+}
diff --git a/app-emulation/playonlinux/playonlinux-4.2.5.ebuild b/app-emulation/playonlinux/playonlinux-4.2.5.ebuild
new file mode 100644
index 00000000..abb687f7
--- /dev/null
+++ b/app-emulation/playonlinux/playonlinux-4.2.5.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/playonlinux/playonlinux-4.1.1.ebuild,v 1.1 2012/06/16 19:12:24 pacho Exp $
+
+EAPI="4"
+PYTHON_DEPEND="2"
+
+inherit eutils python games
+
+MY_PN="PlayOnLinux"
+
+DESCRIPTION="Set of scripts to easily install and use Windows games and software"
+HOMEPAGE="http://playonlinux.com/"
+SRC_URI="http://www.playonlinux.com/script_files/${MY_PN}/${PV}/${MY_PN}_${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="winbind"
+
+DEPEND=""
+RDEPEND="app-emulation/wine
+ app-arch/cabextract
+ app-arch/p7zip
+ app-arch/unzip
+ app-crypt/gnupg
+ net-analyzer/netcat6
+ dev-python/wxpython:2.8
+ || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
+ net-misc/wget
+ x11-apps/mesa-progs
+ x11-terms/xterm
+ media-gfx/icoutils
+ winbind? ( net-fs/samba[winbind] ) "
+
+S=${WORKDIR}/${PN}
+
+# TODO:
+# Having a real install script and let playonlinux use standard filesystem
+# architecture to prevent having everything installed into GAMES_DATADIR
+# It will let using LANGUAGES easily
+# How to deal with Microsoft Fonts installation asked every time ?
+# How to deal with wine version installed ? (have a better mgmt of system one)
+# Look at debian pkg: http://packages.debian.org/sid/playonlinux
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "s/\(Categories=\).*/\1Game;Emulator;/" etc/PlayOnLinux.desktop \
+ || die
+ sed -e 's/PYTHON="python"/PYTHON="python2"/' -i lib/variables playonlinux || die
+ python_convert_shebangs -r 2 .
+}
+
+src_install() {
+ # all things without exec permissions
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r resources lang lib etc plugins
+
+ # bash/ install
+ exeinto "${GAMES_DATADIR}/${PN}/bash"
+ doexe bash/*
+ #exeinto "${GAMES_DATADIR}/${PN}/bash/terminals"
+ #doexe bash/terminals/*
+ exeinto "${GAMES_DATADIR}/${PN}/bash/expert"
+ doexe bash/expert/*
+
+ # python/ install
+ exeinto "${GAMES_DATADIR}/${PN}/python"
+ doexe python/*
+ # sub dir without exec permissions
+ insinto "${GAMES_DATADIR}/${PN}/python"
+ doins -r python/lib
+
+ # main executable files
+ exeinto "${GAMES_DATADIR}/${PN}"
+ doexe ${PN}{,-pkg,-bash,-shell,-url_handler}
+
+ # making a script to run playonlinux from ${GAMES_BINDIR}
+ echo "#!/bin/bash" > ${PN}_launcher
+ echo "cd \"${GAMES_DATADIR}/${PN}\" && ./${PN} \$*" >> ${PN}_launcher
+ newgamesbin playonlinux_launcher playonlinux
+
+ # making a script to run playonlinux-cmd from ${GAMES_BINDIR}
+ echo "#!/bin/bash" > ${PN}_cmd_launcher
+ echo "cd \"${GAMES_DATADIR}/${PN}\" && ./${PN}-cmd \$*" >> ${PN}_cmd_launcher
+ newgamesbin playonlinux_cmd_launcher playonlinux-cmd
+
+ #dodoc CHANGELOG
+
+ doicon etc/${PN}.png
+ domenu etc/${MY_PN}.desktop
+ prepgamesdirs
+
+ if [ -f "/usr/bin/python2.6" ]; then
+ addwrite /usr/local/bin/
+ if [ ! -f "/usr/local/bin/python2.6" ]; then
+ dosym /usr/bin/python2.6 /usr/local/bin/ || die
+ else
+ echo "The file already existed"
+ rm /usr/local/bin/python2.6 || die
+ dosym /usr/bin/python2.6 /usr/local/bin/ || die
+ echo "Replaced it"
+ fi
+ if [ ! -f "/usr/local/bin/python2.6-config" ]; then
+ dosym /usr/bin/python-config-2.6 /usr/local/bin/python2.6-config || die
+ else
+ echo "The file already existed"
+ rm /usr/local/bin/python2.6-config || die
+ dosym /usr/bin/python-config-2.6 /usr/local/bin/python2.6-config || die
+ echo "Replaced it"
+ fi
+ else
+ ewarn "There is no python2.6, you should emerge python2.6"
+ fi
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ python_mod_optimize "${GAMES_DATADIR}/${PN}"
+}
+
+pkg_postrm() {
+ python_mod_cleanup "${GAMES_DATADIR}/${PN}"
+
+ elog "Installed softwares and games with playonlinux have not been removed."
+ elog "To remove them, you can re-install playonlinux and remove them using it"
+ elog "or do it manually by removing .PlayOnLinux/ in your home directory."
+}