Index: dhcpcd-5.6.2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-5.6.2.ebuild,v --- dhcpcd-5.6.2.ebuild 29 Oct 2012 20:55:54 -0000 1.5 +++ dhcpcd-5.6.2.ebuild 1 Nov 2012 21:17:38 -0000 @@ -53,6 +53,10 @@ systemd_dounit "${FILESDIR}"/${PN}.service } +pkg_preinst() { + has_version 'net-misc/dhcpcd[zeroconf]' && prev_zero=true || prev_zero=false +} + pkg_postinst() { # Upgrade the duid file to the new format if needed local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid @@ -66,7 +70,7 @@ cp -p "${old_duid}" "${new_duid}" fi - if use zeroconf; then + if use zeroconf && ! $prev_zero; then elog "You have installed dhcpcd with zeroconf support." elog "This means that it will always obtain an IP address even if no" elog "DHCP server can be contacted, which will break any existing"