From 94aa630be153ade8786e6b949674f6dc69f515a2 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 15 Jul 2019 08:56:44 +0000 Subject: community/certbot: upgrade to 0.36.0 Added a patch to make it work with edge py3-setuptools. Basically it removes the check against the version (since the version on edge is 41.0.0 and the min requirement is 36.2). On cerbot 0.36.0 there is no longer certbot-postfix, that has been removed upstream. Changelog does not mention this. --- community/certbot/APKBUILD | 25 ++++++---------------- .../remove-check-for-setuptools-version.patch | 21 ++++++++++++++++++ 2 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 community/certbot/remove-check-for-setuptools-version.patch (limited to 'community/certbot') diff --git a/community/certbot/APKBUILD b/community/certbot/APKBUILD index 7f24819841..cc2bcd84e0 100644 --- a/community/certbot/APKBUILD +++ b/community/certbot/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=certbot -pkgver=0.35.1 +pkgver=0.36.0 pkgrel=0 pkgdesc="An ACME client that can update Apache/Nginx configurations" url="https://github.com/certbot/certbot" @@ -13,6 +13,7 @@ depends=" py3-configargparse py3-configobj py3-cryptography + py3-distutils-extra py3-josepy py3-mock py3-parsedatetime @@ -25,8 +26,9 @@ depends=" checkdepends="py3-augeas" makedepends="python3-dev" replaces="letsencrypt" -subpackages="py3-acme:acme $pkgname-nginx $pkgname-apache $pkgname-postfix" -source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz" +subpackages="py3-acme:acme $pkgname-nginx $pkgname-apache" +source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz + remove-check-for-setuptools-version.patch" build() { local i @@ -96,18 +98,5 @@ apache() { python3 setup.py install --prefix=/usr --root="$subpkgdir" } -postfix() { - cd "$builddir"/certbot-apache - pkgdesc="postfix plugin for $pkgname" - depends=" - certbot=$pkgver-r$pkgrel - py3-acme=$pkgver-r$pkgrel - py3-setuptools - py3-six - py3-zope-component - py3-zope-interface - " - python3 setup.py install --prefix=/usr --root="$subpkgdir" -} - -sha512sums="a4dc2ac2e451f2aaf99c545f8dc8e960783465519be6e29f52e5ee53dd49175f86df5613829fa801d8aa56ddfc9b79e27dba33eda89f3d0a0fae52ef881b0afa certbot-0.35.1.tar.gz" +sha512sums="f7fa8c6200a76b4fc4830865bf11fbba8bd73ea55e1236680181073952505c83b4650b43ccfc8e9b96caf47b85c43e47acf8db6d92134f7c279ebd954ab0ac92 certbot-0.36.0.tar.gz +cc9647c9d1d6909e3d3df7adcb5816f814c4665ec54a5d0680b4a97d1599451db0fd192ff2e3a91c174ec2d8681fe0f62d7a3d40cc07081d058a6a6169f734a3 remove-check-for-setuptools-version.patch" diff --git a/community/certbot/remove-check-for-setuptools-version.patch b/community/certbot/remove-check-for-setuptools-version.patch new file mode 100644 index 0000000000..7d8d0711eb --- /dev/null +++ b/community/certbot/remove-check-for-setuptools-version.patch @@ -0,0 +1,21 @@ +diff --git a/setup.py b/setup.py +index 84c27fc..97b0606 100644 +--- a/setup.py ++++ b/setup.py +@@ -58,11 +58,11 @@ install_requires = [ + # However environment markers are supported only with setuptools >= 36.2. + # So this dependency is not added for old Linux distributions with old setuptools, + # in order to allow these systems to build certbot from sources. +-if StrictVersion(setuptools_version) >= StrictVersion('36.2'): +- install_requires.append("pywin32 ; sys_platform == 'win32'") +-elif 'bdist_wheel' in sys.argv[1:]: +- raise RuntimeError('Error, you are trying to build certbot wheels using an old version ' +- 'of setuptools. Version 36.2+ of setuptools is required.') ++#if StrictVersion(setuptools_version) >= StrictVersion('36.2'): ++# install_requires.append("pywin32 ; sys_platform == 'win32'") ++#elif 'bdist_wheel' in sys.argv[1:]: ++# raise RuntimeError('Error, you are trying to build certbot wheels using an old version ' ++# 'of setuptools. Version 36.2+ of setuptools is required.') + + dev_extras = [ + 'astroid==1.6.5', -- cgit v1.2.3