diff options
Diffstat (limited to 'net-misc/netifrc/netifrc-9999.ebuild')
-rw-r--r-- | net-misc/netifrc/netifrc-9999.ebuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/net-misc/netifrc/netifrc-9999.ebuild b/net-misc/netifrc/netifrc-9999.ebuild index 177d61a18ee9..54f749377303 100644 --- a/net-misc/netifrc/netifrc-9999.ebuild +++ b/net-misc/netifrc/netifrc-9999.ebuild @@ -19,16 +19,24 @@ else KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" fi -LICENSE="BSD-2" +LICENSE="BSD-2 GPL-2" SLOT="0" 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 +} |