commit:     06b4e98a3a540349da8614201a875c5607fbbab7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 31 03:56:12 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 31 22:13:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06b4e98a

app-admin/puppet: [QA] use systemd.eclass to install unit files

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-admin/puppet/puppet-5.5.22-r1.ebuild | 5 ++---
 app-admin/puppet/puppet-7.8.0-r1.ebuild  | 5 ++---
 app-admin/puppet/puppet-7.9.0-r1.ebuild  | 5 ++---
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/app-admin/puppet/puppet-5.5.22-r1.ebuild 
b/app-admin/puppet/puppet-5.5.22-r1.ebuild
index a33a8285cc8..3fc2f8062ec 100644
--- a/app-admin/puppet/puppet-5.5.22-r1.ebuild
+++ b/app-admin/puppet/puppet-5.5.22-r1.ebuild
@@ -11,7 +11,7 @@ RUBY_FAKEGEM_TASK_DOC="doc:all"
 
 RUBY_FAKEGEM_EXTRAINSTALL="locales"
 
-inherit ruby-fakegem tmpfiles
+inherit ruby-fakegem systemd tmpfiles
 
 DESCRIPTION="A system automation and configuration management software."
 HOMEPAGE="https://puppet.com/";
@@ -84,8 +84,7 @@ all_ruby_install() {
        all_fakegem_install
 
        # systemd stuffs
-       insinto /usr/lib/systemd/system
-       doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
+       systemd_dounit "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
 
        # tmpfiles stuff
        newtmpfiles "${FILESDIR}/tmpfiles.d" "puppet.conf"

diff --git a/app-admin/puppet/puppet-7.8.0-r1.ebuild 
b/app-admin/puppet/puppet-7.8.0-r1.ebuild
index 9c67dbe4f52..f2b79f3d4dc 100644
--- a/app-admin/puppet/puppet-7.8.0-r1.ebuild
+++ b/app-admin/puppet/puppet-7.8.0-r1.ebuild
@@ -8,7 +8,7 @@ RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 RUBY_FAKEGEM_TASK_DOC="doc:all"
 RUBY_FAKEGEM_EXTRAINSTALL="locales"
 
-inherit ruby-fakegem tmpfiles
+inherit ruby-fakegem systemd tmpfiles
 
 DESCRIPTION="A system automation and configuration management software."
 HOMEPAGE="https://puppet.com/";
@@ -81,8 +81,7 @@ all_ruby_install() {
        all_fakegem_install
 
        # systemd stuffs
-       insinto /usr/lib/systemd/system
-       doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
+       systemd_dounit "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
 
        # tmpfiles stuff
        newtmpfiles "${FILESDIR}/tmpfiles.d" "puppet.conf"

diff --git a/app-admin/puppet/puppet-7.9.0-r1.ebuild 
b/app-admin/puppet/puppet-7.9.0-r1.ebuild
index b097feb026a..c1c0ce4f6d0 100644
--- a/app-admin/puppet/puppet-7.9.0-r1.ebuild
+++ b/app-admin/puppet/puppet-7.9.0-r1.ebuild
@@ -8,7 +8,7 @@ RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 RUBY_FAKEGEM_TASK_DOC="doc:all"
 RUBY_FAKEGEM_EXTRAINSTALL="locales"
 
-inherit ruby-fakegem tmpfiles
+inherit ruby-fakegem systemd tmpfiles
 
 DESCRIPTION="A system automation and configuration management software."
 HOMEPAGE="https://puppet.com/";
@@ -81,8 +81,7 @@ all_ruby_install() {
        all_fakegem_install
 
        # systemd stuffs
-       insinto /usr/lib/systemd/system
-       doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
+       systemd_dounit "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
 
        # tmpfiles stuff
        newtmpfiles "${FILESDIR}/tmpfiles.d" "puppet.conf"

Reply via email to