diff options
Diffstat (limited to 'app-admin/puppet')
-rw-r--r-- | app-admin/puppet/Manifest | 4 | ||||
-rw-r--r-- | app-admin/puppet/metadata.xml | 1 | ||||
-rw-r--r-- | app-admin/puppet/puppet-8.0.0.ebuild | 127 |
3 files changed, 131 insertions, 1 deletions
diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest index 243f618015c0..bdb87313a830 100644 --- a/app-admin/puppet/Manifest +++ b/app-admin/puppet/Manifest @@ -3,6 +3,8 @@ AUX puppet.init 760 BLAKE2B 1803b602178f711cb4a0784a8e74e5bc63b66db11ce4a9855f76 AUX tmpfiles.d-2 35 BLAKE2B 333994788552e5c52273752f4e3c2947666737d03f9d340e16ada790607efe77da1ba9bb4852bc8274174fbb96ce0c7ae81062f7197e63ea4701e539b2650b3b SHA512 fdf00147c497bd822a14f0e42bad825a43ce0977ec6c0265d267dedeef56295e3ce319f7972d0ec2ab9f04f2407856947f4261d6e62054a36c6e1672b45f86f0 DIST puppet-7.23.0.tar.gz 2820654 BLAKE2B c9e2b544400c7fa9e59dd1d40bf89d1444ee62664b11e7aafa30aecd5fd14aa217dfe0bc24795a951c5e04b04762adb0239f6d7289b431b8f2a040716e95c642 SHA512 a66ef2bdbe38741a176e825cf7cdf117616459548731d4f5482b49263b08dcb3550305e5f0e35d228f873b330b730b682c02d38b4243f5f8bb4a190ed0f60310 DIST puppet-7.24.0.tar.gz 2823083 BLAKE2B f4a3862153a01b1d5ce1cc9d72a2446d91346c5e8ed762f8aeae260a67bd583c277cd4ea0f207021057d40c69078add06af88978522706dea59796bdd6071070 SHA512 bb881e7523fce72ca8941d363ebc12f0172aff61a28d49465b7977fdf0d004575f5677fad3f0858db109b1cf85e4d870becdaa7c6687db32eb6eecf849ed25e9 +DIST puppet-8.0.0.tar.gz 2874596 BLAKE2B 64a609c0375c942520f17bd6281225568b9803cd7af3e9f4da8311eb4f2680184174b0b5c992b243ba9680912b77038934bb3506ae28a964c64b0f1f8feca62e SHA512 78ba9d603831874fbecca7ce3e2802ed54188a71ad7d6f7a24fa3390330e41a7b43b074c6c51e32cfdf10ff92f6b087f8fbe9220ea65efb917f517776451ef56 EBUILD puppet-7.23.0-r1.ebuild 3667 BLAKE2B 596aba703f8e8154cde0c6dd8d11cde9118aac72546a3579bfbe43e69748b80e89ffed85baf5e0be36f5cb3e969837fe731523827581a60535df6f43ba9a5691 SHA512 9db45b40a7c9b7367583181a28dc5901c845fe814298a48fe1fe2ea9b3d7eec9c55ab3076f934902f1c8885deffc89eac90e8fa13d6a4fdf16e313f031d3cc6f EBUILD puppet-7.24.0.ebuild 3669 BLAKE2B 1d9bda9449626c6b1e23f33f2564557631cdd9236253e6b089544c29b89bb35691ca78dcc614f5bb80acbc5ba7f87280541eadb4112fe6b3c413db63abbf808d SHA512 52ed50c70e4e7580cd7d2df5430b07a0673841f53697fc60782855bf7dbaee53891fbfaa8995608e9447b8b2dd267977f5ccc27802e78e2638e622e670cb03c1 -MISC metadata.xml 1447 BLAKE2B 1ad2b749a8ed307103509bf28bff6ada3c49d4a972cffefee3a286b88e6fc5ab38db1f0fa5afccad74729d0db52786b877945afc2fcaef77e26c1df209a782f0 SHA512 5258a5083e6155d15286a10e1d71d4969e806e2e9b9bdc8e3665e71209e069e23f4e5dba71dba002e47f6dbc75d7301065b1bb4e59097f3451fe1c6540da4785 +EBUILD puppet-8.0.0.ebuild 3487 BLAKE2B de2093b1da3465e92cccde2faeeb3cc59618347d2cfe3fedf8b42668b9edca3c3c1f6898508928b2cc3c60d7b588687cba1ce8d9db6939e78b43f56d5fb14794 SHA512 f5e66a85e49e162508ea910e82f2e8fc93e381c83e46cda5f11a86fe01e523e0ae900345d676f7c4459dd8ca1b6be6303c63b6fe87329d0dc606476e83418435 +MISC metadata.xml 1496 BLAKE2B cc2549141aaf5623f65be274fa8195fe6ee2826620050284ab0a7f60ba04832ecf8fe0e0890c470c98095946d1e4e7a0ef1fabd4d400c47d086fe173769f3d8c SHA512 1217b23c939409ae6cd15286b3304388893970276c80bf11284769946856ba1db20ea537fee5b7b2183305a24c88c926804e21f246f508e40cde41f45f1490bf diff --git a/app-admin/puppet/metadata.xml b/app-admin/puppet/metadata.xml index 4db8d942540d..8f56170190b1 100644 --- a/app-admin/puppet/metadata.xml +++ b/app-admin/puppet/metadata.xml @@ -29,6 +29,7 @@ <!-- <flag name='puppetdb'>Enable puppetdb support</flag> --> <flag name="augeas">Enable augeas support</flag> <flag name="diff">Enable diff support</flag> + <flag name="hiera">Enable hiera support</flag> <flag name="rrdtool">Enable rrdtool support</flag> <flag name="shadow">Enable shadow support</flag> </use> diff --git a/app-admin/puppet/puppet-8.0.0.ebuild b/app-admin/puppet/puppet-8.0.0.ebuild new file mode 100644 index 000000000000..9a3ead6bacc9 --- /dev/null +++ b/app-admin/puppet/puppet-8.0.0.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +USE_RUBY="ruby27 ruby30 ruby31" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_TASK_DOC="doc:all" +RUBY_FAKEGEM_EXTRAINSTALL="locales" + +inherit ruby-fakegem systemd tmpfiles + +DESCRIPTION="A system automation and configuration management software" +HOMEPAGE="https://puppet.com/" +SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="augeas diff doc emacs hiera ldap rrdtool selinux shadow sqlite vim-syntax" +RESTRICT="test" + +# <dev-ruby/concurrent-ruby-1.2 for bug #900206 +# - https://tickets.puppetlabs.com/browse/PUP-11722 (workaround, pinning) +# - https://tickets.puppetlabs.com/browse/PUP-11723 (bug for fixing the pinning) +ruby_add_rdepend " + hiera? ( dev-ruby/hiera ) + dev-ruby/json:= + dev-ruby/semantic_puppet + >=dev-ruby/facter-3.0.0 + <dev-ruby/concurrent-ruby-1.2 + augeas? ( dev-ruby/ruby-augeas ) + diff? ( dev-ruby/diff-lcs ) + doc? ( dev-ruby/rdoc ) + ldap? ( dev-ruby/ruby-ldap ) + shadow? ( dev-ruby/ruby-shadow ) + sqlite? ( dev-ruby/sqlite3 ) + virtual/ruby-ssl + dev-ruby/hocon" + +ruby_add_bdepend " + doc? ( dev-ruby/yard ) + test? ( + dev-ruby/mocha + dev-ruby/rack + dev-ruby/rspec-its + )" +# this should go in the above lists, but isn't because of test deps not being keyworded +# dev-ruby/rspec-collection_matchers + +RDEPEND+=" ${RDEPEND} + rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) + selinux? ( + sys-libs/libselinux[ruby] + sec-policy/selinux-puppet + ) + vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 ) + >=app-portage/eix-0.18.0 + acct-user/puppet + acct-group/puppet" +PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )" + +all_ruby_prepare() { + # Avoid spec that require unpackaged json-schema. + rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die + + # fix systemd path + eapply -p0 "${FILESDIR}/puppet-systemd.patch" + + # Avoid specs that can only run in the puppet.git repository. This + # should be narrowed down to the specific specs. + rm spec/integration/parser/compiler_spec.rb || die + + # Avoid failing spec that need further investigation. + rm spec/unit/module_tool/metadata_spec.rb || die +} + +each_ruby_install() { + each_fakegem_install +# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" \ +# "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}" +} + +all_ruby_install() { + all_fakegem_install + + # systemd stuffs + systemd_dounit "${WORKDIR}/all/${P}/ext/systemd/puppet.service" + + # tmpfiles stuff + newtmpfiles "${FILESDIR}/tmpfiles.d-2" "puppet.conf" + + # openrc init stuff + newinitd "${FILESDIR}"/puppet.init puppet + + keepdir /etc/puppetlabs/puppet/ssl + + keepdir /var/lib/puppet/facts + keepdir /var/lib/puppet/files + fowners -R puppet:puppet /var/lib/puppet + + fperms 0750 /var/lib/puppet + + fperms 0750 /etc/puppetlabs + fperms 0750 /etc/puppetlabs/puppet + fperms 0750 /etc/puppetlabs/puppet/ssl + fowners -R :puppet /etc/puppetlabs + fowners -R :puppet /var/lib/puppet + + # ext and examples files + for f in $(find ext examples -type f) ; do + docinto "$(dirname ${f})" + dodoc "${f}" + done +} + +pkg_postinst() { + tmpfiles_process puppet.conf + + elog + elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" + elog "cause puppet to hang while installing packages." + elog + elog "Portage Puppet module with Gentoo-specific resources:" + elog "http://forge.puppetlabs.com/gentoo/portage" + elog +} |