summaryrefslogtreecommitdiff
path: root/net-wireless/iwd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-06-30 08:49:38 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-06-30 08:49:38 +0100
commitb2be182d49eea46686b5cf2680d457df61e89dc4 (patch)
treec66442ced2011c5ca81c3114cc51041e314c6d33 /net-wireless/iwd
parente23cdda4dbb0c83b9e682ab5e916085a35203da5 (diff)
gentoo resync : 30.06.2018
Diffstat (limited to 'net-wireless/iwd')
-rw-r--r--net-wireless/iwd/Manifest5
-rw-r--r--net-wireless/iwd/files/iwd.initd12
-rw-r--r--net-wireless/iwd/iwd-0.3.ebuild97
-rw-r--r--net-wireless/iwd/iwd-9999.ebuild97
-rw-r--r--net-wireless/iwd/metadata.xml12
5 files changed, 223 insertions, 0 deletions
diff --git a/net-wireless/iwd/Manifest b/net-wireless/iwd/Manifest
new file mode 100644
index 000000000000..a02c471689b4
--- /dev/null
+++ b/net-wireless/iwd/Manifest
@@ -0,0 +1,5 @@
+AUX iwd.initd 246 BLAKE2B 02a422e96de99256e55f2ed86cfd9ed43bf93130021c523d0e4600ab1b7e34212a56def5ab2819c79e2d60cd63e70de4d7c31ae349326b9a15c35a025da4df29 SHA512 699f51082cb44d5ce52ea9dbb9adc4b0eeff945461c66ec4bfcb9d8f26fcc13aee3e7fe69b406d0a7e1ca89af24e655e830c7a61e028a1c0fff1ef8a2b3e153a
+DIST iwd-0.3.tar.xz 642012 BLAKE2B 9bd43a13760cb32c2ead0e54b5e4389159a6a9a9780651435c8fb3d09859606a89aed6f163183a1027c8afefe05ef848c00104bf87cc223d25408f5405dffd33 SHA512 9c34d98ecae18955cc39cb7a58c0724b500902e2070ebbc1967fa4e2ed3633e01052a6bcb592b8bbb806307d8f0db8271a0ac7ad105f8a8f42915b8627e429f6
+EBUILD iwd-0.3.ebuild 2426 BLAKE2B a876a6b5fcfb918226b5fd468cc93f01f659fd14774ab48b040a2453d3117348695950d5ebdcea371acfd308dda9305f2cfafe8cf2cbc65a64a0bb8cf369cb56 SHA512 060b06a5f6f39fa99e185c762aa34aa5f8988f6373020879d85cde1abcb1f882ee35fafa338e61b7aa2b32022382d3d8bcdab47ccaf5e1c36e65a46a350a9aa9
+EBUILD iwd-9999.ebuild 2426 BLAKE2B a876a6b5fcfb918226b5fd468cc93f01f659fd14774ab48b040a2453d3117348695950d5ebdcea371acfd308dda9305f2cfafe8cf2cbc65a64a0bb8cf369cb56 SHA512 060b06a5f6f39fa99e185c762aa34aa5f8988f6373020879d85cde1abcb1f882ee35fafa338e61b7aa2b32022382d3d8bcdab47ccaf5e1c36e65a46a350a9aa9
+MISC metadata.xml 369 BLAKE2B ea1b7bead9ec1e6973bb454f6112bdf0edd7a325d0100debbc107e142d017696e4833c541ce8370bbce249429662668940d664d935eb8b2f7a84a1869b7da2f6 SHA512 665188c4c174fee98b91cbc21923d2e7c31d6ace4229d51808157eb2ca0cc9f51ac9c12f461047ef5c3b3dafd7cdccb6410835e9471b5da0c5bbffd6e651aa3e
diff --git a/net-wireless/iwd/files/iwd.initd b/net-wireless/iwd/files/iwd.initd
new file mode 100644
index 000000000000..12983c1ab2d0
--- /dev/null
+++ b/net-wireless/iwd/files/iwd.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile="/run/iwd.pid"
+command="/usr/libexec/iwd"
+command_background="yes"
+
+depend() {
+ need dbus
+ keyword -shutdown
+}
diff --git a/net-wireless/iwd/iwd-0.3.ebuild b/net-wireless/iwd/iwd-0.3.ebuild
new file mode 100644
index 000000000000..889f7da0e55e
--- /dev/null
+++ b/net-wireless/iwd/iwd-0.3.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools linux-info systemd
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git"
+ inherit git-r3
+else
+ SRC_URI="https://www.kernel.org/pub/linux/network/wireless/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Wireless daemon for linux"
+HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+client +monitor cpu_flags_x86_aes cpu_flags_x86_ssse3"
+
+RDEPEND="sys-apps/dbus
+ client? ( sys-libs/readline:0= )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_pretend() {
+ CONFIG_CHECK="
+ ~CRYPTO_USER_API_SKCIPHER
+ ~CRYPTO_USER_API_HASH
+ ~CRYPTO_RSA
+ ~CRYPTO_AES
+ ~CRYPTO_MD4
+ ~CRYPTO_ECB
+ ~CRYPTO_CMAC
+ ~CRYPTO_DES
+ ~KEY_DH_OPERATIONS
+ ~ASYMMETRIC_KEY_TYPE
+ ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE
+ ~X509_CERTIFICATE_PARSER
+ ~PKCS7_MESSAGE_PARSER
+ "
+ if use amd64;then
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_X86_64 ~CRYPTO_DES3_EDE_X86_64"
+ WARNING_CRYPTO_AES_X86_64="CRYPTO_AES_X86_64: enable for increased performance"
+ 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; 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
+
+ check_extra_config
+}
+
+src_unpack() {
+ if [[ ${PV} == "9999" ]] ; then
+ git-r3_src_unpack
+ git clone git://git.kernel.org/pub/scm/libs/ell/ell.git "${WORKDIR}"/ell
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf --sysconfdir=/etc/iwd --localstatedir=/var \
+ $(use_enable client) \
+ $(use_enable monitor) \
+ --enable-systemd-service \
+ --with-systemd-unitdir="$(systemd_get_systemunitdir)"
+}
+
+src_install() {
+ default
+ keepdir /var/lib/${PN}
+
+ newinitd "${FILESDIR}/iwd.initd" iwd
+
+ if [[ ${PV} == "9999" ]] ; then
+ exeinto /usr/share/iwd/scripts/
+ doexe test/*
+ fi
+}
diff --git a/net-wireless/iwd/iwd-9999.ebuild b/net-wireless/iwd/iwd-9999.ebuild
new file mode 100644
index 000000000000..889f7da0e55e
--- /dev/null
+++ b/net-wireless/iwd/iwd-9999.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools linux-info systemd
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git"
+ inherit git-r3
+else
+ SRC_URI="https://www.kernel.org/pub/linux/network/wireless/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Wireless daemon for linux"
+HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+client +monitor cpu_flags_x86_aes cpu_flags_x86_ssse3"
+
+RDEPEND="sys-apps/dbus
+ client? ( sys-libs/readline:0= )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_pretend() {
+ CONFIG_CHECK="
+ ~CRYPTO_USER_API_SKCIPHER
+ ~CRYPTO_USER_API_HASH
+ ~CRYPTO_RSA
+ ~CRYPTO_AES
+ ~CRYPTO_MD4
+ ~CRYPTO_ECB
+ ~CRYPTO_CMAC
+ ~CRYPTO_DES
+ ~KEY_DH_OPERATIONS
+ ~ASYMMETRIC_KEY_TYPE
+ ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE
+ ~X509_CERTIFICATE_PARSER
+ ~PKCS7_MESSAGE_PARSER
+ "
+ if use amd64;then
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_X86_64 ~CRYPTO_DES3_EDE_X86_64"
+ WARNING_CRYPTO_AES_X86_64="CRYPTO_AES_X86_64: enable for increased performance"
+ 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; 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
+
+ check_extra_config
+}
+
+src_unpack() {
+ if [[ ${PV} == "9999" ]] ; then
+ git-r3_src_unpack
+ git clone git://git.kernel.org/pub/scm/libs/ell/ell.git "${WORKDIR}"/ell
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf --sysconfdir=/etc/iwd --localstatedir=/var \
+ $(use_enable client) \
+ $(use_enable monitor) \
+ --enable-systemd-service \
+ --with-systemd-unitdir="$(systemd_get_systemunitdir)"
+}
+
+src_install() {
+ default
+ keepdir /var/lib/${PN}
+
+ newinitd "${FILESDIR}/iwd.initd" iwd
+
+ if [[ ${PV} == "9999" ]] ; then
+ exeinto /usr/share/iwd/scripts/
+ doexe test/*
+ fi
+}
diff --git a/net-wireless/iwd/metadata.xml b/net-wireless/iwd/metadata.xml
new file mode 100644
index 000000000000..96b6193f64c1
--- /dev/null
+++ b/net-wireless/iwd/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bkohler@gentoo.org</email>
+ <name>Ben Kohler</name>
+ </maintainer>
+ <use>
+ <flag name='client'>Enable iwctl client tool</flag>
+ <flag name='monitor'>Enable iwmon monitor tool</flag>
+ </use>
+</pkgmetadata>