From 042f96e8f848bc61f3a428ebe528304109e360dc Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Wed, 27 May 2020 02:45:30 +0300 Subject: app-metrics/fusioninventory-agent: add startup files Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Alexey Shvetsov --- .../fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild') 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 b5a7d0a0a611..3350194f9c03 100644 --- a/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild +++ b/app-metrics/fusioninventory-agent/fusioninventory-agent-2.5.2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit perl-module +inherit perl-module systemd DESCRIPTION="The FusionInventory agent is a generic management agent" HOMEPAGE="http://fusioninventory.org/" @@ -31,9 +31,12 @@ RDEPEND="${DEPEND}" BDEPEND=" dev-perl/Module-Install " +PATCHES=( "${FILESDIR}/${P}-dirs.patch" ) -src_prepare() { - sed -e 's:\$(PREFIX)/etc:/etc:g' \ - -i Makefile.PL || die "sed failed" +src_install() { default + systemd_dounit contrib/unix/fusioninventory-agent.service + doinitd "${FILESDIR}/${PN}.initd" + doconfd "${FILESDIR}/${PN}.confd" + keepdir /var/lib/fusioninventory } -- cgit v1.2.3-65-gdbad