forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-metrics/fusioninventory-agent: add startup files
Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Alexey Shvetsov <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
app-metrics/fusioninventory-agent/files/fusioninventory-agent-2.5.2-dirs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- a/Makefile.PL 2020-05-27 02:16:42.106531746 +0300 | ||
+++ b/Makefile.PL 2020-05-27 02:17:30.568531767 +0300 | ||
@@ -170,18 +170,15 @@ | ||
INSTALLSCRIPT => '$(PREFIX)/bin', | ||
INSTALLSITESCRIPT => '$(PREFIX)/bin', | ||
INSTALLVENDORSCRIPT => '$(PREFIX)/bin', | ||
- INSTALLLIB => '$(DATADIR)/lib', | ||
- INSTALLSITELIB => '$(DATADIR)/lib', | ||
- INSTALLVENDORLIB => '$(DATADIR)/lib', | ||
INSTALLMAN1DIR => '$(PREFIX)/share/man/man1', | ||
INSTALLSITEMAN1DIR => '$(PREFIX)/share/man/man1', | ||
INSTALLVENDORMAN1DIR => '$(PREFIX)/share/man/man1', | ||
INSTALLMAN3DIR => '$(PREFIX)/share/man/man3', | ||
INSTALLSITEMAN3DIR => '$(PREFIX)/share/man/man3', | ||
INSTALLVENDORMAN3DIR => '$(PREFIX)/share/man/man3', | ||
- SYSCONFDIR => '$(PREFIX)/etc/fusioninventory', | ||
+ SYSCONFDIR => '/etc/fusioninventory', | ||
DATADIR => '$(PREFIX)/share/fusioninventory', | ||
- LOCALSTATEDIR => '$(PREFIX)/var/fusioninventory', | ||
+ LOCALSTATEDIR => '/var/lib/fusioninventory', | ||
); | ||
|
||
# allow variables defined on command line to override defaults |
2 changes: 2 additions & 0 deletions
2
app-metrics/fusioninventory-agent/files/fusioninventory-agent.confd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# additional args for fusioninventory-agent | ||
FUSIONINVENTORY_OPTIONS="" |
21 changes: 21 additions & 0 deletions
21
app-metrics/fusioninventory-agent/files/fusioninventory-agent.initd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/sbin/openrc-run | ||
# Copyright 2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
pidfile=${RC_PREFIX%/}/run/${SVCNAME}.pid | ||
|
||
name="fusioninventory-agent daemon" | ||
description="FusionInventroy agent" | ||
command=/usr/bin/fusioninventory-agent | ||
command_args="--daemon --pidfile ${pidfile} ${FUSIONINVENTORY_OPTIONS}" | ||
extra_started_commands="reload" | ||
|
||
depend() { | ||
need net | ||
} | ||
|
||
reload() { | ||
ebegin "Reloading ${SVCNAME}" | ||
start-stop-daemon --signal HUP --pidfile "${pidfile}" | ||
eend $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters