aboutsummaryrefslogtreecommitdiffstats
path: root/community/certbot/APKBUILD
blob: f1755f8b02743454bcba929b5314dc312d91da9e (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=0.30.2
pkgrel=1
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-deprecation
	py3-zope-deferredimport
	py3-zope-interface
	py3-zope-hookable
"
checkdepends="py3-augeas"
replaces="letsencrypt"
makedepends="python3-dev"
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"
	local i
	for i in . $subpackages; do
		cd "$builddir"/${i##*:}
		python3 setup.py test
	done
}

build() {
	cd "$builddir"
	local i
	for i in . $subpackages; do
		cd "$builddir"/${i##*:}
		python3 setup.py build
	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="94c26be7c04de74acf650b4d243675e92c6807eb6bb82fcffd867b22aa5b5527e6f637155fafcb121dfeff77e8a236301c080ad42284b3bf777d2cfc7f4d0de6  certbot-0.30.2.tar.gz"