commit:     94c4dfe6448d8dc13a7e948143a6827ca060260c
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 27 17:15:37 2016 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 21:49:54 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94c4dfe6

app-admin/puppet: bup, also for bug 581372

Package-Manager: portage-2.2.26

 app-admin/puppet/Manifest            |   2 +
 app-admin/puppet/puppet-3.8.7.ebuild | 189 +++++++++++++++++++++++++++++++++++
 app-admin/puppet/puppet-4.4.2.ebuild | 175 ++++++++++++++++++++++++++++++++
 3 files changed, 366 insertions(+)

diff --git a/app-admin/puppet/Manifest b/app-admin/puppet/Manifest
index a87fa8a..91fda48 100644
--- a/app-admin/puppet/Manifest
+++ b/app-admin/puppet/Manifest
@@ -5,8 +5,10 @@ DIST puppet-3.8.2.tar.gz 2637591 SHA256 
5a89c623f22fc96a2919801ff874b10f8f1a66e9
 DIST puppet-3.8.3.tar.gz 2638669 SHA256 
bbdf5e32428fe005ea7279e9396bfcdf2c9b112763595fbfed48fb599108df7f SHA512 
8f955c68556a835de738cf5f34cefd916392145853cd59108af26cb5c23b28740cdd078ac33b3171280ac691884c073c53d230641c88484561ac463bca094da6
 WHIRLPOOL 
2ff3181a3ea11d4b25d8499c3984f22e530e94ccc5a87e668b758a55f3c9091ca3d344afc62fb0f08b1835d5668b2f90e26ddf2560111fb52c0292b511301cd2
 DIST puppet-3.8.4.tar.gz 2639537 SHA256 
19e83ebbbf0933a9df6696255d7ff4d65e3daba1ed8dacf87f16a87ae40a7ad7 SHA512 
bcd4251f56292529973c1694d4c1b0673e01cc6525c3fda8415e3b69b03861f0c1c168911b47c1372eeecd54c5eb2efc67ae23fd9ca0329b821b6f1b1e4e641a
 WHIRLPOOL 
8088df2bcfa2f2ed5be8f0769c45d70d5b8496c59f84217299d0df9b143f7551c2fb3a86edc467dfdaca6574a57e7fe4a8b89e9a376e991385650f6ce4dc9f21
 DIST puppet-3.8.5.tar.gz 2640987 SHA256 
ecba7c70e32c3da6682f9c4706c01cc588a5614759a864446e9fbd2449c6305c SHA512 
9c17508032ab4306c0ec1d2e79e1c3548a1da6c875c61155e597642cc901d0639eb99543084a6f88c5826b5faa5af83eaf936672e80a32bf27cf45f545e7d859
 WHIRLPOOL 
46a227365316c913f16a3b02bc13fd3b47ace497c406a14309d480c49881665d0ca9a0d86fae8a3761d6beb159b222dfdd033e0c1cdb2aaeadd62741c232a50f
+DIST puppet-3.8.7.tar.gz 2650247 SHA256 
50460a3dd8d25118e25eb01178d09743dabc01cd185f6b2cc723bae21ff023c2 SHA512 
f86568d4f33c8c18da270e089e1274ce2e3c705c116b078531bb66656f0bbb9a2fc95effbb8bf5355a082d4f32ce5b44e7f6e316937164aa0d71dd47e654c618
 WHIRLPOOL 
6e3b754f9e6f40c6037652dc7d746e616871a653640e2a91ab7dd3e70b4240c0b377d0f79c543ca95c5d661046c6431e30f263e0f18998cac0ca3089a4634273
 DIST puppet-4.0.0.tar.gz 2498445 SHA256 
c02a5cceb68d6c26228c242a312d68cf054233842e914e9d3aec32b38034e013 SHA512 
c8ec0771105e83498f7558e1dfa8679d94cb2d526589041319f35cce214a4c8602ebf8541a15fa64ce542168d101042153815887fb8350bce0c4371c490f396f
 WHIRLPOOL 
