aboutsummaryrefslogblamecommitdiffstats
path: root/community/certbot/APKBUILD
blob: e334dc192db59df48e9a928f764dabe452dfaa79 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     
                                                          
               
             
        
                                                                    
                                        

                





                                 
                           


                         
                     




                          
                         
                      


                                                                                          
 
         


                                       
                                      
            
 
 
         


                                       
                                      
            


           
                                                               


        
                           






                                                         
                             
                      
                            



































                                                                  
                                                                                                                                                                   
                                                                                                                                                                            
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=0.37.1
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-distutils-extra
	py3-josepy
	py3-mock
	py3-parsedatetime
	py3-pyrfc3339
	py3-tz
	py3-setuptools
	py3-zope-component
	py3-zope-interface
"
checkdepends="py3-augeas"
replaces="letsencrypt"
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
	for i in . $subpackages; do
		cd "$builddir"/${i##*:}
		python3 setup.py build
	done
}

check() {
	local i
	for i in . $subpackages; do
		cd "$builddir"/${i##*:}
		python3 setup.py check
	done
}

package() {
	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-pyrfc3339
		py3-tz
		py3-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"
}

sha512sums="c6a54a795823d5ba7178adc3c494703c120a7c748f402c2afa626eadeca6d73acd03e0ec96c553ef12f6839dfb268608b590efc6b0d574382f3c44a258059999  certbot-0.37.1.tar.gz
eef4247230e27327b90b07489ff8774539624135f2196010fd0c188709da7f092afcb58d8690a48280e508f619bc580295eeb8d12364234d1933a35d31c4c924  remove-check-for-setuptools-version.patch"