1 |
commit: 1bf4ec1b842b9d6c96834ffe54ec35eb6b779124 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 27 07:15:59 2020 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 27 07:16:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bf4ec1b |
7 |
|
8 |
app-metrics/fusioninventory-agent: Fix config path |
9 |
|
10 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
11 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
12 |
|
13 |
.../files/fusioninventory-agent-2.5.2-dirs.patch | 12 ++++++++++++ |
14 |
.../fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild | 4 ++-- |
15 |
2 files changed, 14 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/app-metrics/fusioninventory-agent/files/fusioninventory-agent-2.5.2-dirs.patch b/app-metrics/fusioninventory-agent/files/fusioninventory-agent-2.5.2-dirs.patch |
18 |
index d4c0f4eadb0..e37b58c43a0 100644 |
19 |
--- a/app-metrics/fusioninventory-agent/files/fusioninventory-agent-2.5.2-dirs.patch |
20 |
+++ b/app-metrics/fusioninventory-agent/files/fusioninventory-agent-2.5.2-dirs.patch |
21 |
@@ -21,3 +21,15 @@ |
22 |
); |
23 |
|
24 |
# allow variables defined on command line to override defaults |
25 |
+--- a/lib/FusionInventory/Agent/Config.pm 2020-05-27 10:06:21.248964808 +0300 |
26 |
++++ b/lib/FusionInventory/Agent/Config.pm 2020-05-27 10:06:57.324964823 +0300 |
27 |
+@@ -67,7 +67,7 @@ |
28 |
+ my ($class, %params) = @_; |
29 |
+ |
30 |
+ my $self = { |
31 |
+- '_confdir' => undef, # SYSCONFDIR replaced here from Makefile |
32 |
++ '_confdir' => '/etc/fusioninventory', # SYSCONFDIR replaced here from Makefile |
33 |
+ }; |
34 |
+ bless $self, $class; |
35 |
+ $self->_loadDefaults(); |
36 |
+ |
37 |
|
38 |
diff --git a/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild b/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild |
39 |
index 3350194f9c0..9b0a5d9d145 100644 |
40 |
--- a/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild |
41 |
+++ b/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild |
42 |
@@ -36,7 +36,7 @@ PATCHES=( "${FILESDIR}/${P}-dirs.patch" ) |
43 |
src_install() { |
44 |
default |
45 |
systemd_dounit contrib/unix/fusioninventory-agent.service |
46 |
- doinitd "${FILESDIR}/${PN}.initd" |
47 |
- doconfd "${FILESDIR}/${PN}.confd" |
48 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
49 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
50 |
keepdir /var/lib/fusioninventory |
51 |
} |