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 8709413832E for ; Tue, 19 Jul 2016 22:03:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F7F921C067; Tue, 19 Jul 2016 22:03:48 +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 9CDE221C067 for ; Tue, 19 Jul 2016 22:03:47 +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 C5C6B340D17 for ; Tue, 19 Jul 2016 22:03:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D03807DA for ; Tue, 19 Jul 2016 22:03:42 +0000 (UTC) From: "Sven Wegener" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Wegener" Message-ID: <1468965769.c1f2de2753423fc569a0be6a35a7f3a2d43ea7e0.swegener@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/pdns-recursor/pdns-recursor-4.0.0-r1.ebuild net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild X-VCS-Directories: net-dns/pdns-recursor/ X-VCS-Committer: swegener X-VCS-Committer-Name: Sven Wegener X-VCS-Revision: c1f2de2753423fc569a0be6a35a7f3a2d43ea7e0 X-VCS-Branch: master Date: Tue, 19 Jul 2016 22:03:42 +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: 69b7c127-8a07-4bbd-8b22-fa075df6968a X-Archives-Hash: d3c8e11dcabaf400a13ec1b51eb52def commit: c1f2de2753423fc569a0be6a35a7f3a2d43ea7e0 Author: Sven Wegener gentoo org> AuthorDate: Tue Jul 19 21:35:23 2016 +0000 Commit: Sven Wegener gentoo org> CommitDate: Tue Jul 19 22:02:49 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1f2de27 net-dns/pdns-recursor: Revision bump Package-Manager: portage-2.2.28 Signed-off-by: Sven Wegener gentoo.org> ...recursor-4.0.0.ebuild => pdns-recursor-4.0.0-r1.ebuild} | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.0-r1.ebuild similarity index 78% rename from net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild rename to net-dns/pdns-recursor/pdns-recursor-4.0.0-r1.ebuild index 3927726..4093004 100644 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild +++ b/net-dns/pdns-recursor/pdns-recursor-4.0.0-r1.ebuild @@ -4,7 +4,7 @@ EAPI="5" -inherit toolchain-funcs flag-o-matic eutils +inherit toolchain-funcs flag-o-matic eutils versionator DESCRIPTION="The PowerDNS Recursor" HOMEPAGE="http://www.powerdns.com/" @@ -61,3 +61,15 @@ src_install() { dodir /var/lib/powerdns/var/lib dosym ../.. /var/lib/powerdns/var/lib/powerdns } + +pkg_postinst() { + local old + + for old in ${REPLACING_VERSIONS}; do + version_compare ${old} 4.0.0-r1 + [[ $? -eq 1 ]] || continue + ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor" + ewarn "to pdns-recursor, please update your runlevels accordingly." + break + done +}