net-dns/pdns-recursor: Revision bump
authorSven Wegener <swegener@gentoo.org>
Tue, 19 Jul 2016 21:35:23 +0000 (21:35 +0000)
committerSven Wegener <swegener@gentoo.org>
Tue, 19 Jul 2016 22:02:49 +0000 (22:02 +0000)
Package-Manager: portage-2.2.28
Signed-off-by: Sven Wegener <swegener@gentoo.org>
net-dns/pdns-recursor/pdns-recursor-4.0.0-r1.ebuild [moved from net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild with 78% similarity]

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 392772611d4bd1a1cea745f5d39c63117f0f7afa..4093004f1119c568ada5ed9e8052fd979981c15d 100644 (file)
@@ -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
+}