Skip to content

Commit

Permalink
app-metrics/fusioninventory-agent: Fix deps
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
alexxy committed Dec 9, 2020
1 parent 630e661 commit af419e9
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af419e9

Please sign in to comment.