diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-10-21 14:29:56 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-10-21 14:29:56 +0200 |
commit | c6a229976412e653d97d2aa5fd9f90a768d3e999 (patch) | |
tree | 1afbfa18a3d1041270c2ad244e4fbdf015687e66 /testing/letsencrypt | |
parent | ebd1dca3a706af1043edbe1a8bc04dbc7de76cb9 (diff) | |
download | aports-c6a229976412e653d97d2aa5fd9f90a768d3e999.tar.bz2 aports-c6a229976412e653d97d2aa5fd9f90a768d3e999.tar.xz |
testing/letsencrypt: new aport
Diffstat (limited to 'testing/letsencrypt')
-rw-r--r-- | testing/letsencrypt/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/letsencrypt/APKBUILD b/testing/letsencrypt/APKBUILD new file mode 100644 index 0000000000..4bf0d0186a --- /dev/null +++ b/testing/letsencrypt/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=letsencrypt +pkgver=0.0.0_git20151017 +_pkgver="${pkgver/_git/.dev}" +pkgrel=0 +pkgdesc="An ACME client that can update Apache/Nginx configurations" +url="https://github.com/letsencrypt/letsencrypt" +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" +# 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_dev="" +makedepends="$depends_dev $_depends_acme" +install="" +subpackages="py-acme:acme" +source="letsencrypt-$_pkgver.tar.gz::https://github.com/letsencrypt/letsencrypt/archive/v$_pkgver.tar.gz" + +_builddir="$srcdir"/letsencrypt-$_pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +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="1cac8a454e466136f70834c76977ef17 letsencrypt-0.0.0.dev20151017.tar.gz" +sha256sums="29ce464c5f6001857afa3bf3af64dfae6a5cb2176f98746b69a132b7a46ae90c letsencrypt-0.0.0.dev20151017.tar.gz" +sha512sums="9cfd7f5747e8096d270a7302d7d941bf28b923b99618d013001b33f8df62afc0f4583d3fbcf9459865a4bce5b932a690b9dee811131658a1f90ed8a00498abdd letsencrypt-0.0.0.dev20151017.tar.gz" |