diff --git a/src/calibre/trac/plugins/download.py b/src/calibre/trac/plugins/download.py
index 443a96a41a..ca900837ce 100644
--- a/src/calibre/trac/plugins/download.py
+++ b/src/calibre/trac/plugins/download.py
@@ -130,7 +130,9 @@ def process_request(self, req):
elif os == 'osx':
return self.osx(req)
elif os == 'linux':
- return self.linux(req)
+ return self.linux(req)
+ elif 'binary' in os:
+ return self.linux_binary(req)
else:
return self.linux_distro(req, os)
@@ -191,6 +193,10 @@ def windows(self, req):
'''%dict(appname=__appname__)))
return 'binary.html', data, None
+ def linux_binary(self, req):
+ version = self.version_from_filename()
+ return 'pyinstaller.html', {'app':__appname__, 'version':version}, None
+
def osx(self, req):
version = self.version_from_filename()
file = 'calibre-%s.dmg'%(version,)
@@ -227,6 +233,7 @@ def osx(self, req):
def linux(self, req):
operating_systems = [
+ OS({'name' : 'binary', 'title': 'All distros'}),
OS({'name' : 'gentoo', 'title': 'Gentoo'}),
OS({'name' : 'ubuntu', 'title': 'Ubuntu'}),
OS({'name' : 'fedora', 'title': 'Fedora'}),
diff --git a/src/calibre/trac/plugins/templates/pyinstaller.html b/src/calibre/trac/plugins/templates/pyinstaller.html
new file mode 100644
index 0000000000..4b77e75511
--- /dev/null
+++ b/src/calibre/trac/plugins/templates/pyinstaller.html
@@ -0,0 +1,47 @@
+
+
+
+
+ Download $app for Linux
+
+
+
+
+
+
+
Download $app for Linux
+
This binary package is compatible with most recent linux distributions running on Intel 32 bit CPUs.
+
+
+ (Version: $version Changelog)
+
+
To install, copy paste the following command into a terminal and press Enter:
+
+
sudo python -c "import urllib2; exec urllib2.urlopen('http://calibre.kovidgoyal.net/download_linux_binary_installer').read(); main()"
+
+ While you wait for the download to complete, please consider donating to support the development
+ of ${app}.
+
+
Note
+
+
+ - This installer is very new and has only been tested ona couple of systems, so if you encounter
+ problems, please report them.
+ - You shoud have help2man and xdg-utils installed on your system.
+
+
+
+
+
\ No newline at end of file