aboutsummaryrefslogtreecommitdiffstats
path: root/community/certbot/APKBUILD
blob: d9a7ba96bd7e274ffa418c132e2507b8f79f7e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=0.7.0
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-psutil 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"
# 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"
provides="letsencrypt"
depends_dev=""
makedepends="$depends_dev $_depends_acme"
install=""
subpackages="py-acme:acme"
source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz
	letsencrypt-wrapper"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -m755 "$srcdir"/letsencrypt-wrapper "$pkgdir"/usr/bin/letsencrypt
}

acme() {
	pkgdesc="ACME protocol implementation for Python"
	depends="$_depends_acme"
	cd "$_builddir"/acme
	python setup.py build || return 1
	python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
}

md5sums="8a641a2693552b6dca86d3ad5df851fa  certbot-0.7.0.tar.gz
98c8ab7fede335bd00b0f0d85cd447e1  letsencrypt-wrapper"
sha256sums="76e08e7bf0e1d44ea5d174efb9ac71597da9bb98faf8d244ff2ab5ce8bb02c87  certbot-0.7.0.tar.gz
4f3a6b71ce80f96f65204fe9c1509a299b5d856a1cc60b99c0dd869269badeff  letsencrypt-wrapper"
sha512sums="316203825bed0cad4c665a1f284a4c4858d5bb663ff4edc492e0aa027cdbdbf53e68ee9aefd0d30c8532bdc09f72538902e5a9138823cb44f714a206641d1b90  certbot-0.7.0.tar.gz
db22121e32f9654b9b27883fc405b727ba85426d4122b901bf494d3ccf12bf1d2093b68979c005551762cc1ea80c5e5a442098504e3aa0e1b9286dca4819c24c  letsencrypt-wrapper"