Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 440410
Collapse All | Expand All

(-)dhcpcd-5.6.2.ebuild (-1 / +5 lines)
Lines 53-58 Link Here
53
	systemd_dounit "${FILESDIR}"/${PN}.service
53
	systemd_dounit "${FILESDIR}"/${PN}.service
54
}
54
}
55
55
56
pkg_preinst() {
57
	has_version 'net-misc/dhcpcd[zeroconf]' && prev_zero=true || prev_zero=false
58
}
59
56
pkg_postinst() {
60
pkg_postinst() {
57
	# Upgrade the duid file to the new format if needed
61
	# Upgrade the duid file to the new format if needed
58
	local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
62
	local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
Lines 66-72 Link Here
66
		cp -p "${old_duid}" "${new_duid}"
70
		cp -p "${old_duid}" "${new_duid}"
67
	fi
71
	fi
68
72
69
	if use zeroconf; then
73
	if use zeroconf && ! $prev_zero; then
70
		elog "You have installed dhcpcd with zeroconf support."
74
		elog "You have installed dhcpcd with zeroconf support."
71
		elog "This means that it will always obtain an IP address even if no"
75
		elog "This means that it will always obtain an IP address even if no"
72
		elog "DHCP server can be contacted, which will break any existing"
76
		elog "DHCP server can be contacted, which will break any existing"

Return to bug 440410