From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1FD8B158096 for ; Tue, 23 Aug 2022 05:24:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9974BE085E; Tue, 23 Aug 2022 05:24:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E922E0855 for ; Tue, 23 Aug 2022 05:24:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D30E9340E24 for ; Tue, 23 Aug 2022 05:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A6C85AF for ; Tue, 23 Aug 2022 05:24:19 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1661232240.957184a325e39b7a26b24c86b6f5356cc6c0e692.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/dehydrated/, app-crypt/dehydrated/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/dehydrated/dehydrated-0.7.0-r1.ebuild app-crypt/dehydrated/files/cron-r1 X-VCS-Directories: app-crypt/dehydrated/files/ app-crypt/dehydrated/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 957184a325e39b7a26b24c86b6f5356cc6c0e692 X-VCS-Branch: master Date: Tue, 23 Aug 2022 05:24:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8afab45e-7e78-42be-801b-093149131082 X-Archives-Hash: 9a626854790906c1974dcaf3a044ad40 commit: 957184a325e39b7a26b24c86b6f5356cc6c0e692 Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Fri Jul 15 15:49:51 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Aug 23 05:24:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=957184a3 app-crypt/dehydrated: don't run cron job exactly on the hour The Let's Encrypt API is often overwhelmed at 2:00 because a lot of people call it exactly on the hour. I chose a number over 23 to make minutes and hours instantly distinguishable. Closes: https://bugs.gentoo.org/864895 Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> Closes: https://github.com/gentoo/gentoo/pull/26420 Signed-off-by: Sam James gentoo.org> app-crypt/dehydrated/dehydrated-0.7.0-r1.ebuild | 50 +++++++++++++++++++++++++ app-crypt/dehydrated/files/cron-r1 | 2 + 2 files changed, 52 insertions(+) diff --git a/app-crypt/dehydrated/dehydrated-0.7.0-r1.ebuild b/app-crypt/dehydrated/dehydrated-0.7.0-r1.ebuild new file mode 100644 index 000000000000..c5872631d266 --- /dev/null +++ b/app-crypt/dehydrated/dehydrated-0.7.0-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="A client for signing certificates with an ACME-server" +HOMEPAGE="https://github.com/lukas2511/dehydrated" +SRC_URI="https://github.com/lukas2511/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~ppc64 ~riscv x86" +IUSE="+cron" + +RDEPEND="acct-group/dehydrated + acct-user/dehydrated + app-shells/bash + net-misc/curl + cron? ( virtual/cron )" + +PATCHES=( "${FILESDIR}"/${P}-fix-CN-extraction-for-older-openssl-versions.patch ) + +src_configure() { + default + sed -i 's,^#CONFIG_D=.*,CONFIG_D="/etc/dehydrated/config.d",' docs/examples/config || die "could not set config (CONFIG_D)" +} + +src_install() { + dobin ${PN} + insinto /etc/${PN} + doins docs/examples/{config,domains.txt,hook.sh} + fperms u+x /etc/${PN}/hook.sh + dodoc docs/*.md + + insinto /etc/${PN}/config.d + doins "${FILESDIR}"/00_gentoo.sh + + if use cron ; then + insinto /etc/cron.d + newins "${FILESDIR}"/cron-r1 ${PN} + fi +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + einfo "See /etc/dehydrated/config for configuration." + + use cron && einfo "After finishing setup you should enable the cronjob in /etc/cron.d/dehydrated." + fi +} diff --git a/app-crypt/dehydrated/files/cron-r1 b/app-crypt/dehydrated/files/cron-r1 new file mode 100644 index 000000000000..31d1bb805a3e --- /dev/null +++ b/app-crypt/dehydrated/files/cron-r1 @@ -0,0 +1,2 @@ +# dehydrated cron job +#27 2 * * * dehydrated /usr/bin/dehydrated --cron