Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hacked seamonkey-bin-2.0_alpha3 to install 64bit binary.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1137
Location: Sofia/Bulgaria

PostPosted: Sun Mar 21, 2010 1:11 am    Post subject: Hacked seamonkey-bin-2.0_alpha3 to install 64bit binary. Reply with quote

Well currently this is the only thing (web brouser) that works with smart-card authentication on my x86-64 system, so I'm sharing!

1.Get 64 bit binary build from here and put it in your distfiles directory: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/2.0.3/contrib/seamonkey-2.0.3.en-US.linux-x86_64.tar.bz2
2.Rename it to seamonkey-2.0a3.en-US.linux-x86_64.tar.bz2
3.copy the original seamonkey-bin-2.0_alpha3.ebuild to your local overlay
4.edit it like this:

Code:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.0_alpha3.ebuild,v 1.2 2010/01/02 10:03:18 ssuominen Exp $

inherit eutils mozilla-launcher multilib

MY_PV="${PV/_alpha/a}"
MY_P="${PN}-${MY_PV}"

DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/${MY_PV}/seamonkey-${MY_PV}.en-US.linux-x86_64.tar.bz2"
HOMEPAGE="http://www.seamonkey-project.org/"
RESTRICT="strip"
QA_EXECSTACK="opt/seamonkey/*"

KEYWORDS="-* ~amd64 ~x86"
SLOT="0"
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND="dev-libs/dbus-glib
   x11-libs/libXrender
   x11-libs/libXt
   x11-libs/libXmu"

S="${WORKDIR}/seamonkey"

pkg_setup() {
   # This is a binary x86 package => ABI=x86
   # Please keep this in future versions
   # Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
   has_multilib_profile && ABI="x86"
}

src_install() {
   declare MOZILLA_FIVE_HOME=/opt/seamonkey

   # Install seamonkey in /opt
   dodir ${MOZILLA_FIVE_HOME%/*}
   mv "${S}" "${D}${MOZILLA_FIVE_HOME}"

   # Create /usr/bin/seamonkey-bin
   dodir /usr/bin/
   cat <<EOF >"${D}"/usr/bin/seamonkey-bin
#!/bin/sh
unset LD_PRELOAD
exec /opt/seamonkey/seamonkey "\$@"
EOF
   fperms 0755 /usr/bin/seamonkey-bin

   # Install icon and .desktop for menu entry
   doicon "${FILESDIR}/icon/${PN}.png"
   domenu "${FILESDIR}/icon/${PN}.desktop"
}

pkg_preinst() {
   declare MOZILLA_FIVE_HOME=/opt/seamonkey

   # Remove entire installed instance to prevent all kinds of
   # problems... see bug 44772 for example
   rm -rf "${ROOT}${MOZILLA_FIVE_HOME}"
}

pkg_postinst() {
   use amd64 && einfo "NB: You just installed a 64-bit seamonkey"
   update_mozilla_launcher_symlinks
}

pkg_postrm() {
   update_mozilla_launcher_symlinks
}


5.unmask seamonkey-bin-2.0_alpha3
6.digest the ebuild
7.emerge seamonkey-bin

I know that this is one ugly hack but it worked for me and It's my only option for now ;)
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3060
Location: Korea

PostPosted: Sun Mar 21, 2010 1:59 am    Post subject: Reply with quote

You shouldn't be renaming the file, especially since the naming used in the ebuild is no longer used by upstream (since it's no longer an alpha release).

Change the ebuild be named seamonkey-bin-2.0.3.ebuild and edit it to be

Code:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.0_alpha3.ebuild,v 1.2 2010/01/02 10:03:18 ssuominen Exp $

inherit eutils mozilla-launcher multilib

DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/${PV}/seamonkey-${PV}.en-US.linux-x86_64.tar.bz2"
HOMEPAGE="http://www.seamonkey-project.org/"
RESTRICT="strip"
QA_EXECSTACK="opt/seamonkey/*"

KEYWORDS="-* ~amd64 ~x86"
SLOT="0"
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND="dev-libs/dbus-glib
   x11-libs/libXrender
   x11-libs/libXt
   x11-libs/libXmu"

S="${WORKDIR}/seamonkey"

pkg_setup() {
   # This is a binary x86 package => ABI=x86
   # Please keep this in future versions
   # Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
   has_multilib_profile && ABI="x86"
}

src_install() {
   declare MOZILLA_FIVE_HOME=/opt/seamonkey

   # Install seamonkey in /opt
   dodir ${MOZILLA_FIVE_HOME%/*}
   mv "${S}" "${D}${MOZILLA_FIVE_HOME}"

   # Create /usr/bin/seamonkey-bin
   dodir /usr/bin/
   cat <<EOF >"${D}"/usr/bin/seamonkey-bin
#!/bin/sh
unset LD_PRELOAD
exec /opt/seamonkey/seamonkey "\$@"
EOF
   fperms 0755 /usr/bin/seamonkey-bin

   # Install icon and .desktop for menu entry
   doicon "${FILESDIR}/icon/${PN}.png"
   domenu "${FILESDIR}/icon/${PN}.desktop"
}

pkg_preinst() {
   declare MOZILLA_FIVE_HOME=/opt/seamonkey

   # Remove entire installed instance to prevent all kinds of
   # problems... see bug 44772 for example
   rm -rf "${ROOT}${MOZILLA_FIVE_HOME}"
}

pkg_postinst() {
   use amd64 && einfo "NB: You just installed a 64-bit seamonkey"
   update_mozilla_launcher_symlinks
}

pkg_postrm() {
   update_mozilla_launcher_symlinks
}


Though YMMV. I'm not running 64-bit. This just looks like I think it should for the ebuild. And this way, when 2.0.3 gets added to the tree, you won't be left downloading the same file a second time and uselessly reinstalling.
_________________
My political stance/bias
slycordinator != slycoordinator
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1137
Location: Sofia/Bulgaria

PostPosted: Sun Mar 21, 2010 9:25 am    Post subject: Reply with quote

Thank you , that's really awesome :D
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Mar 21, 2010 1:37 pm    Post subject: Reply with quote

Kollin, do you have any objections or aversions against using the seamonkey-ebuild in the mozilla-overlay (2.0.3) ? :mrgreen:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1137
Location: Sofia/Bulgaria

PostPosted: Sun Mar 21, 2010 2:04 pm    Post subject: Reply with quote

kernelOfTruth wrote:
Kollin, do you have any objections or aversions against using the seamonkey-ebuild in the mozilla-overlay (2.0.3) ? :mrgreen:


I want native 64-bit binary of seamonkey (seamonkey-bin 64-bit)! Compilled ones does not work for me!
After 2 weeks of experimenting with all possible combinations of firefox, seamonkey, epiphany and xulrunner that does not work I finally made that ebuild that worked with my on-line banking and 64-bit gentoo :wink:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Mar 21, 2010 2:53 pm    Post subject: Reply with quote

Kollin wrote:
kernelOfTruth wrote:
Kollin, do you have any objections or aversions against using the seamonkey-ebuild in the mozilla-overlay (2.0.3) ? :mrgreen:


I want native 64-bit binary of seamonkey (seamonkey-bin 64-bit)! Compilled ones does not work for me!
After 2 weeks of experimenting with all possible combinations of firefox, seamonkey, epiphany and xulrunner that does not work I finally made that ebuild that worked with my on-line banking and 64-bit gentoo :wink:


I went through a similar experience like you:

for me the only working browser for only banking (damn you java-plugin :lol: !) was seamonkey but the non-binary version

I'll give your ebuild (binary version) a try as a fallback option

Thanks ! :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum