From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4D191584AD for ; Mon, 05 May 2025 23:30:32 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9436D343158 for ; Mon, 05 May 2025 23:30:32 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8290611036F; Mon, 05 May 2025 23:30:31 +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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 7C73A11036F for ; Mon, 05 May 2025 23:30:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31D35343157 for ; Mon, 05 May 2025 23:30:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 926F51E87 for ; Mon, 05 May 2025 23:30:29 +0000 (UTC) From: "Marc Schiffbauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marc Schiffbauer" Message-ID: <1746487819.b7fc6bbd3866c10b012c3dad52c510db5e44b374.mschiff@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.1-r2.ebuild app-crypt/dehydrated/files/dehydrated.service app-crypt/dehydrated/files/dehydrated.timer X-VCS-Directories: app-crypt/dehydrated/files/ app-crypt/dehydrated/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: b7fc6bbd3866c10b012c3dad52c510db5e44b374 X-VCS-Branch: master Date: Mon, 05 May 2025 23:30:29 +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: b0e9ef81-5f6b-46b2-9ba3-d744a43da27f X-Archives-Hash: dda1f10a1c71c1fde21e9c7f55f1bfca commit: b7fc6bbd3866c10b012c3dad52c510db5e44b374 Author: Marc Schiffbauer gentoo org> AuthorDate: Mon May 5 23:29:48 2025 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Mon May 5 23:30:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7fc6bbd app-crypt/dehydrated: revbump with added systemd timer Signed-off-by: Marc Schiffbauer gentoo.org> app-crypt/dehydrated/dehydrated-0.7.1-r2.ebuild | 65 +++++++++++++++++++++++++ app-crypt/dehydrated/files/dehydrated.service | 10 ++++ app-crypt/dehydrated/files/dehydrated.timer | 10 ++++ 3 files changed, 85 insertions(+) diff --git a/app-crypt/dehydrated/dehydrated-0.7.1-r2.ebuild b/app-crypt/dehydrated/dehydrated-0.7.1-r2.ebuild new file mode 100644 index 000000000000..e7cbd64c2725 --- /dev/null +++ b/app-crypt/dehydrated/dehydrated-0.7.1-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/dehydrated.asc + +inherit verify-sig systemd + +DESCRIPTION="A client for signing certificates with an ACME-server" +HOMEPAGE="https://dehydrated.io/" +SRC_URI=" + https://github.com/dehydrated-io/${PN}/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( https://github.com/dehydrated-io/${PN}/releases/download/v${PV}/${P}.tar.gz.asc ) +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +IUSE="+cron" + +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-dehydrated )" +RDEPEND="acct-group/dehydrated + acct-user/dehydrated + app-shells/bash + net-misc/curl + cron? ( virtual/cron )" + +PATCHES=( "${FILESDIR}"/${P}-openssl-stdout.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 + newins "${FILESDIR}"/00_gentoo.sh-r1 00_gentoo.sh + + keepdir /etc/${PN}/domains.d + + doman docs/man/dehydrated.1 + + systemd_dounit "${FILESDIR}/${PN}."* + + 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/dehydrated.service b/app-crypt/dehydrated/files/dehydrated.service new file mode 100644 index 000000000000..d621ad59b68b --- /dev/null +++ b/app-crypt/dehydrated/files/dehydrated.service @@ -0,0 +1,10 @@ +[Unit] +Description=dehydrated ACME client +Wants=network-online.target +After=network-online.target +Documentation=https://github.com/dehydrated-io/dehydrated + +[Service] +Type=oneshot +User=dehydrated +ExecStart=dehydrated --cron diff --git a/app-crypt/dehydrated/files/dehydrated.timer b/app-crypt/dehydrated/files/dehydrated.timer new file mode 100644 index 000000000000..4511c624fb8d --- /dev/null +++ b/app-crypt/dehydrated/files/dehydrated.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run dehydrated ACME client + +[Timer] +OnCalendar=daily +Persistent=true +RandomizedDelaySec=3h + +[Install] +WantedBy=timers.target