From e34d101513fe37f8009a9f63d95615b367006089 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Fri, 25 Jan 2019 14:18:41 -0500
Subject: [PATCH] Backported certbot from PPA

---
 helpers/make-certbot               | 30 ++++++++++++++++++++++++++++++
 helpers/make-python-acme           | 28 ++++++++++++++++++++++++++++
 helpers/make-python-certbot-apache | 28 ++++++++++++++++++++++++++++
 helpers/make-python-certbot-nginx  | 28 ++++++++++++++++++++++++++++
 4 files changed, 114 insertions(+)
 create mode 100644 helpers/make-certbot
 create mode 100644 helpers/make-python-acme
 create mode 100644 helpers/make-python-certbot-apache
 create mode 100644 helpers/make-python-certbot-nginx

diff --git a/helpers/make-certbot b/helpers/make-certbot
new file mode 100644
index 00000000..8b9d99a1
--- /dev/null
+++ b/helpers/make-certbot
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+#    Copyright (C) 2019 Ruben Rodriguez <ruben@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
+EXTERNAL='deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main '
+REPOKEY=8C47BE8E75BCA694
+
+. ./config
+
+sed 's/python3-distutils |//; /python3-repoze.sphinx.autointerface/d' -i debian/control
+
+changelog "Backported from ppa"
+
+compile
diff --git a/helpers/make-python-acme b/helpers/make-python-acme
new file mode 100644
index 00000000..52f7ccb1
--- /dev/null
+++ b/helpers/make-python-acme
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+#    Copyright (C) 2019 Ruben Rodriguez <ruben@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
+EXTERNAL='deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main '
+REPOKEY=8C47BE8E75BCA694
+
+. ./config
+
+changelog "Backported from ppa"
+
+compile
diff --git a/helpers/make-python-certbot-apache b/helpers/make-python-certbot-apache
new file mode 100644
index 00000000..52f7ccb1
--- /dev/null
+++ b/helpers/make-python-certbot-apache
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+#    Copyright (C) 2019 Ruben Rodriguez <ruben@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
+EXTERNAL='deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main '
+REPOKEY=8C47BE8E75BCA694
+
+. ./config
+
+changelog "Backported from ppa"
+
+compile
diff --git a/helpers/make-python-certbot-nginx b/helpers/make-python-certbot-nginx
new file mode 100644
index 00000000..52f7ccb1
--- /dev/null
+++ b/helpers/make-python-certbot-nginx
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+#    Copyright (C) 2019 Ruben Rodriguez <ruben@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
+EXTERNAL='deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu xenial main '
+REPOKEY=8C47BE8E75BCA694
+
+. ./config
+
+changelog "Backported from ppa"
+
+compile
-- 
GitLab