From 740e257ecbd3a1060fda762c7d244fea7f657447 Mon Sep 17 00:00:00 2001 From: Marc Schiffbauer Date: Fri, 3 Mar 2017 01:55:34 +0100 Subject: app-crypt/dehydrated: revbump: add setting in 00_gentoo.conf instead of modifying upstream config Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- app-crypt/dehydrated/dehydrated-0.4.0-r2.ebuild | 64 ------------------------- app-crypt/dehydrated/dehydrated-0.4.0-r3.ebuild | 63 ++++++++++++++++++++++++ app-crypt/dehydrated/files/00_gentoo.sh | 1 + 3 files changed, 64 insertions(+), 64 deletions(-) delete mode 100644 app-crypt/dehydrated/dehydrated-0.4.0-r2.ebuild create mode 100644 app-crypt/dehydrated/dehydrated-0.4.0-r3.ebuild (limited to 'app-crypt/dehydrated') diff --git a/app-crypt/dehydrated/dehydrated-0.4.0-r2.ebuild b/app-crypt/dehydrated/dehydrated-0.4.0-r2.ebuild deleted file mode 100644 index e7b70869cefe..000000000000 --- a/app-crypt/dehydrated/dehydrated-0.4.0-r2.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2017 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" - -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 (CONFIG_D)" - sed -i 's,^#DOMAINS_TXT=.*,DOMAINS_TXT="/etc/dehydrated/domains.txt",' docs/examples/config || die "could not set config (DOMAINS_TXT)" -} - -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/dehydrated-0.4.0-r3.ebuild b/app-crypt/dehydrated/dehydrated-0.4.0-r3.ebuild new file mode 100644 index 000000000000..04a980e238ad --- /dev/null +++ b/app-crypt/dehydrated/dehydrated-0.4.0-r3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 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" + +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 (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 + + 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 index 99b6c0efee52..cab73dbfa8e2 100644 --- a/app-crypt/dehydrated/files/00_gentoo.sh +++ b/app-crypt/dehydrated/files/00_gentoo.sh @@ -1,2 +1,3 @@ # base config required for gentoo defaults BASEDIR="/var/lib/dehydrated" +DOMAINS_TXT="/etc/dehydrated/domains.txt" -- cgit v1.2.3-65-gdbad