From 79688b3ec867bdbfa761259b23a8872fcfb63f19 Mon Sep 17 00:00:00 2001
From: Daniel Gustafsson <daniel@yesql.se>
Date: Wed, 23 Sep 2020 10:06:48 +0200
Subject: [PATCH] Add NetBSD packages on downloads section

Incorporate NetBSD packages (pkgsrc) on the Downloads section.

Image credit: https://wiki.openstreetmap.org/wiki/File:NetBSD_logo.svg
---
 media/img/netbsd.svg                 |  4 ++++
 templates/pages/download.html        |  3 ++-
 templates/pages/download/bsd.html    |  1 +
 templates/pages/download/netbsd.html | 21 +++++++++++++++++++++
 4 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 media/img/netbsd.svg
 create mode 100644 templates/pages/download/netbsd.html

diff --git a/media/img/netbsd.svg b/media/img/netbsd.svg
new file mode 100644
index 0000000..c8b4e3b
--- /dev/null
+++ b/media/img/netbsd.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" standalone="yes"?><svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="362" height="278" style="stroke:none">
+<path style="fill:#F26711" d="M324.04 12.88c-42.72-20.5-81.37-10.71-124.6 2.23-43.52 13.02-82.23 20.06-125.72 2.32 4.74 8.47 7.11 12.7 11.85 21.16 4.35 7.78 8.71 15.56 13.06 23.34 4.74 8.46 7.11 12.69 11.85 21.15 34.62 9.79 63.3-2.91 94.06-18.29 36.95-18.46 70.32-35.07 112.53-25.45-35.67-17.86-68.01-13.44-105.32-3.32 36.52-18.59 70.9-33.05 112.27-23.14zM71.06 164.96c0 7.14 0 14.05 0.22 17.67-0.77 1.31-3.84 2.53-6.47 2.53-0.11 0-3.73-5.6-8.89-11.97l-25.35-31.39c-6.25-7.9-9.99-12.4-11.96-14.05-0.55 1.1-0.55 2.96-0.55 7.02l0 21.3c0 8.89 0.44 17.12 1.65 20.09 0.99 2.3 3.51 2.96 6.37 3.51l3.07 0.44c0.88 0.88 0.66 3.19 0 3.84-5.93-0.21-10.32-0.33-14.71-0.33-4.06 0-8.12 0.12-12.29 0.33-0.66-0.65-0.88-2.96 0-3.84l1.87-0.33c2.96-0.66 5.05-1.32 6.04-3.62 1.1-2.97 1.54-11.2 1.54-20.09v-27.88c0-6.04 0-7.79-0.77-9.33-0.77-1.87-2.42-2.97-6.26-3.73l-3.07-0.44c-0.77-0.88-0.66-3.51 0.44-3.84 5.16 0.21 10.65 0.33 15.15 0.33 3.73 0 6.91-0.11 9.22-0.33 1.1 4.94 8.23 13.28 18.11 25.03l9.22 10.87c4.94 5.71 8.01 9.55 10.54 12.08 0.44-1.1 0.44-2.97 0.44-4.94v-15.15c0-8.89-0.44-17.12-1.65-20.09-0.99-2.3-3.4-2.96-6.37-3.51l-2.96-0.44c-0.88-0.88-0.66-3.18 0-3.84 5.93 0.21 10.21 0.33 14.71 0.33 4.06 0 8.01-0.11 12.29-0.33 0.66 0.66 0.88 2.96 0 3.84l-1.98 0.33c-2.85 0.66-4.94 1.32-5.93 3.62C71.51 121.6 71.07 129.83 71.07 138.73v26.24zM97.14 152.77c1.54 0 3.29-0.22 4.5-0.99 0.55-0.34 0.77-1.43 0.77-2.52 0-3.62-2.08-6.04-5.82-6.04-4.61 0-8.56 4.39-8.56 7.9 0 1.54 1.54 1.65 5.05 1.65h4.06zm-7.24 4.83c-2.52 0-2.75 0.22-2.75 1.97 0 8.24 5.27 16.25 15.48 16.25 3.07 0 7.25-0.66 10.21-5.71 1.21-0.22 2.85 0.66 2.85 2.52-4.5 9.33-12.62 12.52-19.21 12.52-14.82 0-22.83-10.43-22.83-22.4 0-13.83 9.99-24.59 23.71-24.59 11.41 0 17.56 7.36 17.56 15.81 0 2.09-0.55 3.62-3.95 3.62h-21.07zM136.56 145.64c-1.43 0-1.54 0.11-1.54 2.53v16.46c0 6.15 0 12.96 7.68 12.96 1.54 0 3.29-0.77 4.61-1.65 1.1 0.33 1.75 1.53 1.53 2.85-3.07 3.29-9 6.37-15.8 6.37-9.11 0-12.29-5.27-12.29-12.52v-24.47c0-2.31-0.11-2.53-2.09-2.53h-3.4c-1.21-0.45-1.54-2.64-0.66-3.41 3.4-1.2 6.48-3.18 9.11-4.94 1.98-1.43 4.72-3.73 8.12-8.57 0.77-0.44 2.74-0.32 3.29 0.55v8.23c0 2.08 0.11 2.19 2.09 2.19h9.77c0.55 0.44 0.88 1.1 0.88 2.09 0 1.21-0.33 3.18-1.43 3.84h-9.88z"/>
+<path style="fill:#777" d="M176.2 165.07c0 8.56 1.1 13.94 9.66 13.94 8.12 0 12.4-6.26 12.4-15.15 0-9.55-5.49-16.25-16.02-16.25-6.04 0-6.04 0.11-6.04 4.5v12.95zm0-25.36c0 2.86 0.11 3.07 5.82 3.07 9.44 0 12.95-6.03 12.95-12.62 0-9.55-5.93-14.27-13.5-14.27-5.16 0-5.27 0.88-5.27 5.71v18.11zm-15.15-10.65c0-11.08-0.22-12.29-4.83-12.84l-2.96-0.44c-0.99-0.55-1.21-3.84 0.44-3.95 8.34-0.55 16.35-0.99 27.33-0.99 10.53 0 17.56 1.21 22.39 4.07 4.72 2.85 7.57 7.47 7.57 13.94 0 9.22-7.79 12.85-11.19 13.73-1.1 0.22-2.2 0.66-2.2 1.21 0 0.33 0.55 0.66 1.54 0.88 8.67 1.87 16.02 7.57 16.13 18.22 0.11 10.1-5.93 16.03-12.84 18.45-6.92 2.41-15.15 2.74-21.84 2.74-3.95 0-8.12-0.44-11.31-0.44-5.38 0-10.76 0.11-17.01 0.33-0.88-0.66-0.88-3.51 0-3.84l3.18-0.66c4.94-0.99 5.6-1.76 5.6-11.64v-38.75zM239.21 185.37c-10.1 0-16.35-2.85-18.66-4.17-2.09-2.42-3.51-10.32-3.51-17.78 0.77-1.43 3.29-1.54 4.17-0.33 2.19 7.14 9.55 17.23 18.88 17.23 8.12 0 11.85-5.6 11.85-11.08 0-8.89-8.34-14.16-14.93-17.45-7.9-3.96-16.46-10.54-16.57-21.41 0-12.4 9.55-20.97 25.46-20.97 3.62 0 8.12 0.44 12.51 1.76 1.43 0.44 2.41 0.66 3.73 0.88 0.87 2.42 1.98 8.34 1.98 15.7-0.55 1.31-3.29 1.43-4.28 0.33-1.87-5.6-6.59-13.62-14.49-13.62-7.24 0-11.19 4.72-11.19 10.21 0 5.05 4.5 9.66 9.98 12.51l7.25 3.85c6.8 3.62 15.48 9.99 15.48 22.06 0 13.5-11.09 22.28-27.66 22.28zM290.97 163.75c0 6.04 0.22 9.99 2.19 12.3 1.98 2.2 5.16 3.18 9.11 3.18 18.99 0 25.46-16.9 25.46-31.83 0-19.76-10.43-31.51-30.29-31.51-2.96 0-5.05 0.55-5.71 1.43-0.66 0.88-0.77 2.96-0.77 6.36v40.07zm-15.69-34.8c0-10.43-0.22-12.51-5.27-13.06l-2.08-0.22c-1.1-0.55-1.1-3.74 0.22-3.85 9.22-0.55 17.78-0.99 29.41-0.99 9 0 18 0.89 25.57 3.63 14.38 5.16 22.28 18.11 22.28 31.83 0 14.71-7.02 26.57-19.64 32.83-7.46 3.74-16.47 5.16-27.77 5.16-5.16 0-10.65-0.66-14.6-0.66-5.27 0-10.87 0.11-17.12 0.33-0.88-0.66-0.88-3.29 0-3.84l3.4-0.55c4.94-0.88 5.6-1.65 5.6-11.75l0-38.86zM341.29 119.26c0-2.72 0.96-5.04 2.89-6.96 1.93-1.92 4.25-2.89 6.97-2.89 2.72 0 5.04 0.96 6.96 2.89 1.92 1.92 2.89 4.25 2.89 6.96 0 2.72-0.96 5.04-2.89 6.97-1.92 1.93-4.25 2.89-6.96 2.89-2.72 0-5.04-0.97-6.97-2.89-1.93-1.93-2.89-4.25-2.89-6.97zm18.1 0c0-2.28-0.8-4.22-2.41-5.83-1.61-1.61-3.55-2.41-5.83-2.41-2.28 0-4.22 0.8-5.83 2.41-1.61 1.61-2.42 3.55-2.42 5.83 0 2.28 0.81 4.22 2.42 5.83 1.61 1.61 3.56 2.42 5.83 2.42 2.28 0 4.22-0.81 5.83-2.42 1.61-1.61 2.41-3.56 2.41-5.83zm-5.17 5.93-3.09-5.23-1.76 0 0 5.23-1.72 0 0-12.12 3.11 0c2.92 0 4.38 1.12 4.38 3.35 0 1.56-0.79 2.66-2.36 3.3l3.32 5.47-1.89 0zm-4.85-10.65 0 4.05c0.15 0.02 0.52 0.03 1.13 0.03 1.13 0 1.88-0.14 2.27-0.43 0.39-0.29 0.58-0.84 0.58-1.65 0-1.34-0.87-2.01-2.62-2.01h-0.68l-0.68 0.02zM70.5 19.41c0 0-1.02-2.38-3.91-0.79-2.4 1.33-1.15 3.79-1.15 3.79l45.06 95.28 10.93 0zM198.4 266.22l-34.09-65.78-14.68 0 34.24 72.4c0 0 3.45 6.81 10.86 3.05 7.4-3.77 3.67-9.66 3.67-9.66z"/>
+</svg>
\ No newline at end of file
diff --git a/templates/pages/download.html b/templates/pages/download.html
index f1d9663..3df6bb1 100644
--- a/templates/pages/download.html
+++ b/templates/pages/download.html
@@ -67,9 +67,10 @@ yourself.
 
 <!-- sub-navigation for BSD distributions -->
 <div id="download-subnav-bsd" class="download-subnav">
