commit: 7666992380a6ea303e04eec4457e1b11c2cda310 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> AuthorDate: Tue Oct 3 20:40:51 2023 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Tue Oct 3 20:40:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76669923
net-misc/netifrc: revbump, add busybox to dhcp (bug #846488), bug #861686 Closes: https://bugs.gentoo.org/846488 Closes: https://bugs.gentoo.org/861686 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> .../{netifrc-9999.ebuild => netifrc-0.7.6-r1.ebuild} | 17 +++++++++++++++-- net-misc/netifrc/netifrc-9999.ebuild | 17 +++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/net-misc/netifrc/netifrc-9999.ebuild b/net-misc/netifrc/netifrc-0.7.6-r1.ebuild similarity index 92% copy from net-misc/netifrc/netifrc-9999.ebuild copy to net-misc/netifrc/netifrc-0.7.6-r1.ebuild index 71acc5378ef6..54f749377303 100644 --- a/net-misc/netifrc/netifrc-9999.ebuild +++ b/net-misc/netifrc/netifrc-0.7.6-r1.ebuild @@ -26,9 +26,17 @@ IUSE="+dhcp" RDEPEND=" sys-apps/gentoo-functions >=sys-apps/openrc-0.15 - dhcp? ( || ( net-misc/dhcpcd net-misc/dhcp[client] ) ) + dhcp? ( + || ( + net-misc/dhcpcd + net-misc/dhcp[client] + sys-apps/busybox + ) + ) +" +BDEPEND=" + kernel_linux? ( virtual/pkgconfig ) " -BDEPEND="kernel_linux? ( virtual/pkgconfig )" src_prepare() { if [[ ${PV} == 9999 ]] ; then @@ -69,6 +77,7 @@ src_install() { pkg_postinst() { udev_reload + if [[ ! -e "${EROOT}"/etc/conf.d/net && -z ${REPLACING_VERSIONS} ]]; then elog "The network configuration scripts will use dhcp by" elog "default to set up your interfaces." @@ -76,3 +85,7 @@ pkg_postinst() { elog "${EROOT}/usr/share/doc/${P}/README" fi } + +pkg_postrm() { + udev_reload +} diff --git a/net-misc/netifrc/netifrc-9999.ebuild b/net-misc/netifrc/netifrc-9999.ebuild index 71acc5378ef6..54f749377303 100644 --- a/net-misc/netifrc/netifrc-9999.ebuild +++ b/net-misc/netifrc/netifrc-9999.ebuild @@ -26,9 +26,17 @@ IUSE="+dhcp" RDEPEND=" sys-apps/gentoo-functions >=sys-apps/openrc-0.15 - dhcp? ( || ( net-misc/dhcpcd net-misc/dhcp[client] ) ) + dhcp? ( + || ( + net-misc/dhcpcd + net-misc/dhcp[client] + sys-apps/busybox + ) + ) +" +BDEPEND=" + kernel_linux? ( virtual/pkgconfig ) " -BDEPEND="kernel_linux? ( virtual/pkgconfig )" src_prepare() { if [[ ${PV} == 9999 ]] ; then @@ -69,6 +77,7 @@ src_install() { pkg_postinst() { udev_reload + if [[ ! -e "${EROOT}"/etc/conf.d/net && -z ${REPLACING_VERSIONS} ]]; then elog "The network configuration scripts will use dhcp by" elog "default to set up your interfaces." @@ -76,3 +85,7 @@ pkg_postinst() { elog "${EROOT}/usr/share/doc/${P}/README" fi } + +pkg_postrm() { + udev_reload +}
