diff options
author | Bruno Pagani | 2016-12-16 00:30:23 +0100 |
---|---|---|
committer | Bruno Pagani | 2016-12-16 00:32:57 +0100 |
commit | 6d98908cce6b50a6d38624daf89fc6b132e0b4f7 (patch) | |
tree | 27cc2d31dcb2fbb1067c37dcedeabd653c318289 | |
download | aur-6d98908cce6b50a6d38624daf89fc6b132e0b4f7.tar.gz |
Move certbot to certbot-user
-rw-r--r-- | .SRCINFO | 42 | ||||
-rw-r--r-- | PKGBUILD | 49 | ||||
-rw-r--r-- | certbot.install | 4 | ||||
-rw-r--r-- | certbot.sysusers | 1 | ||||
-rw-r--r-- | certbot.tmpfiles | 6 |
5 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..63da675ff5a4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,42 @@ +pkgbase = certbot-user + pkgdesc = Let’s Encrypt certbot running as certbot user rather than root, with either standalone or webroot mode. + pkgver = 0.9.3 + pkgrel = 1 + url = https://letsencrypt.org/ + install = certbot.install + arch = any + license = Apache + checkdepends = python2-nose + depends = ca-certificates + depends = python2-acme=0.9.3 + depends = python2-configargparse + depends = python2-configobj + depends = python2-cryptography + depends = python2-pyopenssl + depends = python2-mock + depends = python2-parsedatetime + depends = python2-psutil + depends = python2-pyrfc3339 + depends = python2-pythondialog + depends = python2-pytz + depends = python2-requests + depends = python2-setuptools + depends = python2-six + depends = python2-zope-component + depends = python2-zope-interface + provides = certbot + conflicts = certbot + source = https://pypi.io/packages/source/c/certbot/certbot-0.9.3.tar.gz + source = https://pypi.io/packages/source/c/certbot/certbot-0.9.3.tar.gz.asc + source = certbot.tmpfiles + source = certbot.sysusers + validpgpkeys = 148C30F6F7E429337A72D992B00B9CC82D7ADF2C + validpgpkeys = 1B41B758F9A78C7F444C20FA3E5B4152E3ADB1FD + validpgpkeys = A2CFB51FA275A7286234E7B24D17C995CD9775F2 + sha256sums = 68149cb8392b29f5d5246e7226d25f913f2b10482bf3bc7368e8c8821d25f3b0 + sha256sums = SKIP + sha256sums = ca72fe5f7e6ccbbe8afc084d9255f93e3b81ce2793a77103a9382fa9eaff6c97 + sha256sums = 151621a821f56178408851e016c7fda67dc4c726f210ad3279b29fd1f43282fa + +pkgname = certbot-user + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..211a418c252f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani@gmail.com> +# Contributor: Felix Yan <felixonmars@archlinux.org> +# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de> + +_pkgname=certbot +pkgname=${_pkgname}-user +pkgver=0.9.3 +pkgrel=1 +pkgdesc="Let’s Encrypt certbot running as certbot user rather than root, with either standalone or webroot mode." +arch=('any') +license=('Apache') +url="https://letsencrypt.org/" +depends=('ca-certificates' "python2-acme=${pkgver}" 'python2-configargparse' 'python2-configobj' + 'python2-cryptography' 'python2-pyopenssl' 'python2-mock' 'python2-parsedatetime' + 'python2-psutil' 'python2-pyrfc3339' 'python2-pythondialog' 'python2-pytz' + 'python2-requests' 'python2-setuptools' 'python2-six' 'python2-zope-component' + 'python2-zope-interface') +checkdepends=('python2-nose') +conflicts=('certbot') +provides=('certbot') +install="${_pkgname}.install" +source=("https://pypi.io/packages/source/c/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc} + "${_pkgname}.tmpfiles" + "${_pkgname}.sysusers") +validpgpkeys=('148C30F6F7E429337A72D992B00B9CC82D7ADF2C' + '1B41B758F9A78C7F444C20FA3E5B4152E3ADB1FD' + 'A2CFB51FA275A7286234E7B24D17C995CD9775F2') +sha256sums=('68149cb8392b29f5d5246e7226d25f913f2b10482bf3bc7368e8c8821d25f3b0' + 'SKIP' + 'ca72fe5f7e6ccbbe8afc084d9255f93e3b81ce2793a77103a9382fa9eaff6c97' + '151621a821f56178408851e016c7fda67dc4c726f210ad3279b29fd1f43282fa') + +build() { + cd ${_pkgname}-${pkgver} + python2 setup.py build +} + +check() { + cd ${_pkgname}-${pkgver} + python2 setup.py test +} + +package() { + cd ${_pkgname}-${pkgver} + python2 setup.py install --root="${pkgdir}" + + install -Dm644 "${srcdir}"/${_pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${_pkgname}.conf + install -Dm644 "${srcdir}"/${_pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${_pkgname}.conf +} diff --git a/certbot.install b/certbot.install new file mode 100644 index 000000000000..61c76e950658 --- /dev/null +++ b/certbot.install @@ -0,0 +1,4 @@ +post_install() { + systemd-sysusers certbot.conf + systemd-tmpfiles --create certbot.conf +} diff --git a/certbot.sysusers b/certbot.sysusers new file mode 100644 index 000000000000..9d148a8f81ff --- /dev/null +++ b/certbot.sysusers @@ -0,0 +1 @@ +u certbot - "Let's Encrypt Certbot" /var/lib/letsencrypt diff --git a/certbot.tmpfiles b/certbot.tmpfiles new file mode 100644 index 000000000000..597a865abd4c --- /dev/null +++ b/certbot.tmpfiles @@ -0,0 +1,6 @@ +d /var/lib/letsencrypt 0755 certbot certbot +d /var/log/letsencrypt 0700 certbot certbot +d /etc/letsencrypt 0755 certbot certbot +x /var/lib/letsencrypt/* +x /var/log/letsencrypt/* +x /etc/letsencrypt/* |