From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-933635-garchives=archives.gentoo.org@lists.gentoo.org>
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 F1A40139694
	for <garchives@archives.gentoo.org>; Wed, 22 Feb 2017 20:50:45 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BBB60E0C26;
	Wed, 22 Feb 2017 20:50:43 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 810D8E0C26
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Feb 2017 20:50:43 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 06CF6341130
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Feb 2017 20:50:42 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2BB2C510C
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Feb 2017 20:50:40 +0000 (UTC)
From: "Marc Schiffbauer" <mschiff@gentoo.org>
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" <mschiff@gentoo.org>
Message-ID: <1487796626.6ce4c1a22f884a46e8c8f5747f8b7f5bfcc3e141.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.4.0-r1.ebuild app-crypt/dehydrated/files/00_gentoo.sh app-crypt/dehydrated/files/cron
X-VCS-Directories: app-crypt/dehydrated/files/ app-crypt/dehydrated/
X-VCS-Committer: mschiff
X-VCS-Committer-Name: Marc Schiffbauer
X-VCS-Revision: 6ce4c1a22f884a46e8c8f5747f8b7f5bfcc3e141
X-VCS-Branch: master
Date: Wed, 22 Feb 2017 20:50:40 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 06dca56b-ba60-4f89-a71a-c63b2e7490eb
X-Archives-Hash: bc57fb6decef469dd29293284c01f935

commit:     6ce4c1a22f884a46e8c8f5747f8b7f5bfcc3e141
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 22 20:50:03 2017 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Wed Feb 22 20:50:26 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ce4c1a2

app-crypt/dehydrated: revbump for better system integration

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-crypt/dehydrated/dehydrated-0.4.0-r1.ebuild | 64 +++++++++++++++++++++++++
 app-crypt/dehydrated/files/00_gentoo.sh         |  2 +
 app-crypt/dehydrated/files/cron                 |  2 +
 3 files changed, 68 insertions(+)

diff --git a/app-crypt/dehydrated/dehydrated-0.4.0-r1.ebuild b/app-crypt/dehydrated/dehydrated-0.4.0-r1.ebuild
new file mode 100644
index 0000000000..22618ac0ec
--- /dev/null
+++ b/app-crypt/dehydrated/dehydrated-0.4.0-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+
+DEPEND="virtual/cron"
+RDEPEND="
+	${DEPEND}
+	app-shells/bash
+"
+
+src_configure() {
+	default
+	sed -i  's,^#CONFIG_D=.*",CONFIG_D="/etc/dehydrated/config.d",' docs/examples/config || die "could not set config"
+}
+
+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
+
+	insinto "/etc/cron.d"
+	newins "${FILESDIR}"/cron "${PN}"
+
+	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."
+	einfo "After finishing setup you should enable the cronjob in /etc/cron.d/dehydrated."
+}

diff --git a/app-crypt/dehydrated/files/00_gentoo.sh b/app-crypt/dehydrated/files/00_gentoo.sh
new file mode 100644
index 0000000000..99b6c0efee
--- /dev/null
+++ b/app-crypt/dehydrated/files/00_gentoo.sh
@@ -0,0 +1,2 @@
+# base config required for gentoo defaults
+BASEDIR="/var/lib/dehydrated"

diff --git a/app-crypt/dehydrated/files/cron b/app-crypt/dehydrated/files/cron
new file mode 100644
index 0000000000..df03b5fcee
--- /dev/null
+++ b/app-crypt/dehydrated/files/cron
@@ -0,0 +1,2 @@
+# dehydrated cron job
+#0 2 * * * dehydrated /usr/bin/dehydrated --cron