From ecd5d0463346f4ea139c353fa1651b1239331a31 Mon Sep 17 00:00:00 2001 From: Santiago Rodriguez <santi@trisquel.info> Date: Sun, 11 Jan 2015 18:03:00 +0100 Subject: [PATCH] postgresql-common: add trisquel to supported distros --- .../supported-versions-trisquel.patch | 38 +++++++++++++++++++ helpers/make-postgresql-common | 29 ++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 helpers/DATA/postgresql-common/supported-versions-trisquel.patch create mode 100644 helpers/make-postgresql-common diff --git a/helpers/DATA/postgresql-common/supported-versions-trisquel.patch b/helpers/DATA/postgresql-common/supported-versions-trisquel.patch new file mode 100644 index 000000000..6eeac1c91 --- /dev/null +++ b/helpers/DATA/postgresql-common/supported-versions-trisquel.patch @@ -0,0 +1,38 @@ +--- debian/supported-versions 2013-10-21 23:13:52.000000000 +0200 ++++ debian/supported-versions.trisquel 2015-01-11 17:57:00.020523090 +0100 +@@ -67,6 +67,9 @@ + [dD]ebian) + debian "$RELEASE" + ;; ++ [tT]risquel) ++ trisquel "$RELEASE" ++ ;; + *) + echo "supported_versions: WARNING! Unknown distribution: $DISTRO" >&2 + echo "Please submit this as a bug report to your distribution." >&2 +@@ -120,6 +123,25 @@ + esac + } + ++trisquel() { ++ case "$1" in ++ 4.0*) # Taranis ++ /bin/echo -e "8.4" ++ ;; ++ 6.0*) # Toutatis ++ /bin/echo -e "9.1" ++ ;; ++ 7.0*) # Belenos ++ /bin/echo -e "9.3" ++ ;; ++ *) ++ echo "supported_versions: WARNING: Unknown Trisquel release: $1" >&2 ++ /bin/echo -e "$DEFAULT" ++ ;; ++ esac ++} ++ ++ + debian_backports() { + case "$1" in + 5.0*) # Lenny diff --git a/helpers/make-postgresql-common b/helpers/make-postgresql-common new file mode 100644 index 000000000..bd429782a --- /dev/null +++ b/helpers/make-postgresql-common @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright (C) 2015 Santiago RodrÃguez <santi@trisquel.info> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=1 + +. ./config + +patch -p0 < $DATA/supported-versions-trisquel.patch + +changelog "Imported into Trisquel" + + +compile -- GitLab