-  <p>Select your BSD distribution:</p>
+  <p>Select your BSD operating system:</p>
   <a role="button" class="btn btn-outline-dark btn-download" href="/download/openbsd/">OpenBSD<br/><img class="logo" src="/media/img/openbsd.gif" alt="OpenBSD Logo" /></a>
   <a role="button" class="btn btn-outline-dark btn-download" href="/download/freebsd/">FreeBSD<br/><img class="logo" src="/media/img/freebsd.svg" alt="FreeBSD Logo" /></a>
+  <a role="button" class="btn btn-outline-dark btn-download" href="/download/netbsd/">NetBSD<br/><img class="logo" src="/media/img/netbsd.svg" alt="NetBSD Logo" /></a>
 </div>
 
 <h3>Source code</h3>
diff --git a/templates/pages/download/bsd.html b/templates/pages/download/bsd.html
index 8c12746..03163ad 100644
--- a/templates/pages/download/bsd.html
+++ b/templates/pages/download/bsd.html
@@ -10,5 +10,6 @@ Select your BSD distribution:
 
 <a role="button" class="btn btn-outline-dark btn-download" href="/download/openbsd/">OpenBSD<br/><img class="logo" src="/media/img/openbsd.gif" alt="OpenBSD Logo" /></a>
 <a role="button" class="btn btn-outline-dark btn-download" href="/download/freebsd/">FreeBSD<br/><img class="logo" src="/media/img/freebsd.svg" alt="FreeBSD Logo" /></a>
