diff options
author | Ben Kohler <bkohler@gentoo.org> | 2018-07-25 08:20:09 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2018-07-25 08:20:09 -0500 |
commit | 1cff8ecd98a5595e84966d28faf4d2425f4cba84 (patch) | |
tree | 15c82cca14783f825ad1664916adade6a53dbad0 /net-wireless | |
parent | sys-kernel/gentoo-sources: Linux patch 4.17.10 (diff) | |
download | gentoo-1cff8ecd98a5595e84966d28faf4d2425f4cba84.tar.gz gentoo-1cff8ecd98a5595e84966d28faf4d2425f4cba84.tar.bz2 gentoo-1cff8ecd98a5595e84966d28faf4d2425f4cba84.zip |
net-wireless/iwd: bump to 0.4
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/iwd/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/iwd/iwd-0.4.ebuild | 104 |
2 files changed, 105 insertions, 0 deletions
diff --git a/net-wireless/iwd/Manifest b/net-wireless/iwd/Manifest index 04b8e4eb0fbf..66d235055307 100644 --- a/net-wireless/iwd/Manifest +++ b/net-wireless/iwd/Manifest @@ -1 +1,2 @@ DIST iwd-0.3.tar.xz 642012 BLAKE2B 9bd43a13760cb32c2ead0e54b5e4389159a6a9a9780651435c8fb3d09859606a89aed6f163183a1027c8afefe05ef848c00104bf87cc223d25408f5405dffd33 SHA512 9c34d98ecae18955cc39cb7a58c0724b500902e2070ebbc1967fa4e2ed3633e01052a6bcb592b8bbb806307d8f0db8271a0ac7ad105f8a8f42915b8627e429f6 +DIST iwd-0.4.tar.xz 649484 BLAKE2B 7af09a39a6c19b6ebb466d1fba857a6b7acd00d47feefe7e5053ddcdb0a64e74b7bd96a777e46ebd188af7ff5b3c1ed24ff383d11612dcffcef1aa5f210e78f7 SHA512 55c469b4e675f0c47c91bc46f0a93b704d9f2893393262aca8fd983aee16a7a13a112e9df15a31561fe72a806439a9a93fcbe1721648f3eed9ef277f9339b770 diff --git a/net-wireless/iwd/iwd-0.4.ebuild b/net-wireless/iwd/iwd-0.4.ebuild new file mode 100644 index 000000000000..fa3d32f34fab --- /dev/null +++ b/net-wireless/iwd/iwd-0.4.ebuild @@ -0,0 +1,104 @@ +# 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=" + ~ASYMMETRIC_KEY_TYPE + ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE + ~CRYPTO_AES + ~CRYPTO_ARC4 + ~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 + ~X509_CERTIFICATE_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 +} |