commit:     c1f2de2753423fc569a0be6a35a7f3a2d43ea7e0
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 19 21:35:23 2016 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> 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 <swegener <AT> 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
+}

Reply via email to