mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
118 lines
2.4 KiB
Plaintext
118 lines
2.4 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=certbot
|
|
pkgver=0.34.2
|
|
pkgrel=0
|
|
pkgdesc="An ACME client that can update Apache/Nginx configurations"
|
|
url="https://github.com/certbot/certbot"
|
|
arch="noarch"
|
|
license="Apache"
|
|
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
|
|
"
|
|
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"
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
local i
|
|
for i in . $subpackages; do
|
|
cd "$builddir"/${i##*:}
|
|
python3 setup.py build
|
|
done
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
local i
|
|
for i in . $subpackages; do
|
|
cd "$builddir"/${i##*:}
|
|
python3 setup.py check
|
|
done
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
acme() {
|
|
cd "$builddir"/acme
|
|
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="63923b1d433f4c714318e848335e696e2412c574cc16f4fb1631caeebdce5a7f599985cf450e96dceb87a958c8f09a003e1d2f24eac1bdc183c7a5c43bb362de certbot-0.34.2.tar.gz"
|