Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/lorcon/
Date: Fri, 06 Jul 2018 14:33:19
Message-Id: 1530887563.e2e04946ba31485ac196377edde9acb53d55d8e3.zerochaos@gentoo
1 commit: e2e04946ba31485ac196377edde9acb53d55d8e3
2 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 6 14:32:43 2018 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 6 14:32:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2e04946
7
8 net-wireless/lorcon: bug #660494
9
10 whoops, re-add stable version
11
12 Package-Manager: Portage-2.3.41, Repoman-2.3.9
13 RepoMan-Options: --force
14
15 net-wireless/lorcon/Manifest | 1 +
16 net-wireless/lorcon/lorcon-0.0_p20150109.ebuild | 73 +++++++++++++++++++++++++
17 2 files changed, 74 insertions(+)
18
19 diff --git a/net-wireless/lorcon/Manifest b/net-wireless/lorcon/Manifest
20 index 94c11c88bc6..9b556bcf187 100644
21 --- a/net-wireless/lorcon/Manifest
22 +++ b/net-wireless/lorcon/Manifest
23 @@ -1 +1,2 @@
24 +DIST lorcon-0.0_p20150109.tar.xz 259788 BLAKE2B e3bd188642f7ef49fa3b7361bd659fdd47d6449598b5248412ad3d8e85e5d0b9c0f8d73fdcd3d0822f19a0d069bf0eeb832bed7bb38c418970d617c03387d1ce SHA512 acbd88477317475ca8555d579a1483ea5e5d9eac0f86ef7bde2592e007025070ca56c6cd43e814560e28165ac7b40bd86f2703a466faeca1619b8373dc2b625b
25 DIST lorcon-0.0_p20180409.tar.gz 506177 BLAKE2B d4bea3e91ce506c6ba56221b4fc2e25ffd5ba979b905e66166c570adefc513ca51229fab5706276dbbd1bea68ee2c2802adf4eeefb1e5f0c593fada6cb39ab51 SHA512 7273b68fa4aa7418d9bab8b4651b93e315b9ea55657efa7d14ef444fda7e0e036267d319cda6676951e54b661391a77cc848778f859249a50847d33dac0b8ea9
26
27 diff --git a/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild b/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild
28 new file mode 100644
29 index 00000000000..702bd34a3a2
30 --- /dev/null
31 +++ b/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild
32 @@ -0,0 +1,73 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python2_7 )
39 +DISTUTILS_OPTIONAL=1
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="A generic library for injecting 802.11 frames"
44 +HOMEPAGE="http://802.11ninja.net/lorcon"
45 +
46 +if [[ ${PV} == "9999" ]] ; then
47 + EGIT_REPO_URI="https://code.google.com/p/lorcon/"
48 + inherit git-r3
49 + KEYWORDS=""
50 +else
51 + SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
52 + KEYWORDS="amd64 arm ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
53 +fi
54 +
55 +LICENSE="GPL-2"
56 +SLOT="0"
57 +IUSE="python"
58 +
59 +DEPEND="
60 + python? ( ${PYTHON_DEPS} )
61 + dev-libs/libnl:3=
62 + net-libs/libpcap"
63 +RDEPEND="${DEPEND}"
64 +
65 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
66 +
67 +S="${WORKDIR}"/${P}
68 +
69 +src_unpack() {
70 + if [[ ${PV} == "9999" ]] ; then
71 + git-r3_src_unpack
72 + cp -R "${S}/" "${WORKDIR}/all"
73 + fi
74 + default_src_unpack
75 +}
76 +
77 +src_prepare() {
78 + sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' pylorcon2/PyLorcon2.c
79 + use python && distutils-r1_src_prepare
80 +}
81 +
82 +src_configure() {
83 + default_src_configure
84 +}
85 +
86 +src_compile() {
87 + default_src_compile
88 + if use python; then
89 + LDFLAGS+=" -L${S}/.libs/"
90 + cd pylorcon2 || die
91 + distutils-r1_src_compile
92 + fi
93 +}
94 +
95 +src_install() {
96 + emake DESTDIR="${ED}" install
97 + if use python; then
98 + cd pylorcon2 || die
99 + distutils-r1_src_install
100 + fi
101 +}
102 +
103 +src_test() {
104 + :
105 +}