aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/certbot/APKBUILD107
-rw-r--r--community/certbot/letsencrypt-wrapper6
2 files changed, 87 insertions, 26 deletions
diff --git a/community/certbot/APKBUILD b/community/certbot/APKBUILD
index 07f0d77d29..bda81947b3 100644
--- a/community/certbot/APKBUILD
+++ b/community/certbot/APKBUILD
@@ -1,48 +1,115 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
-pkgver=0.29.1
+pkgver=0.30.1
pkgrel=0
pkgdesc="An ACME client that can update Apache/Nginx configurations"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache"
-depends="py-setuptools py-mock py-acme py-configargparse py-configobj
- py-cryptography py-parsedatetime py-dialog py-openssl
- py-rfc3339 py-tz py-requests py-six py-zope-component py-zope-interface
- py-zope-event py-cffi py-enum34 py-ipaddress py-idna py-argparse py-packaging
- py-certifi py-chardet py-future py-urllib3 py-josepy py-requests-toolbelt"
-# define acme deps here and add them to makedepends
-# so they get pulled in when bootstrapping.
-_depends_acme="py-setuptools py-cryptography py-ndg_httpsclient py-asn1 py-openssl
- py-tz py-rfc3339 py-requests py-six py-werkzeug"
+depends="
+ py3-acme=$pkgver-r$pkgrel
+ py3-argparse
+ py3-configargparse
+ py3-configobj
+ py3-cryptography
+ py3-josepy
+ py3-mock
+ py3-parsedatetime
+ py3-rfc3339
+ py3-tz
+ py3-setuptools
+ py3-zope-component
+ py3-zope-interface
+"
replaces="letsencrypt"
-makedepends="$depends_dev $_depends_acme"
-subpackages="py-acme:acme"
+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"
builddir="$srcdir"/$pkgname-$pkgver
check() {
cd "$builddir"
- python2 setup.py check
+ local i
+ for i in . $subpackages; do
+ cd "$builddir"/${i##*:}
+ python3 setup.py test
+ done
}
build() {
cd "$builddir"
- python2 setup.py build
+ local i
+ for i in . $subpackages; do
+ cd "$builddir"/${i##*:}
+ python3 setup.py build
+ done
}
package() {
cd "$builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
acme() {
- pkgdesc="ACME protocol implementation for Python"
- depends="$_depends_acme"
cd "$builddir"/acme
- python2 setup.py build
- python2 setup.py install --prefix=/usr --root="$subpkgdir"
+ pkgdesc="ACME protocol implementation for Python"
+ depends="
+ py3-setuptools
+ py3-cryptography
+ py3-josepy
+ py3-mock
+ py3-openssl
+ py3-rfc3339
+ py3-tz
+ py-requests
+ py3-requests-toolbelt
+ py3-six
+ "
+ python3 setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+nginx() {
+ cd "$builddir"/certbot-nginx
+ pkgdesc="nginx plugin for $pkgname"
+ depends="
+ certbot=$pkgver-r$pkgrel
+ py3-acme=$pkgver-r$pkgrel
+ py3-mock
+ py3-openssl
+ py3-setuptools
+ py3-zope-interface
+ py3-parsing
+ "
+ python3 setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+apache() {
+ cd "$builddir"/certbot-apache
+ pkgdesc="apache plugin for $pkgname"
+ depends="
+ certbot=$pkgver-r$pkgrel
+ py3-acme=$pkgver-r$pkgrel
+ py3-mock
+ py3-augeas
+ py3-setuptools
+ py3-zope-component
+ py3-zope-interface
+ "
+ 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="c9b976bec51c83412816726b709b79af0b464efa02f67c4ce7e754a2e6fa11e6811ca5db66616bd7b9e7920d6613665d3e58998c891bdb1452a5159a91971c56 certbot-0.29.1.tar.gz"
+sha512sums="31b790ed6911a9e632327d0833209c679535403d71a9977c8b785cc7585c67a4e18971b33f407598da4c7c67e073b0c2164203df34ec69bf3a0feb6bb326fbce certbot-0.30.1.tar.gz"
diff --git a/community/certbot/letsencrypt-wrapper b/community/certbot/letsencrypt-wrapper
deleted file mode 100644
index ef70a969b6..0000000000
--- a/community/certbot/letsencrypt-wrapper
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-echo >&2
-echo "Warning: letsencrypt has been renamed in certbot." >&2
-echo "From the next version, this wrapper will be removed." >&2
-echo >&2
-/usr/bin/certbot $@