summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-02-14 14:31:56 -0500
committerRick Farina <zerochaos@gentoo.org>2020-02-14 14:40:26 -0500
commitb6bdaf21bdc13cf857390684db076540b1fca0ae (patch)
tree38d6d85b4fd9cb3177c18b21b6d818e1588ae4ea /net-wireless/lorcon/lorcon-0.0_p20200214.ebuild
parentapp-doc/devmanual: Remove old. (diff)
downloadgentoo-b6bdaf21bdc13cf857390684db076540b1fca0ae.tar.gz
gentoo-b6bdaf21bdc13cf857390684db076540b1fca0ae.tar.bz2
gentoo-b6bdaf21bdc13cf857390684db076540b1fca0ae.zip
net-wireless/lorcon: python3
Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/lorcon/lorcon-0.0_p20200214.ebuild')
-rw-r--r--net-wireless/lorcon/lorcon-0.0_p20200214.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/net-wireless/lorcon/lorcon-0.0_p20200214.ebuild b/net-wireless/lorcon/lorcon-0.0_p20200214.ebuild
new file mode 100644
index 00000000000..7e81f859671
--- /dev/null
+++ b/net-wireless/lorcon/lorcon-0.0_p20200214.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8})
+DISTUTILS_OPTIONAL=1
+
+inherit distutils-r1
+
+DESCRIPTION="A generic library for injecting 802.11 frames"
+HOMEPAGE="https://github.com/kismetwireless/lorcon"
+
+if [[ ${PV} == "9999" ]] ; then
+ #EGIT_REPO_URI="https://www.kismetwireless.net/lorcon.git"
+ EGIT_REPO_URI="https://github.com/kismetwireless/lorcon.git"
+ inherit git-r3
+ S="${WORKDIR}"/${P}
+else
+ GIT_HASH="7dbf24ee6f7c277240c0fbd988b6902850577772"
+ SRC_URI="https://github.com/kismetwireless/lorcon/archive/${GIT_HASH}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}"/"${PN}-${GIT_HASH}"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="python"
+
+DEPEND="
+ python? ( ${PYTHON_DEPS} )
+ dev-libs/libnl:3=
+ net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="test"
+
+src_unpack() {
+ if [[ ${PV} == "9999" ]] ; then
+ git-r3_src_unpack
+ cp -R "${S}/" "${WORKDIR}/all"
+ fi
+ default_src_unpack
+}
+
+src_prepare() {
+ default
+ use python && distutils-r1_src_prepare
+}
+
+src_configure() {
+ default_src_configure
+}
+
+src_compile() {
+ default_src_compile
+ if use python; then
+ LDFLAGS+=" -L${S}/.libs/"
+ cd pylorcon2 || die
+ distutils-r1_src_compile
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+ if use python; then
+ cd pylorcon2 || die
+ distutils-r1_src_install
+ fi
+ find "${D}" -xtype f -name '*.la' -delete || die
+}