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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 42C74138334 for ; Thu, 14 Jun 2018 20:25:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F1D9E087E; Thu, 14 Jun 2018 20:25:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0E1E0E087E for ; Thu, 14 Jun 2018 20:25:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E087E335C75 for ; Thu, 14 Jun 2018 20:25:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E06BE2C5 for ; Thu, 14 Jun 2018 20:25:33 +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: <1529007890.732381afb5b3fd6461dfb6833613cf2c73c511e9.mschiff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/dehydrated/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/dehydrated/dehydrated-0.6.2-r1.ebuild X-VCS-Directories: app-crypt/dehydrated/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: 732381afb5b3fd6461dfb6833613cf2c73c511e9 X-VCS-Branch: master Date: Thu, 14 Jun 2018 20:25:33 +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-Archives-Salt: b788f2c4-907f-4c3b-b25c-cac107353dc8 X-Archives-Hash: 62c796058938fab3d7055a60ec9b52f5 commit: 732381afb5b3fd6461dfb6833613cf2c73c511e9 Author: matoro users noreply github com> AuthorDate: Thu Jun 14 19:39:27 2018 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Thu Jun 14 20:24:50 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=732381af Create dehydrated-0.6.2-r1.ebuild Closes: https://github.com/gentoo/gentoo/pull/8844 app-crypt/dehydrated/dehydrated-0.6.2-r1.ebuild | 67 +++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/app-crypt/dehydrated/dehydrated-0.6.2-r1.ebuild b/app-crypt/dehydrated/dehydrated-0.6.2-r1.ebuild new file mode 100644 index 00000000000..328af1a4cfb --- /dev/null +++ b/app-crypt/dehydrated/dehydrated-0.6.2-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit user + +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 ~x86" +IUSE="+cron" + +DEPEND="cron? ( virtual/cron )" +RDEPEND=" + ${DEPEND} + app-shells/bash + net-misc/curl +" + +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} + dodoc docs/*.md + + insinto /etc/"${PN}"/config.d + doins "${FILESDIR}"/00_gentoo.sh + + if use cron ; then + insinto "/etc/cron.d" + newins "${FILESDIR}"/cron "${PN}" + fi + + dodir /etc/"${PN}"/config.d + keepdir /etc/"${PN}"/config.d + + default +} + +pkg_preinst() { + enewgroup "${PN}" + enewuser "${PN}" -1 -1 /var/lib/"${PN}" "${PN}" +} + +pkg_postinst() { + if [[ "${REPLACING_VERSIONS}" =~ (0\.3\.1|0\.4\.0) ]]; then + ewarn "" + ewarn "The new default BASEDIR is now '/var/lib/dehydrated'" + ewarn "Please consider migrating your data with a command like" + ewarn "" + ewarn " 'mv -v /etc/dehydrated/{accounts,archive,certs,lock} /var/lib/dehydrated'" + ewarn "" + ewarn "and make sure BASEDIR is set to '/var/lib/dehydrated'" + ewarn "" + fi + einfo "See /etc/dehydrated/config for configuration." + use cron && einfo "After finishing setup you should enable the cronjob in /etc/cron.d/dehydrated." +}