diff options
Diffstat (limited to 'net-wireless/iwd/iwd-9999.ebuild')
-rw-r--r-- | net-wireless/iwd/iwd-9999.ebuild | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/net-wireless/iwd/iwd-9999.ebuild b/net-wireless/iwd/iwd-9999.ebuild index 55d9df110e12..c17d39b08802 100644 --- a/net-wireless/iwd/iwd-9999.ebuild +++ b/net-wireless/iwd/iwd-9999.ebuild @@ -21,19 +21,30 @@ HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/" LICENSE="GPL-2" SLOT="0" -IUSE="+client +crda +monitor ofono wired cpu_flags_x86_aes cpu_flags_x86_ssse3" +IUSE="+client +crda +monitor ofono wired cpu_flags_x86_aes cpu_flags_x86_ssse3 +standalone systemd" -COMMON_DEPEND="sys-apps/dbus - client? ( sys-libs/readline:0= )" +COMMON_DEPEND=" + sys-apps/dbus + client? ( sys-libs/readline:0= ) +" -[[ -z "${ELL_REQ}" ]] || COMMON_DEPEND+=" >=dev-libs/ell-${ELL_REQ}" +[[ -z "${ELL_REQ}" ]] || COMMON_DEPEND+=" ~dev-libs/ell-${ELL_REQ}" -RDEPEND="${COMMON_DEPEND} +RDEPEND=" + ${COMMON_DEPEND} net-wireless/wireless-regdb - crda? ( net-wireless/crda )" + crda? ( net-wireless/crda ) + standalone? ( + systemd? ( sys-apps/systemd ) + !systemd? ( virtual/resolvconf ) + ) +" -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" +DEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig +" [[ ${PV} == *9999* ]] && DEPEND+=" dev-python/docutils" @@ -91,6 +102,10 @@ pkg_setup() { check_extra_config if ! use crda; then + if use kernel_linux && kernel_is -lt 4 15; then + ewarn "POSSIBLE REGULATORY DOMAIN PROBLEM:" + ewarn "Regulatory domain support for kernels older than 4.15 requires crda." + fi if linux_config_exists && linux_chkconfig_builtin CFG80211 && [[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]] then @@ -151,4 +166,14 @@ src_install() { exeinto /usr/share/iwd/scripts/ doexe test/* fi + + if use standalone ; then + local iwdconf="${ED}/etc/iwd/main.conf" + dodir /etc/iwd + echo "[General]" > "${iwdconf}" + echo "EnableNetworkConfiguration=true" >> "${iwdconf}" + echo "[Network]" >> "${iwdconf}" + echo "NameResolvingService=$(usex systemd systemd resolvconf)" >> "${iwdconf}" + echo "rc_provide=\"net\"" > ${ED}/etc/conf.d/iwd + fi } |