From 9c83876f671d05d3fe4a0614e97ca8e0cae98d15 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 4 Aug 2020 16:42:43 +0000 Subject: [PATCH] location: Add download page Signed-off-by: Michael Tremer --- Makefile.am | 2 + src/static/img/debian-logo.svg | 86 ++++++++++++++++++++ src/templates/location/download.html | 114 +++++++++++++++++++++++++++ src/web/__init__.py | 1 + 4 files changed, 203 insertions(+) create mode 100644 src/static/img/debian-logo.svg create mode 100644 src/templates/location/download.html diff --git a/Makefile.am b/Makefile.am index 973b952d..854a3cdb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -218,6 +218,7 @@ templates_fireinfo_modulesdir = $(templates_fireinfodir)/modules templates_location_DATA = \ src/templates/location/base.html \ src/templates/location/blacklists.html \ + src/templates/location/download.html \ src/templates/location/how-to-use.html \ src/templates/location/index.html \ src/templates/location/lookup.html @@ -951,6 +952,7 @@ static_img_DATA = \ src/static/img/apple-touch-icon-72x72-precomposed.png \ src/static/img/apple-touch-icon-60x60-precomposed.png \ src/static/img/bash-logo.svg \ + src/static/img/debian-logo.svg \ src/static/img/default-avatar.jpg \ src/static/img/ipfire-tux.png \ src/static/img/iuse-not-found.png \ diff --git a/src/static/img/debian-logo.svg b/src/static/img/debian-logo.svg new file mode 100644 index 00000000..50dcb70c --- /dev/null +++ b/src/static/img/debian-logo.svg @@ -0,0 +1,86 @@ + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/templates/location/download.html b/src/templates/location/download.html new file mode 100644 index 00000000..bc2ce181 --- /dev/null +++ b/src/templates/location/download.html @@ -0,0 +1,114 @@ +{% extends "../base.html" %} + +{% block title %}{{ _("Download") }}{% end block %} + +{% block container %} +
+
+
+
+

{{ _("Download") }}

+ +

+ Learn how to download and install libloc +

+
+
+
+
+ +
+
+
+
+ +
+ +
+

{{ _("Source") }}

+ +

+ Build libloc, the software that powers IPFire Location + from source. +

+ + +
+
+
+
+ +
+
+

+ We provide pre-compiled packages for various distributions to get you + started with libloc quicker +

+ +
+
+ {{ _( +
+ +
+

{{ _("IPFire") }}

+ +

+ IPFire Location comes pre-installed with every IPFire system + and powers firewall rules based on source/destination country + as well as geographic reports. +

+
+
+ +
+
+ {{ _( +
+ +
+

{{ _("Debian") }}

+ +

+ The supported architectures are amd64, arm64, i386 and armhf. +

+ + {% for release in ("buster", "bullseye", "sid") %} +

{{ _("Debian %s") % release }}

+ +

+ Create a new file /etc/apt/sources.list.d/location.list +

+ +
deb     https://packages.ipfire.org/location {{ release }}/
+deb-src https://packages.ipfire.org/location {{ release }}/
+ {% end %} + +

+ All packages are cryptographically signed. + To install the key, run this command: +

+ +
curl https://packages.ipfire.org/79842AA7CDBA7AE3-pub.asc | apt-key add -
+ +

+ Finally download the package lists and install libloc +

+ +
apt-get update
+apt-get install location
+
+
+
+
+{% end block %} diff --git a/src/web/__init__.py b/src/web/__init__.py index 2851516c..45efa6f0 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -249,6 +249,7 @@ class Application(tornado.web.Application): # location.ipfire.org self.add_handlers(r"location\.ipfire\.org", [ (r"/", location.IndexHandler), + (r"/download", StaticHandler, { "template" : "../location/download.html" }), (r"/how\-to\-use", StaticHandler, { "template" : "../location/how-to-use.html" }), (r"/lookup/(.+)/blacklists", location.BlacklistsHandler), (r"/lookup/(.+)", location.LookupHandler), -- 2.47.3