diff --git a/component/firefox/firefox-45.cfg b/component/firefox/firefox-45.cfg new file mode 100644 index 0000000000000000000000000000000000000000..b5b8374f6bf80a51c51923c544e36921b01fd86a --- /dev/null +++ b/component/firefox/firefox-45.cfg @@ -0,0 +1,77 @@ +[buildout] +extends = + ../alsa/buildout.cfg + ../dash/buildout.cfg + ../dbus/buildout.cfg + ../fontconfig/buildout.cfg + ../gtk-2/buildout.cfg + ../libffi/buildout.cfg + ../libpng/buildout.cfg + ../p11-kit/buildout.cfg + ../xorg/buildout.cfg + +[firefox] +recipe = slapos.recipe.build +slapos_promise = + file:firefox + file:firefox-bin + +depends = + ${liberation-fonts:location} + ${ipaex-fonts:location} + +version = 45.0.1 + +# MD5SUMs are available at : +# https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${:version}/MD5SUMS +x86 = http://download-installer.cdn.mozilla.net/pub/firefox/releases/${:version}/linux-i686/en-US/firefox-${:version}.tar.bz2 3756c8d06d6f915a3dff1dae643ee74b +x86-64 = http://download-installer.cdn.mozilla.net/pub/firefox/releases/${:version}/linux-x86_64/en-US/firefox-${:version}.tar.bz2 0409177ef649ec90ffe7a421a19bc156 + +script = + if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ') + extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum'))) + workdir = guessworkdir(extract_dir) + self.copyTree(workdir, "%(location)s") + wrapper_location = os.path.join("%(location)s", "firefox-slapos") + wrapper = open(wrapper_location, 'w') + wrapper.write("""#!${dash:location}/bin/dash + cd %(location)s + export LD_LIBRARY_PATH="%(location)s" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${alsa:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${atk:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${bzip2:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${cairo:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${dbus:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${dbus-glib:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${fontconfig:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${freetype:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${gdk-pixbuf:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${gettext:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${glib:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${gtk-2:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${harfbuzz:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libICE:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libSM:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libX11:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libXau:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libXcomposite:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libXcursor:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libXext:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libXrender:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libXt:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libffi:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libpng:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libtool:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libuuid:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libxcb:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libxml2:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${p11-kit:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pango:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pixman:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${xdamage:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${xfixes:location}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${zlib:location}/lib" + export PATH=${fontconfig:location}/bin:$PATH + exec %(location)s/firefox $*""") + wrapper.close() + os.chmod(wrapper_location, 0755) diff --git a/software/seleniumrunner/software.cfg b/software/seleniumrunner/software.cfg index 97ffd76efa10c22a853da0f66caccff5d98d8143..821709760b63cddd61cd3075815589eba72d23ed 100644 --- a/software/seleniumrunner/software.cfg +++ b/software/seleniumrunner/software.cfg @@ -2,7 +2,7 @@ extends = ../../component/xorg/buildout.cfg ../../component/lxml-python/buildout.cfg - ../../component/firefox/buildout.cfg + ../../component/firefox/firefox-45.cfg ../../component/dash/buildout.cfg ../../stack/slapos.cfg