summaryrefslogtreecommitdiff
path: root/net-wireless/iwd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-01 15:50:35 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-01 15:50:35 +0000
commite590456a8f7fef7ac4410bcf8f1e1486848e0243 (patch)
tree1f65784bfd0ba1870b77050bc9ecf847cbdcd31e /net-wireless/iwd
parent89e7211956082c276a5a7bd56153c337600969e1 (diff)
gentoo auto-resync : 01:11:2023 - 15:50:35
Diffstat (limited to 'net-wireless/iwd')
-rw-r--r--net-wireless/iwd/Manifest1
-rw-r--r--net-wireless/iwd/iwd-2.8-r2.ebuild166
2 files changed, 167 insertions, 0 deletions
diff --git a/net-wireless/iwd/Manifest b/net-wireless/iwd/Manifest
index 639ccba0aad2..d9055215722a 100644
--- a/net-wireless/iwd/Manifest
+++ b/net-wireless/iwd/Manifest
@@ -13,6 +13,7 @@ EBUILD iwd-2.5.ebuild 4969 BLAKE2B 7c9b9a82d6370ae137a17df3da3dc08a4354057072f70
EBUILD iwd-2.6.ebuild 4969 BLAKE2B 7c9b9a82d6370ae137a17df3da3dc08a4354057072f70e4cddc7d52d9db72c639ab153e420adc4fb5ccb5d13f82c6b2f8af34674ff49aacda307015447ef56ee SHA512 8d5a2bfd3318acf42ffa1111f6d037bf7cd20c54369db08de290c20eb494f3578f58a017a4640ca8e00383afd0fab869d651dbd8b2718e8db17dd4146d7022f0
EBUILD iwd-2.7.ebuild 4969 BLAKE2B 7c9b9a82d6370ae137a17df3da3dc08a4354057072f70e4cddc7d52d9db72c639ab153e420adc4fb5ccb5d13f82c6b2f8af34674ff49aacda307015447ef56ee SHA512 8d5a2bfd3318acf42ffa1111f6d037bf7cd20c54369db08de290c20eb494f3578f58a017a4640ca8e00383afd0fab869d651dbd8b2718e8db17dd4146d7022f0
EBUILD iwd-2.8-r1.ebuild 4081 BLAKE2B 5f072cc796fe7afb04e2a34119bede4d36cc455fecab6c920f131c6f90feef5c769ad779df6294fb04bcaab0debcf2b7c0e32d4dcb4a9cc7980f7f5b99961984 SHA512 20da1964a4dbb4e163534c2f8b24660f47e415fb86408b1aa24f94e6206deeaf097b78b568344abd4c0390b1b2061d61276bf1e1f48b5a4e29012006e81ae66b
+EBUILD iwd-2.8-r2.ebuild 4082 BLAKE2B 09607fa9a897ccc709be1c3335e0ae7972260d3f2955964cb65e72a5ad0ac9ca7aefff1256a8fbac1449fc1b37efe2731f1fe3b7462ed521e6d66e2f927117c5 SHA512 7a8ae3d809758426dc0a4eff5aa7f82b1c5bfa80387ba73437a0e2cd4409c16496e2abc2691cd61b08e179eaa916fdf2faaef5849a44731336e917881145f801
EBUILD iwd-2.8.ebuild 4969 BLAKE2B 46a04585975c13522deb2c87c1cafd2af50d00358438e7d87c8fe81ee28a89f8fd8cdb94ce45a717816a7f06e1e42063804f081d24df2adc66cd0c9dd24b4732 SHA512 e2bd44e161a142ee9af275a8f60b63e470bd885e2a276666df05938f00bc8384dffe1e302c1ea10b68d58ee17fdb85f1dd3c6d090f87ce000cd7b65ade87e11b
EBUILD iwd-9999.ebuild 4078 BLAKE2B 14a5aca28d32e91f76308b4916072c13c4e732f99f43edcd563c13c80ef1034d2212a06379cd2b83566e2e79350d35cd5754472d0af33fc035013f07f46d7b97 SHA512 c3bf12a8c7431127b11dd9ca06e7cda185e504f1b62d5ca872e7d3e28f525aafcfaffe39787b01fa826df8af5b308c228ae9055bc8136ebd0c73f1c11ab74d0b
MISC metadata.xml 844 BLAKE2B a0745226f5314cee29c405d53b5f03c1e2706518272a69443174123601c4b79ad5902e2f22575b46bed37c5d6ebebd1ad4cdcccbb7c40405c4d04f2b92bef17d SHA512 9997101871ad37981492b0a70150d091926ec2321f13d70d5f85f2ff5d360cc87970beb9575c2f78a909e6f3a91ef022fd7115db9ec0ec77d5d94363ed30d793
diff --git a/net-wireless/iwd/iwd-2.8-r2.ebuild b/net-wireless/iwd/iwd-2.8-r2.ebuild
new file mode 100644
index 000000000000..9c69988c4bfc
--- /dev/null
+++ b/net-wireless/iwd/iwd-2.8-r2.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit flag-o-matic linux-info systemd
+
+#Set this variable to the required external ell version
+ELL_REQ="0.58"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit autotools git-r3
+ IWD_EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git"
+ ELL_EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
+else
+ SRC_URI="https://mirrors.edge.kernel.org/pub/linux/network/wireless/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
+ MYRST2MAN="RST2MAN=:"
+fi
+
+DESCRIPTION="Wireless daemon for linux"
+HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+client cpu_flags_x86_aes cpu_flags_x86_ssse3 +monitor ofono standalone systemd wired"
+
+DEPEND="
+ sys-apps/dbus
+ client? ( sys-libs/readline:0= )
+"
+
+[[ -z "${ELL_REQ}" ]] || DEPEND+=" >=dev-libs/ell-${ELL_REQ}"
+
+RDEPEND="
+ ${DEPEND}
+ acct-group/netdev
+ net-wireless/wireless-regdb
+ standalone? (
+ systemd? ( sys-apps/systemd )
+ !systemd? ( virtual/resolvconf )
+ )
+"
+
+BDEPEND="
+ virtual/pkgconfig
+"
+
+[[ ${PV} == *9999* ]] && BDEPEND+=" dev-python/docutils"
+
+pkg_setup() {
+ CONFIG_CHECK="
+ ~ASYMMETRIC_KEY_TYPE
+ ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE
+ ~CFG80211
+ ~CRYPTO_AES
+ ~CRYPTO_CBC
+ ~CRYPTO_CMAC
+ ~CRYPTO_DES
+ ~CRYPTO_ECB
+ ~CRYPTO_HMAC
+ ~CRYPTO_MD4
+ ~CRYPTO_MD5
+ ~CRYPTO_RSA
+ ~CRYPTO_SHA1
+ ~CRYPTO_SHA256
+ ~CRYPTO_SHA512
+ ~CRYPTO_USER_API_HASH
+ ~CRYPTO_USER_API_SKCIPHER
+ ~KEY_DH_OPERATIONS
+ ~PKCS7_MESSAGE_PARSER
+ ~RFKILL
+ ~X509_CERTIFICATE_PARSER
+ "
+
+ if use amd64;then
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_DES3_EDE_X86_64"
+ WARNING_CRYPTO_DES3_EDE_X86_64="CRYPTO_DES3_EDE_X86_64: enable for increased performance"
+ fi
+
+ if use cpu_flags_x86_aes;then
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_NI_INTEL"
+ WARNING_CRYPTO_AES_NI_INTEL="CRYPTO_AES_NI_INTEL: enable for increased performance"
+ fi
+
+ if use cpu_flags_x86_ssse3 && use amd64; then
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_SHA1_SSSE3 ~CRYPTO_SHA256_SSSE3 ~CRYPTO_SHA512_SSSE3"
+ WARNING_CRYPTO_SHA1_SSSE3="CRYPTO_SHA1_SSSE3: enable for increased performance"
+ WARNING_CRYPTO_SHA256_SSSE3="CRYPTO_SHA256_SSSE3: enable for increased performance"
+ WARNING_CRYPTO_SHA512_SSSE3="CRYPTO_SHA512_SSSE3: enable for increased performance"
+ fi
+
+ if use kernel_linux && kernel_is -ge 4 20; then
+ CONFIG_CHECK="${CONFIG_CHECK} ~PKCS8_PRIVATE_KEY_PARSER"
+ fi
+
+ check_extra_config
+}
+
+src_unpack() {
+ if [[ ${PV} == *9999* ]] ; then
+ EGIT_REPO_URI=${IWD_EGIT_REPO_URI} git-r3_src_unpack
+ EGIT_REPO_URI=${ELL_EGIT_REPO_URI} EGIT_CHECKOUT_DIR=${WORKDIR}/ell git-r3_src_unpack
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+ if [[ ${PV} == *9999* ]] ; then
+ eautoreconf
+ fi
+
+ sed -e "s:Exec=/bin/false:Exec=${EPREFIX}/usr/libexec/iwd:g" -i src/net.connman.iwd.service || die
+}
+
+src_configure() {
+ append-cflags "-fsigned-char"
+ local myeconfargs=(
+ --sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var
+ "$(use_enable client)"
+ "$(use_enable monitor)"
+ "$(use_enable ofono)"
+ "$(use_enable wired)"
+ --enable-systemd-service
+ --with-systemd-unitdir="$(systemd_get_systemunitdir)"
+ --with-systemd-modloaddir="${EPREFIX}/usr/lib/modules-load.d"
+ --with-systemd-networkdir="$(systemd_get_utildir)/network"
+ )
+ [[ ${PV} == *9999* ]] || myeconfargs+=(--enable-external-ell)
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ emake "${MYRST2MAN}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" "${MYRST2MAN}" install
+ keepdir "/var/lib/${PN}"
+
+ newinitd "${FILESDIR}/iwd.initd-r1" iwd
+
+ if use wired;then
+ newinitd "${FILESDIR}/ead.initd" ead
+ fi
+
+ if [[ ${PV} == *9999* ]] ; then
+ exeinto /usr/share/iwd/scripts/
+ doexe test/*
+ fi
+
+ if use standalone ; then
+ local iwdconf="${ED}/etc/iwd/main.conf"
+ dodir /etc/iwd
+ cat << EOF > "${iwdconf}"
+[General]
+EnableNetworkConfiguration=true
+
+[Network]
+NameResolvingService=$(usex systemd systemd resolvconf)
+EOF
+ dodir /etc/conf.d
+ echo "rc_provide=\"net\"" > "${ED}"/etc/conf.d/iwd
+ fi
+}