af53d8b14b7110e6648873e9822de37a8bb17b7f635800d9a9fb1fff7df22000cd13604b45913ddddbae58b7af198c80e84c001cc8b6d1643db9ead4ece42bb7
 DIST puppet-4.1.0.tar.gz 2532579 SHA256 
a168ac45a7b25932dfc78bd5da3efe41363e239c7361dd5c4f91615dc17bb275 SHA512 
85ba32fb3a7e9f3413f201263943411fbb6b57a4aa13461954b32c1095b06d04f26288a216c5624290cf89d09183bc86bb5f57769fe2ccadc44bf57cd601f5d3
 WHIRLPOOL 
5288b3204a5c5b96da4eabdee19c1156e71b3a76662d8d28fc8e43988e76ca52618d423c207c1a25d5d92638c559db76ee3c8ce336286d3a5e875c1dc538f8b8
 DIST puppet-4.2.1.tar.gz 2546267 SHA256 
519842dfa03ff78c94e77fb28867aef12933691b9e2ce41788f80c5c2865fe7e SHA512 
d4ce3f6cd0fbca4270a9121671c27985c9aaa5360a1a317afcc8f79cd81d285e1661cc77d50dda47abd8e50309762d5931545ea4d675b9fb6c32b612e570fd3d
 WHIRLPOOL 
492294158f7f5eb78b93098c759c97ca53a09fc7b24a8350dfd76220a1d578f78375ba3bd9d618b97299931001af83cc5475c4f6ad9bbb1c3d9744fa07585bfd
 DIST puppet-4.2.2.tar.gz 2550591 SHA256 
2d34cda2c65c885ba16e6644edd7733d55e6a0e1011a1f0f7fe80b411affc348 SHA512 
63fdbce7839fe1638c22129d22bf2aeef29838adceb6c53aaaf54acc7c9d2957ed559e3625a13dfa1f35b556791de0232868f5ecdc439be95b0b64bea097d217
 WHIRLPOOL 
e2f579efbfc3fbab35ee3a23f40a396b0326484c935eaacead503848abc8406fe705701a2ab7eaf28e070feedef7ac4467d4bbf3412f5999091c809c88550c4c
 DIST puppet-4.4.1.tar.gz 2675495 SHA256 
a8b15fc035acd56711fdc6160cfbcae455f9f2708ed49ee8c937d93aa7d1c291 SHA512 
d9ba703dc0544c5feddbd6c8f28eddba330cc1906e010cf3fc703541ed2d8595262dac56dbdd3ade49d652e3f55942115494928dc40bfe07df4d1b558577787c
 WHIRLPOOL 
11fb2df07ac621cc4a28bcc83e89cd815e609467a0e7d86e15220963b3c907ae1ba772ff313a8ec7a578c0a7299b95625f311d3cb0ef6936e3fcde9bebd28f79
+DIST puppet-4.4.2.tar.gz 2680253 SHA256 
90ea74703b415965def15566a6d709fbd781a1e21589688c22d2f1bab4688860 SHA512 
38c4e4e94693e8f3131aba44ad8b03437cd6896f8266e6f9d6434e355f044c87173034bbd336c33e5848692de60c5b4612141128a95a3d088947e72f90d13bc1
 WHIRLPOOL 
c7d06954d1a9b46cc7f56e73da88dd3297179f1f7ede646601b6305940e200f29bf7047e494df3be12e76b0640673d616058055bc4887d3e296a5372daeab0fd

