[buildout] extends = ../alsa/buildout.cfg ../xorg/buildout.cfg ../fontconfig/buildout.cfg ../dbus/buildout.cfg ../gtk-2/buildout.cfg ../libpng/buildout.cfg ../dash/buildout.cfg ../openssl/buildout.cfg [firefox] recipe = slapos.recipe.build slapos_promise = file:firefox file:firefox-bin depends = ${liberation-fonts:location} ${ipaex-fonts:location} x86 = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/18.0.2/linux-i686/en-US/firefox-18.0.2.tar.bz2 9eb4dcf2e9578203a16da3c70817ccb2 x86-64 = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/18.0.2/linux-x86_64/en-US/firefox-18.0.2.tar.bz2 29903172f6fd788f04dbeb27b9193fe6 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:${libXrender:location}/lib/:{dbus:location}/lib/:${dbus-glib:location}/lib/:${freetype:location}/lib/:${fontconfig:location}/lib/:${libX11:location}/lib/:${bzip2:location}/lib/:${libXext:location}/lib/:${libXt:location}/lib/:${zlib:location}/lib/:${libXcursor:location}/lib/:${gtk-2:location}/lib/:${cairo:location}/lib/:${pango:location}/lib/:${glib:location}/lib/:${atk:location}/lib/:${gdk-pixbuf:location}/lib/:${alsa:location}/lib/:${libpng:location}/lib/:${libSM:location}/lib/:${libICE:location}/lib:${libxml2:location}/lib:${openssl:location}/lib export PATH=${fontconfig:location}/bin:$PATH exec %(location)s/firefox $*""") wrapper.close() os.chmod(wrapper_location, 0755)