Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 462032 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-wireless/wpa_supplicant/wpa_supplicant-9999.ebuild (-3 / +30 lines)
Lines 3-9 Link Here
3
3
4
EAPI=6
4
EAPI=6
5
5
6
inherit eutils qmake-utils systemd toolchain-funcs readme.gentoo-r1
6
inherit eutils qmake-utils systemd toolchain-funcs readme.gentoo-r1 linux-info
7
7
8
DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
8
DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers"
9
HOMEPAGE="https://w1.fi/wpa_supplicant/"
9
HOMEPAGE="https://w1.fi/wpa_supplicant/"
Lines 18-29 Link Here
18
fi
18
fi
19
19
20
SLOT="0"
20
SLOT="0"
21
IUSE="ap bindist dbus eap-sim eapol_test fasteap +fils +hs2-0 libressl macsec p2p privsep ps3 qt5 readline selinux smartcard tdls uncommon-eap-types wimax wps kernel_linux kernel_FreeBSD"
21
IUSE="ap bindist +crda dbus eap-sim eapol_test fasteap +fils +hs2-0 libressl macsec p2p privsep ps3 qt5 readline selinux smartcard tdls uncommon-eap-types wimax wps kernel_linux kernel_FreeBSD"
22
22
23
CDEPEND="dbus? ( sys-apps/dbus )
23
CDEPEND="dbus? ( sys-apps/dbus )
24
	kernel_linux? (
24
	kernel_linux? (
25
		dev-libs/libnl:3
25
		dev-libs/libnl:3
26
		net-wireless/crda
27
		eap-sim? ( sys-apps/pcsc-lite )
26
		eap-sim? ( sys-apps/pcsc-lite )
28
	)
27
	)
29
	!kernel_linux? ( net-libs/libpcap )
28
	!kernel_linux? ( net-libs/libpcap )
Lines 45-50 Link Here
45
"
44
"
46
RDEPEND="${CDEPEND}
45
RDEPEND="${CDEPEND}
47
	selinux? ( sec-policy/selinux-networkmanager )
46
	selinux? ( sec-policy/selinux-networkmanager )
47
	kernel_linux? (
48
		net-wireless/wireless-regdb
49
		crda? ( net-wireless/crda )
50
	)
48
"
51
"
49
52
50
DOC_CONTENTS="
53
DOC_CONTENTS="
Lines 77-82 Link Here
77
		fi
80
		fi
78
}
81
}
79
82
83
pkg_pretend() {
84
	CONFIG_CHECK="
85
	"
86
	if use crda;then
87
		CONFIG_CHECK="${CONFIG_CHECK} ~CFG80211_CRDA_SUPPORT"
88
		WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support"
89
	fi
90
91
	check_extra_config
92
93
	if ! use crda; then
94
		if linux_config_exists && linux_chkconfig_builtin CFG80211 &&
95
			[[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]]
96
		then
97
			ewarn ""
98
			ewarn "REGULATORY DOMAIN PROBLEM:"
99
			ewarn "With CONFIG_CFG80211=y (built-in), the driver won't be able to load regulatory.db from"
100
			ewarn " /lib/firmware, resulting in broken regulatory domain support.  Please set CONFIG_CFG80211=m"
101
			ewarn " or add regulatory.db and regulatory.db.p7s to CONFIG_EXTRA_FIRMWARE."
102
			ewarn ""
103
		fi
104
	fi
105
}
106
80
src_prepare() {
107
src_prepare() {
81
	default
108
	default
82
109

Return to bug 462032