diff --git a/app-admin/puppet/puppet-3.8.7.ebuild 
b/app-admin/puppet/puppet-3.8.7.ebuild
new file mode 100644
index 0000000..104bf83
--- /dev/null
+++ b/app-admin/puppet/puppet-3.8.7.ebuild
@@ -0,0 +1,189 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+USE_RUBY="ruby20 ruby21"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+
+inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator
+
+DESCRIPTION="A system automation and configuration management software"
+HOMEPAGE="http://puppetlabs.com/";
+SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz";
+
+LICENSE="Apache-2.0 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite 
vim-syntax xemacs"
+
+ruby_add_rdepend "
+       dev-ruby/hiera
+       >=dev-ruby/rgen-0.7.0
+       >=dev-ruby/facter-1.6.2 <dev-ruby/facter-3
+       dev-ruby/json
+       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"
+
+ruby_add_bdepend "test? ( dev-ruby/mocha )"
+
+DEPEND="${DEPEND}
+       emacs? ( virtual/emacs )
+       xemacs? ( app-editors/xemacs )"
+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"
+
+SITEFILE="50${PN}-mode-gentoo.el"
+
+pkg_setup() {
+       enewgroup puppet
+       enewuser puppet -1 -1 /var/lib/puppet puppet
+}
+
+all_ruby_prepare() {
+       # Avoid spec that require unpackaged json-schema.
+       rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
+
+       # Avoid Rails specs to avoid this dependency and because they
+       # currently fail against Rails 4.1.
+       find spec -type f -name '*rails*' -o -name '*active_record*' | xargs rm 
|| die
+       rm -r spec/unit/rails || die
+       rm spec/unit/parser/collector_spec.rb || die
+
+       # 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 
spec/integration/parser/future_compiler_spec.rb || die
+
+       # Avoid failing spec that need further investigation.
+       rm spec/unit/module_tool/metadata_spec.rb || die
+}
+
+all_ruby_compile() {
+       if use emacs ; then
+               elisp-compile ext/emacs/puppet-mode.el
+       fi
+
+       if use xemacs ; then
+               # Create a separate version for xemacs to be able to install
+               # emacs and xemacs in parallel.
+               mkdir ext/xemacs
+               cp ext/emacs/* ext/xemacs/
+               xemacs-elisp-compile ext/xemacs/puppet-mode.el
+       fi
+}
+
+each_ruby_install() {
+       each_fakegem_install
+       #${RUBY} install.rb --destdir="${D}" install || die
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       #systemd stuffs
+       insinto /usr/lib/systemd/system
+       doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
+       insinto /usr/lib/tmpfiles.d
+       newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
+
+       newinitd "${FILESDIR}"/puppet.init-r1 puppet
+
+       # Initial configuration files
+       insinto /etc/puppet
+
+       # Location of log and data files
+       keepdir /var/log/puppet
+       fowners -R puppet:puppet /var/log/puppet
+
+       if use minimal ; then
+               rm "${ED}/etc/puppet/auth.conf"
+       else
+               insinto /usr/lib/systemd/system
+               doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service"
+               newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster
+               newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
+
+               insinto /etc/puppet
+
+               keepdir /etc/puppet/manifests
+               keepdir /etc/puppet/modules
+
+               keepdir /var/lib/puppet/ssl
+               keepdir /var/lib/puppet/facts
+               keepdir /var/lib/puppet/files
+               fowners -R puppet:puppet /var/lib/puppet
+               fperms 0750 /var/lib/puppet
+       fi
+       fperms 0750 /etc/puppet
+       fowners :puppet /etc/puppet
+
+       if use emacs ; then
+               elisp-install ${PN} ext/emacs/puppet-mode.el*
+               elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       fi
+
+       if use xemacs ; then
+               xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
+               xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       fi
+
+       if use ldap ; then
+               insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
+       fi
+
+       # ext and examples files
+       for f in $(find ext examples -type f) ; do
+               docinto "$(dirname ${f})"; dodoc "${f}"
+       done
+}
+
+pkg_postinst() {
+       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
+
+       if [ \
+               -f "${EPREFIX}/etc/puppet/puppetd.conf" -o \
+               -f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \
+               -f "${EPREFIX}/etc/puppet/puppetca.conf" \
+       ] ; then
+               elog
+               elog "Please remove deprecated config files."
+               elog "  /etc/puppet/puppetca.conf"
+               elog "  /etc/puppet/puppetd.conf"
+               elog "  /etc/puppet/puppetmasterd.conf"
+               elog
+       fi
+
+       if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then
+               elog
+               elog "If you're upgrading from 2.x then we strongly suggest you 
to read:"
+               elog "http://docs.puppetlabs.com/guides/upgrading.html";
+               elog
+       fi
+
+       use emacs && elisp-site-regen
+       use xemacs && xemacs-elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+       use xemacs && xemacs-elisp-site-regen
+}

diff --git a/app-admin/puppet/puppet-4.4.2.ebuild 
b/app-admin/puppet/puppet-4.4.2.ebuild
new file mode 100644
index 0000000..dc356cf
--- /dev/null
+++ b/app-admin/puppet/puppet-4.4.2.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+USE_RUBY="ruby20 ruby21"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator
+
+DESCRIPTION="A system automation and configuration management software."
+HOMEPAGE="http://puppetlabs.com/";
+SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz";
+
+LICENSE="Apache-2.0 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax 
xemacs"
+RESTRICT="test"
+
+ruby_add_rdepend "
+       dev-ruby/hiera
+       >=dev-ruby/rgen-0.6.5
+       dev-ruby/json
+       >=dev-ruby/facter-3.0.0
+       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"
+
+ruby_add_bdepend "
+       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
+
+DEPEND+=" ${DEPEND}
+       emacs? ( virtual/emacs )
+       xemacs? ( app-editors/xemacs )"
+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"
+
+SITEFILE="50${PN}-mode-gentoo.el"
+
+pkg_setup() {
+       enewgroup puppet
+       enewuser puppet -1 -1 /var/lib/puppet puppet
+}
+
+all_ruby_prepare() {
+       # Avoid spec that require unpackaged json-schema.
+       rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
+
+       # can't be run within portage.
+       epatch "${FILESDIR}/puppet-fix-tests-4.x.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
+}
+
+all_ruby_compile() {
+       if use emacs ; then
+               elisp-compile ext/emacs/puppet-mode.el
+       fi
+
+       if use xemacs ; then
+               # Create a separate version for xemacs to be able to install
+               # emacs and xemacs in parallel.
+               mkdir ext/xemacs
+               cp ext/emacs/* ext/xemacs/
+               xemacs-elisp-compile ext/xemacs/puppet-mode.el
+       fi
+}
+
+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
+       insinto /usr/lib/systemd/system
+       doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
+
+       # tmpfiles stuff
+       insinto /usr/lib/tmpfiles.d
+       newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
+
+       # openrc init stuff
+       newinitd "${FILESDIR}"/puppet.init-4.x puppet
+       newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
+       newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
+
+       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
+
+       if use emacs ; then
+               elisp-install ${PN} ext/emacs/puppet-mode.el*
+               elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       fi
+
+       if use xemacs ; then
+               xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
+               xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       fi
+
+       if use ldap ; then
+               insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
+       fi
+
+       # ext and examples files
+       for f in $(find ext examples -type f) ; do
+               docinto "$(dirname ${f})"; dodoc "${f}"
+       done
+}
+
+pkg_postinst() {
+       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
+
+       if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then
+               elog
+               elog "If you're upgrading from 3.x then please move everything 
in /etc/puppet to"
+               elog "/etc/puppetlabs/puppet"
+               elog "Also, puppet now uses config directories for modules and 
manifests."
+               elog "See 
https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html";
+               elog "and 
https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html";
+               elog "for more information."
+               elog
+       fi
+
+       use emacs && elisp-site-regen
+       use xemacs && xemacs-elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+       use xemacs && xemacs-elisp-site-regen
+}

Reply via email to