diff options
Diffstat (limited to 'app-crypt/acme-tiny')
-rw-r--r-- | app-crypt/acme-tiny/Manifest | 1 | ||||
-rw-r--r-- | app-crypt/acme-tiny/acme-tiny-5.0.1-r1.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/app-crypt/acme-tiny/Manifest b/app-crypt/acme-tiny/Manifest index 9cd5cc94cd57..8f9c426c9e42 100644 --- a/app-crypt/acme-tiny/Manifest +++ b/app-crypt/acme-tiny/Manifest @@ -1,3 +1,4 @@ DIST acme-tiny-5.0.1.tar.gz 21036 BLAKE2B a09c16ca19570b48d34c919e2a361e3be5d66ed8fc0ccff7af74e4018d294f2940a552906dee45bac27a16e7b039a3567dc35e201b058015c5123baa2cbb01c1 SHA512 6e0619917b31a5795c2c7d8aa811b46231b81fc6b57227f611f7f4b9f73eb3de669676482563c33d935a4a0812498677bcbe974663a561af61abb441a880947e +EBUILD acme-tiny-5.0.1-r1.ebuild 1214 BLAKE2B 0eb004f893ec7bd773874c7a499df985df43de088182b6eabc0e368bb4da0b85271c12fc59e823c777785de940b300cc9122c0b19d5069a25f5383ef43eaacb8 SHA512 f45f2254aa1fbd347c2afbfa37b39fec5eef9eb714e00b83b18cea27ef7beef70ea180d06c4157f15265ea4bfd44e1f33598b2de99285c4c2ca3a184c61f6aa2 EBUILD acme-tiny-5.0.1.ebuild 1177 BLAKE2B 9020d4cc7bb035b53d53fa7d2ae93ead19c8aadca0cbb77099076b509e562246c6fac1b725610d9c4efb6256da5cfe76e9e4993d6c16efd9107f3f6ebd22889d SHA512 5864696cd9724f225a544766a4c04ba4193a61ff8bdae38e4b5fa6269d5a767be923f625c5592bacd1369c321dcf90f888aadc58f82ee6ec4854ac18b1df185c MISC metadata.xml 308 BLAKE2B 5ec953d075608413e620d96e62dda71733f4d3f802ccc765785dfee72c5d7230ed75bebeddb4ca94859533f48bb3edf6cc995796427c796fcd676cbb2ff2a584 SHA512 e5e7ec53d4c40904b2df23401805ff9d76d80f8943f85c28707b969077340eab8aa0b5348d0ce3c4c6a2e01d6e9055e84ab2031fa92360c57e5e1fba1adb7dcc diff --git a/app-crypt/acme-tiny/acme-tiny-5.0.1-r1.ebuild b/app-crypt/acme-tiny/acme-tiny-5.0.1-r1.ebuild new file mode 100644 index 000000000000..41eb33d55d23 --- /dev/null +++ b/app-crypt/acme-tiny/acme-tiny-5.0.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python{3_9,3_10,3_11} ) + +DISTUTILS_USE_PEP517="setuptools" + +inherit distutils-r1 + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/diafygi/${PN}.git" +else + SRC_URI="https://github.com/diafygi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 x86" +fi + +DESCRIPTION="A tiny, auditable script for Let's Encrypt's ACME Protocol" +HOMEPAGE="https://github.com/diafygi/acme-tiny" + +LICENSE="MIT" +SLOT="0" +IUSE="" + +BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]" +RDEPEND="dev-libs/openssl:0" + +# Tests require a local ACME server to be set up. +RESTRICT="test" + +pkg_setup() { + if [[ ${PV} != 9999 ]]; then + export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" + fi +} + +src_prepare() { + sed -i 's|#!/usr/bin/sh|#!/bin/sh|g' README.md || die + + distutils-r1_src_prepare +} + +pkg_postinst() { + for v in ${REPLACING_VERSIONS}; do + if ver_test "$v" "-lt" "4.0.3" || ver_test "$v" "-ge" "9999"; then + einfo "The --account-email flag has been changed to --contact and" + einfo "has different syntax." + einfo "Please update your scripts accordingly" + fi + done +} |