summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2016-07-19 21:35:23 +0000
committerSven Wegener <swegener@gentoo.org>2016-07-19 22:02:49 +0000
commitc1f2de2753423fc569a0be6a35a7f3a2d43ea7e0 (patch)
treed1b28620976f96264467ae898976db4c0c96ee9d /net-dns/pdns-recursor
parentnet-dns/pdns-recursor: Switch src_install() to upstream automake (diff)
downloadgentoo-c1f2de2753423fc569a0be6a35a7f3a2d43ea7e0.tar.gz
gentoo-c1f2de2753423fc569a0be6a35a7f3a2d43ea7e0.tar.bz2
gentoo-c1f2de2753423fc569a0be6a35a7f3a2d43ea7e0.zip
net-dns/pdns-recursor: Revision bump
Package-Manager: portage-2.2.28 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'net-dns/pdns-recursor')
-rw-r--r--net-dns/pdns-recursor/pdns-recursor-4.0.0-r1.ebuild (renamed from net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild)14
1 files changed, 13 insertions, 1 deletions
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
index 392772611d4b..4093004f1119 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
+}