+<a role="button" class="btn btn-outline-dark btn-download" href="/download/netbsd/">NetBSD<br/><img class="logo" src="/media/img/netbsd.svg" alt="NetBSD Logo" /></a>
 
 {%endblock%}
diff --git a/templates/pages/download/netbsd.html b/templates/pages/download/netbsd.html
new file mode 100644
index 0000000..1bd91c5
--- /dev/null
+++ b/templates/pages/download/netbsd.html
@@ -0,0 +1,21 @@
+{%extends "base/page.html"%}
+{%block title%}NetBSD packages{%endblock%}
+{%block contents%}
+
+<h1>NetBSD packages <img class="logo" src="/media/img/netbsd.svg" alt="NetBSD Logo" /></h1>
+
+<h2>NetBSD Packages Collection</h2>
+
+<p>
+PostgreSQL packages are available for NetBSD from the
+<a href="http://www.netbsd.org/docs/software/packages.html" target="_blank">
+NetBSD Packages Collection (pkgsrc)</a>. Please see the pkgsrc documentation
+for information on how to install packages.
+</p>
+
+<p>
+A list of <a href="https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/databases/README.html" target="_blank">
+PostgreSQL packages</a> can be found on the NetBSD website.
+</p>
+
+{%endblock%}
-- 
2.21.1 (Apple Git-122.3)

