logo

overlay

My (experimental) gentoo overlay
commit: 14c78a94dfd249434662f1b39badea74bc2fff43
parent: 1fc4c308fc4effeabcd6a772765cdda2179c4a0c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 26 May 2019 13:29:40 +0200

app-crypt/acme-sh: New package

Diffstat:

Aapp-crypt/acme-sh/Manifest1+
Aapp-crypt/acme-sh/acme-sh-2.8.1.ebuild48++++++++++++++++++++++++++++++++++++++++++++++++
Aapp-crypt/acme-sh/acme-sh-9999.ebuild48++++++++++++++++++++++++++++++++++++++++++++++++
Aapp-crypt/acme-sh/metadata.xml14++++++++++++++
4 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/app-crypt/acme-sh/Manifest b/app-crypt/acme-sh/Manifest @@ -0,0 +1 @@ +DIST acme-sh-2.8.1.tar.gz 130201 BLAKE2B 4a3fd3153ca25189083330654312815424d5572c3f560c5b6753d4bc669e38ac8badf1f6e6b016fb20b04b5e0caf262e8d3390f13403c063306f817bb4fa69a0 SHA512 2b88d604559fea66edf4cca4be5aba0666c2ecc7275bdddf28c6fa54f4c779b3cd929aa2f9f91a21a5f3ce4bfdd15342ee10bbaae6915230711f39c8493c7d34 diff --git a/app-crypt/acme-sh/acme-sh-2.8.1.ebuild b/app-crypt/acme-sh/acme-sh-2.8.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [ "${PV}" == "9999" ] +then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Neilpang/acme.sh" +else + SRC_URI="https://github.com/Neilpang/acme.sh/archive/${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/acme.sh-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="pure Unix shell script implementing ACME client protocol" +HOMEPAGE="https://acme.sh/" +LICENSE="GPL-3" +SLOT="0" +IUSE="standalone" +RDEPEND=" + net-misc/curl + || ( dev-libs/libressl dev-libs/openssl:0 ) + standalone? ( net-misc/socat ) + virtual/cron +" + +src_install() { + einstalldocs + newdoc dnsapi/README.md README-dnsapi.md + newdoc deploy/README.md README-deploy.md + + exeinto /usr/share/acme.sh + doexe acme.sh + + for i in dnsapi deploy + do + insinto "/usr/share/acme.sh/$i" + doins -r "$i/"*.sh + done + + dosym ../share/acme.sh/acme.sh usr/bin/acme.sh + + einfo "Recommended way to use this ebuild:" + einfo "- Create a acme user in a new 'certs' group" + einfo "- Create a shared directory owned by acme:certs" + einfo "- Put nginx and other daemons using the certificates into the 'certs' groups and configure them to use the shared directory" +} diff --git a/app-crypt/acme-sh/acme-sh-9999.ebuild b/app-crypt/acme-sh/acme-sh-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [ "${PV}" == "9999" ] +then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Neilpang/acme.sh" +else + SRC_URI="https://github.com/Neilpang/acme.sh/archive/${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/acme.sh-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="pure Unix shell script implementing ACME client protocol" +HOMEPAGE="https://acme.sh/" +LICENSE="GPL-3" +SLOT="0" +IUSE="standalone" +RDEPEND=" + net-misc/curl + || ( dev-libs/libressl dev-libs/openssl:0 ) + standalone? ( net-misc/socat ) + virtual/cron +" + +src_install() { + einstalldocs + newdoc dnsapi/README.md README-dnsapi.md + newdoc deploy/README.md README-deploy.md + + exeinto /usr/share/acme.sh + doexe acme.sh + + for i in dnsapi deploy notify + do + insinto "/usr/share/acme.sh/$i" + doins -r "$i/"*.sh + done + + dosym ../share/acme.sh/acme.sh usr/bin/acme.sh + + einfo "Recommended way to use this ebuild:" + einfo "- Create a acme user in a new 'certs' group" + einfo "- Create a shared directory owned by acme:certs" + einfo "- Put nginx and other daemons using the certificates into the 'certs' groups and configure them to use the shared directory" +} diff --git a/app-crypt/acme-sh/metadata.xml b/app-crypt/acme-sh/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <upstream> + <remote-id type="github">Neilpang/acme.sh</remote-id> + </upstream> + <use> + <flag name="standalone">runtime-depend on <pkg>net-misc/socat</pkg> used in Standalone mode</flag> + </use> +</pkgmetadata>