diff options
Diffstat (limited to 'dev-python/python-iwscan')
4 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/python-iwscan/Manifest b/dev-python/python-iwscan/Manifest new file mode 100644 index 000000000000..e087b8b489c2 --- /dev/null +++ b/dev-python/python-iwscan/Manifest @@ -0,0 +1 @@ +DIST python-iwscan-20080402.tar.bz2 16891 BLAKE2B acfdfba08f6c7fbd7a89ca8932c6155f306332f03bfa1aec70618370c12480779d13726836074ab049f1ba496111a3b02cbd15fb515c317d48fe5f66d8295df4 SHA512 9e9d5e1b2cc491879a4f8a216044f46253820c6c8f30904a1867f758f6d158a9270c9c70a91f22a80f15fbe0446d786869104c5dc5d6bfcab470a79478f533d2 diff --git a/dev-python/python-iwscan/files/python-iwscan-20080402-wireless-tools-30.patch b/dev-python/python-iwscan/files/python-iwscan-20080402-wireless-tools-30.patch new file mode 100644 index 000000000000..16a9dce1858f --- /dev/null +++ b/dev-python/python-iwscan/files/python-iwscan-20080402-wireless-tools-30.patch @@ -0,0 +1,14 @@ +--- pyiwscan.c ++++ pyiwscan.c +@@ -13,6 +13,11 @@ + #include <structmember.h> + #include <iwlib.h> + ++/* PROC_NET_WIRELESS is defined in iwlib-private.h since wireless-tools-30_pre9 */ ++#ifndef PROC_NET_WIRELESS ++#define PROC_NET_WIRELESS "/proc/net/wireless" ++#endif ++ + #define IWSCAN_VERSION_MAJOR 0 + #define IWSCAN_VERSION_MINOR 7 + #define IWSCAN_VERSION_MICRO 0 diff --git a/dev-python/python-iwscan/metadata.xml b/dev-python/python-iwscan/metadata.xml new file mode 100644 index 000000000000..0d157ca57cd5 --- /dev/null +++ b/dev-python/python-iwscan/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> +</maintainer> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/python-iwscan/python-iwscan-20080402-r1.ebuild b/dev-python/python-iwscan/python-iwscan-20080402-r1.ebuild new file mode 100644 index 000000000000..1a0bfd3da421 --- /dev/null +++ b/dev-python/python-iwscan/python-iwscan-20080402-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="A Python extension for iwscan access" +HOMEPAGE="http://projects.otaku42.de/browser/python-iwscan" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="" + +DEPEND="net-wireless/wireless-tools" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-wireless-tools-30.patch" +) + +python_configure_all() { + append-flags -fno-strict-aliasing +} |
