summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2020-12-09 23:07:56 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2020-12-09 23:08:14 +0300
commitaf419e915351e05320baaba58c615b0f174e514f (patch)
tree209e5176bf1c1362c01559bd4979df0e11a57a00 /app-metrics
parentsys-libs/librtas-2.0.2-r1: marked ~ppc64-linux (diff)
downloadgentoo-af419e915351e05320baaba58c615b0f174e514f.tar.gz
gentoo-af419e915351e05320baaba58c615b0f174e514f.tar.bz2
gentoo-af419e915351e05320baaba58c615b0f174e514f.zip
app-metrics/fusioninventory-agent: Fix deps
Fix path for ip and ifconfig. Fix threads dep Thanks to Alexey Naikov. Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild b/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild
index 50d906752ad4..9756d4073782 100644
--- a/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild
+++ b/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild
@@ -23,17 +23,31 @@ DEPEND="
dev-perl/XML-TreePP
dev-perl/XML-XPath
virtual/perl-IO-Compress
+ virtual/perl-threads
dev-perl/HTTP-Daemon
dev-perl/IO-Socket-SSL
dev-perl/LWP-Protocol-https
dev-perl/Proc-Daemon
- "
+"
RDEPEND="${DEPEND}"
BDEPEND="
dev-perl/Module-Install
- "
+ dev-perl/File-Copy-Recursive
+ app-portage/gentoolkit
+"
+
PATCHES=( "${FILESDIR}/${P}-dirs.patch" )
+src_prepare() {
+ # gentoo has ip under /bin/ip and ifconfig under /bin/ifconfig
+ sed \
+ -e "s:/sbin/ifconfig:/bin/ifconfig:g" \
+ -e "s:/sbin/ip:/bin/ip:g" \
+ -i lib/FusionInventory/Agent/Task/Inventory/Linux/Networks.pm \
+ -i lib/FusionInventory/Agent/Tools/Linux.pm || die
+ default
+}
+
src_install() {
default
systemd_dounit contrib/unix/fusioninventory-agent.service