1 |
commit: 8c19e7d41c3c5dcf150b00faa617253c816c96eb |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 30 17:51:25 2019 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 30 17:51:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c19e7d4 |
7 |
|
8 |
net-wireless/iwd: revbump for missed ell version update |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
net-wireless/iwd/iwd-1.0-r1.ebuild | 144 +++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 144 insertions(+) |
15 |
|
16 |
diff --git a/net-wireless/iwd/iwd-1.0-r1.ebuild b/net-wireless/iwd/iwd-1.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..353d6500a01 |
19 |
--- /dev/null |
20 |
+++ b/net-wireless/iwd/iwd-1.0-r1.ebuild |
21 |
@@ -0,0 +1,144 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+inherit autotools flag-o-matic linux-info systemd |
27 |
+ |
28 |
+if [[ ${PV} == *9999* ]]; then |
29 |
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git" |
30 |
+ inherit git-r3 |
31 |
+else |
32 |
+ SRC_URI="https://www.kernel.org/pub/linux/network/wireless/${P}.tar.xz" |
33 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~sparc ~x86" |
34 |
+fi |
35 |
+ |
36 |
+DESCRIPTION="Wireless daemon for linux" |
37 |
+HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/" |
38 |
+ |
39 |
+LICENSE="GPL-2" |
40 |
+SLOT="0" |
41 |
+IUSE="+client +crda +monitor ofono wired cpu_flags_x86_aes cpu_flags_x86_ssse3" |
42 |
+ |
43 |
+COMMON_DEPEND=">=dev-libs/ell-0.26 |
44 |
+ sys-apps/dbus |
45 |
+ client? ( sys-libs/readline:0= )" |
46 |
+ |
47 |
+RDEPEND="${COMMON_DEPEND} |
48 |
+ net-wireless/wireless-regdb |
49 |
+ crda? ( net-wireless/crda )" |
50 |
+ |
51 |
+DEPEND="${COMMON_DEPEND} |
52 |
+ virtual/pkgconfig" |
53 |
+ |
54 |
+[[ ${PV} == *9999* ]] && DEPEND+=" dev-python/docutils" |
55 |
+ |
56 |
+pkg_pretend() { |
57 |
+ CONFIG_CHECK=" |
58 |
+ ~ASYMMETRIC_KEY_TYPE |
59 |
+ ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
60 |
+ ~CFG80211 |
61 |
+ ~CRYPTO_AES |
62 |
+ ~CRYPTO_ARC4 |
63 |
+ ~CRYPTO_CBC |
64 |
+ ~CRYPTO_CMAC |
65 |
+ ~CRYPTO_DES |
66 |
+ ~CRYPTO_ECB |
67 |
+ ~CRYPTO_HMAC |
68 |
+ ~CRYPTO_MD4 |
69 |
+ ~CRYPTO_MD5 |
70 |
+ ~CRYPTO_RSA |
71 |
+ ~CRYPTO_SHA1 |
72 |
+ ~CRYPTO_SHA256 |
73 |
+ ~CRYPTO_SHA512 |
74 |
+ ~CRYPTO_USER_API_HASH |
75 |
+ ~CRYPTO_USER_API_SKCIPHER |
76 |
+ ~KEY_DH_OPERATIONS |
77 |
+ ~PKCS7_MESSAGE_PARSER |
78 |
+ ~X509_CERTIFICATE_PARSER |
79 |
+ " |
80 |
+ if use crda;then |
81 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CFG80211_CRDA_SUPPORT" |
82 |
+ WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support" |
83 |
+ fi |
84 |
+ |
85 |
+ if use amd64;then |
86 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_X86_64 ~CRYPTO_DES3_EDE_X86_64" |
87 |
+ WARNING_CRYPTO_AES_X86_64="CRYPTO_AES_X86_64: enable for increased performance" |
88 |
+ WARNING_CRYPTO_DES3_EDE_X86_64="CRYPTO_DES3_EDE_X86_64: enable for increased performance" |
89 |
+ fi |
90 |
+ |
91 |
+ if use cpu_flags_x86_aes;then |
92 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_NI_INTEL" |
93 |
+ WARNING_CRYPTO_AES_NI_INTEL="CRYPTO_AES_NI_INTEL: enable for increased performance" |
94 |
+ fi |
95 |
+ |
96 |
+ if use cpu_flags_x86_ssse3 && use amd64; then |
97 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_SHA1_SSSE3 ~CRYPTO_SHA256_SSSE3 ~CRYPTO_SHA512_SSSE3" |
98 |
+ WARNING_CRYPTO_SHA1_SSSE3="CRYPTO_SHA1_SSSE3: enable for increased performance" |
99 |
+ WARNING_CRYPTO_SHA256_SSSE3="CRYPTO_SHA256_SSSE3: enable for increased performance" |
100 |
+ WARNING_CRYPTO_SHA512_SSSE3="CRYPTO_SHA512_SSSE3: enable for increased performance" |
101 |
+ fi |
102 |
+ |
103 |
+ if use kernel_linux && kernel_is -ge 4 20; then |
104 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~PKCS8_PRIVATE_KEY_PARSER" |
105 |
+ fi |
106 |
+ |
107 |
+ check_extra_config |
108 |
+ |
109 |
+ if ! use crda; then |
110 |
+ if [[ $(getfilevar CONFIG_CFG80211 /usr/src/linux/.config) == y ]] \ |
111 |
+ && [[ $(getfilevar CONFIG_EXTRA_FIRMWARE /usr/src/linux/.config) != *regulatory.db* ]] |
112 |
+ then |
113 |
+ ewarn "" |
114 |
+ ewarn "REGULATORY DOMAIN PROBLEM:" |
115 |
+ ewarn "With CONFIG_CFG80211=y (built-in), the driver won't be able to load regulatory.db from" |
116 |
+ ewarn " /lib/firmware, resulting in broken regulatory domain support. Please set CONFIG_CFG80211=m" |
117 |
+ ewarn " or add regulatory.db and regulatory.db.p7s to CONFIG_EXTRA_FIRMWARE." |
118 |
+ ewarn "" |
119 |
+ fi |
120 |
+ fi |
121 |
+} |
122 |
+ |
123 |
+src_unpack() { |
124 |
+ if [[ ${PV} == *9999* ]] ; then |
125 |
+ git-r3_src_unpack |
126 |
+ git clone git://git.kernel.org/pub/scm/libs/ell/ell.git "${WORKDIR}"/ell |
127 |
+ else |
128 |
+ default |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+src_prepare() { |
133 |
+ default |
134 |
+ eautoreconf |
135 |
+} |
136 |
+ |
137 |
+src_configure() { |
138 |
+ append-cflags "-fsigned-char" |
139 |
+ econf --sysconfdir=/etc/iwd --localstatedir=/var \ |
140 |
+ $(use_enable client) \ |
141 |
+ $(use_enable monitor) \ |
142 |
+ $(use_enable ofono) \ |
143 |
+ $(use_enable wired) \ |
144 |
+ --enable-external-ell \ |
145 |
+ --enable-systemd-service \ |
146 |
+ --with-systemd-unitdir="$(systemd_get_systemunitdir)" \ |
147 |
+ --with-systemd-modloaddir=$(_systemd_get_dir modulesloaddir /usr/lib/modules-load.d) \ |
148 |
+ --with-systemd-networkdir="$(systemd_get_utildir)/network" |
149 |
+} |
150 |
+ |
151 |
+src_install() { |
152 |
+ default |
153 |
+ keepdir /var/lib/${PN} |
154 |
+ |
155 |
+ newinitd "${FILESDIR}/iwd.initd" iwd |
156 |
+ |
157 |
+ if use wired;then |
158 |
+ newinitd "${FILESDIR}/ead.initd" ead |
159 |
+ fi |
160 |
+ |
161 |
+ if [[ ${PV} == *9999* ]] ; then |
162 |
+ exeinto /usr/share/iwd/scripts/ |
163 |
+ doexe test/* |
164 |
+ fi |
165 |
+} |