2022-04-05 12:23:14 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-06-30 18:45:43 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2024-12-17 04:55:54 +01:00
|
|
|
EAPI=8
|
2021-07-01 13:56:41 +02:00
|
|
|
|
2024-12-17 04:55:54 +01:00
|
|
|
inherit multilib
|
2021-06-30 18:45:43 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Simple and free tools to secure, analyze and troubleshoot any network."
|
|
|
|
HOMEPAGE="https://www.fing.io"
|
2022-08-23 12:41:36 +02:00
|
|
|
SRC_URI="https://www.fing.com/images/uploads/general/CLI_Linux_Generic_${PV}.zip -> fing-CLI_Linux_Generic_${PV}.zip"
|
2021-06-30 18:45:43 +02:00
|
|
|
|
|
|
|
LICENSE="nomachine"
|
|
|
|
SLOT="0"
|
2022-04-05 12:23:14 +02:00
|
|
|
KEYWORDS="amd64 x86 arm"
|
2021-06-30 18:45:43 +02:00
|
|
|
IUSE=""
|
|
|
|
RESTRICT="strip"
|
|
|
|
|
|
|
|
DEPEND="app-arch/unzip"
|
|
|
|
RDEPEND="sys-libs/zlib"
|
|
|
|
|
|
|
|
S=${WORKDIR}
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
2022-04-05 12:23:14 +02:00
|
|
|
cd "${S}"
|
|
|
|
if [[ ${CHOST} = armv5* ]]; then
|
|
|
|
unpack "${S}"/fing-${PV}-arm.tar.gz
|
|
|
|
ARCH=arm
|
|
|
|
elif [[ ${CHOST} = armv6* ]]; then
|
|
|
|
if [[ ${CHOST} = *hardfloat* ]]; then
|
|
|
|
unpack "${S}"/fing-${PV}-armhf.tar.gz
|
|
|
|
ARCH=armhf
|
|
|
|
else
|
|
|
|
unpack "${S}"/fing-${PV}-arm.tar.gz
|
|
|
|
ARCH=arm
|
|
|
|
fi
|
|
|
|
elif [[ ${CHOST} = armv7* ]]; then
|
|
|
|
if [[ ${CHOST} = *hardfloat* ]]; then
|
|
|
|
unpack "${S}"/fing-${PV}-armhf.tar.gz
|
|
|
|
ARCH=armhf
|
|
|
|
else
|
|
|
|
unpack "${S}"/fing-${PV}-arm.tar.gz
|
|
|
|
ARCH=arm
|
|
|
|
fi
|
|
|
|
elif [[ ${CHOST} = x86_64* ]]; then
|
|
|
|
unpack "${S}"/fing-${PV}-amd64.tar.gz
|
|
|
|
ARCH=amd64
|
|
|
|
else
|
|
|
|
unpack "${S}"/fing-${PV}-i686.tar.gz
|
|
|
|
ARCH=i686
|
|
|
|
fi
|
2021-06-30 18:45:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install()
|
|
|
|
{
|
2022-04-05 12:23:14 +02:00
|
|
|
cd "${S}"/fing-${PV}-${ARCH}
|
2021-06-30 18:45:43 +02:00
|
|
|
cp -pPR usr "${D}" || die
|
|
|
|
}
|