550 changed files with 4661 additions and 6909 deletions
-
BINManifest.files.gz
-
BINapp-admin/Manifest.gz
-
1app-admin/ansible/Manifest
-
68app-admin/ansible/ansible-2.9.2.ebuild
-
2app-admin/ansible/ansible-2.9.3.ebuild
-
2app-admin/packagekit-qt/packagekit-qt-1.0.1-r1.ebuild
-
2app-admin/puppet-agent/Manifest
-
77app-admin/puppet-agent/puppet-agent-6.11.1-r1.ebuild
-
79app-admin/puppet-agent/puppet-agent-6.11.1.ebuild
-
2app-admin/puppet-agent/puppet-agent-6.12.0.ebuild
-
3app-admin/puppet/Manifest
-
329app-admin/puppet/files/43e2c935252b995134ce353e5e6312cf77aea480.patch
-
18app-admin/puppet/files/puppet-fix-tests-4.7.0.patch
-
40app-admin/puppet/files/puppet.init
-
37app-admin/puppet/files/puppetmaster.init
-
1app-admin/puppet/metadata.xml
-
177app-admin/puppet/puppet-4.10.12.ebuild
-
139app-admin/puppet/puppet-6.10.1.ebuild
-
139app-admin/puppet/puppet-6.11.1.ebuild
-
2app-admin/puppet/puppet-6.12.0.ebuild
-
1app-admin/puppetdb/Manifest
-
92app-admin/puppetdb/puppetdb-6.7.2.ebuild
-
2app-admin/puppetdb/puppetdb-6.8.0.ebuild
-
1app-admin/puppetserver/Manifest
-
135app-admin/puppetserver/puppetserver-6.7.2.ebuild
-
2app-admin/puppetserver/puppetserver-6.8.0.ebuild
-
BINapp-arch/Manifest.gz
-
2app-arch/snappy/snappy-1.1.8.ebuild
-
BINapp-crypt/Manifest.gz
-
3app-crypt/acme/Manifest
-
69app-crypt/acme/acme-0.39.0.ebuild
-
69app-crypt/acme/acme-0.40.1.ebuild
-
69app-crypt/acme/acme-1.0.0.ebuild
-
2app-crypt/acme/acme-1.1.0.ebuild
-
1app-crypt/certbot-apache/Manifest
-
39app-crypt/certbot-apache/certbot-apache-1.0.0.ebuild
-
2app-crypt/certbot-apache/certbot-apache-1.1.0.ebuild
-
10app-crypt/certbot-dns-nsone/certbot-dns-nsone-0.39.0-r1.ebuild
-
1app-crypt/certbot-nginx/Manifest
-
34app-crypt/certbot-nginx/certbot-nginx-1.0.0.ebuild
-
2app-crypt/certbot-nginx/certbot-nginx-1.1.0.ebuild
-
3app-crypt/certbot/Manifest
-
50app-crypt/certbot/certbot-0.39.0.ebuild
-
50app-crypt/certbot/certbot-0.40.1.ebuild
-
51app-crypt/certbot/certbot-1.0.0-r1.ebuild
-
2app-crypt/certbot/certbot-1.1.0.ebuild
-
BINapp-editors/Manifest.gz
-
2app-editors/emacs/emacs-23.4-r18.ebuild
-
2app-editors/emacs/emacs-24.5-r7.ebuild
-
2app-editors/emacs/emacs-25.3-r6.ebuild
-
2app-editors/emacs/emacs-26.2.ebuild
-
2app-editors/emacs/emacs-26.3-r1.ebuild
-
2app-editors/emacs/emacs-27.0.50_pre20191223.ebuild
-
2app-editors/emacs/emacs-27.0.9999-r1.ebuild
-
2app-editors/emacs/emacs-28.0.9999.ebuild
-
BINapp-emulation/Manifest.gz
-
2app-emulation/wine-staging/Manifest
-
617app-emulation/wine-staging/wine-staging-5.2.ebuild
-
1app-emulation/wine-vanilla/Manifest
-
538app-emulation/wine-vanilla/wine-vanilla-5.2.ebuild
-
BINapp-eselect/Manifest.gz
-
2app-eselect/eselect-python/eselect-python-20190417.ebuild
-
BINapp-misc/Manifest.gz
-
2app-misc/screenfetch/screenfetch-3.9.1.ebuild
-
BINapp-shells/Manifest.gz
-
2app-shells/bash-completion/bash-completion-2.10.ebuild
-
4app-shells/zsh/Manifest
-
211app-shells/zsh/zsh-5.6.2.ebuild
-
7app-shells/zsh/zsh-5.8.ebuild
-
BINapp-text/Manifest.gz
-
2app-text/calibre/calibre-4.10.1-r2.ebuild
-
2app-text/calibre/calibre-4.9.1-r2.ebuild
-
4app-text/catdoc/catdoc-0.95-r1.ebuild
-
4app-text/cb2bib/cb2bib-2.0.0.ebuild
-
BINdev-cpp/Manifest.gz
-
2dev-cpp/lucene++/lucene++-3.0.7-r2.ebuild
-
BINdev-db/Manifest.gz
-
2dev-db/mariadb-connector-c/mariadb-connector-c-3.1.6.ebuild
-
2dev-db/mysql-connector-c++/mysql-connector-c++-8.0.19.ebuild
-
2dev-db/mysql-connector-c/mysql-connector-c-8.0.19.ebuild
-
2dev-db/mysql/mysql-5.7.29.ebuild
-
2dev-db/mysql/mysql-8.0.19-r1.ebuild
-
BINdev-libs/Manifest.gz
-
2dev-libs/kpeoplevcard/kpeoplevcard-0.1.ebuild
-
2dev-libs/kuserfeedback/kuserfeedback-1.0.0.ebuild
-
2dev-libs/libedit/libedit-20191211.3.1.ebuild
-
1dev-libs/libfilezilla/Manifest
-
39dev-libs/libfilezilla/libfilezilla-0.20.0.ebuild
-
2dev-libs/libnatspec/libnatspec-0.3.0.ebuild
-
2dev-libs/qtkeychain/qtkeychain-0.10.0.ebuild
-
2dev-libs/spdlog/spdlog-1.5.0.ebuild
-
BINdev-ml/Manifest.gz
-
5dev-ml/camlp5/Manifest
-
72dev-ml/camlp5/camlp5-6.17.ebuild
-
68dev-ml/camlp5/camlp5-7.00.ebuild
-
68dev-ml/camlp5/camlp5-7.01.ebuild
-
68dev-ml/camlp5/camlp5-7.03.ebuild
-
48dev-ml/camlp5/camlp5-7.10.ebuild
-
2dev-ml/camlp5/camlp5-7.11.ebuild
-
1dev-ml/camlzip/Manifest
@ -1,4 +1,3 @@ |
|||
DIST ansible-2.9.2.tar.gz 14157188 BLAKE2B 4c1207bd43f7797d8d9cb1d4612e866eebbf8c19ee060cf1eb7daa68415be5d7718c79d756454648e66a13434eacba6a07c8de31c4ec4b12e0474563d8844e46 SHA512 522dd84af9493ceafd95ff0fc806a671f3d1f10d0ca074ef41875eb966d39e64b834e0b98a35d81d9d9d96efef8069db604c8080ce8cbb1ce2e8b13bf5c30a6a |
|||
DIST ansible-2.9.3.tar.gz 14170666 BLAKE2B bb27d249e2390888ee3c28fdb48c1ceff346d2903089c70b451f793742238498aed7c33be056cce9790f44f5cdb74b5020b6decf4f1242904bd9c8f7b5077ea0 SHA512 02cfa2c7c43506dc602e92aed66c920243222b82bc4852f1a4d786cd3ff26fe17eda18d35ac7301cd9bf26366df9b18776e2a27e8d54fc92c3128f52ec7f58e8 |
|||
DIST ansible-2.9.4.tar.gz 14170264 BLAKE2B e230837360d29df460906d118b3c2ebb9a9dc1ac2a4427809a16716e67a79db8e737ed1beca757bd8a75b631c8cb6c26e58b1caeaaeb613731d63031f1e4e34e SHA512 21020548100fc31b59d4ee1b461f2a14359f2f18752d431cd041eb987c8c8b308f1aa1687461a9b3f5a086485b77b3a38c8f006b942cc24cb2157b45e6582822 |
|||
DIST ansible-2.9.5.tar.gz 14186885 BLAKE2B c64fb384ab55c5b9cca753319fba911b8a40d634b59998f2e4c65ccafaa536788f3ac8c18a45a4b0d322ecca9b7fa2c580311a35a202ad70c2de2157ab04bfaf SHA512 cd2ce807b3136e2c02856339ea910b0a5cae8ca946da804ed7d3ec5725d3eff0fe5b4bd8527b2a17d6f3109e16859d52045b50f2ffd21169b30768e65b813407 |
@ -1,68 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
PYTHON_COMPAT=( python3_{6,7} ) |
|||
|
|||
inherit distutils-r1 eutils |
|||
|
|||
DESCRIPTION="Model-driven deployment, config management, and command execution framework" |
|||
HOMEPAGE="https://ansible.com/" |
|||
SRC_URI="https://releases.ansible.com/${PN}/${P}.tar.gz" |
|||
|
|||
LICENSE="GPL-3" |
|||
SLOT="0" |
|||
KEYWORDS="amd64 ~arm ~arm64 x86 ~x64-macos" |
|||
IUSE="doc test" |
|||
RESTRICT="test" |
|||
|
|||
RDEPEND=" |
|||
dev-python/paramiko[${PYTHON_USEDEP}] |
|||
dev-python/jinja[${PYTHON_USEDEP}] |
|||
dev-python/pyyaml[${PYTHON_USEDEP}] |
|||
dev-python/setuptools[${PYTHON_USEDEP}] |
|||
dev-python/cryptography[${PYTHON_USEDEP}] |
|||
dev-python/httplib2[${PYTHON_USEDEP}] |
|||
dev-python/six[${PYTHON_USEDEP}] |
|||
dev-python/netaddr[${PYTHON_USEDEP}] |
|||
dev-python/pexpect[${PYTHON_USEDEP}] |
|||
net-misc/sshpass |
|||
virtual/ssh |
|||
" |
|||
DEPEND=" |
|||
dev-python/setuptools[${PYTHON_USEDEP}] |
|||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}] |
|||
doc? ( |
|||
dev-python/sphinx[${PYTHON_USEDEP}] |
|||
dev-python/sphinx-notfound-page[${PYTHON_USEDEP}] |
|||
>=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] |
|||
) |
|||
test? ( |
|||
${RDEPEND} |
|||
dev-python/nose[${PYTHON_USEDEP}] |
|||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}] |
|||
dev-python/passlib[${PYTHON_USEDEP}] |
|||
dev-python/coverage[${PYTHON_USEDEP}] |
|||
dev-python/unittest2[${PYTHON_USEDEP}] |
|||
dev-vcs/git |
|||
)" |
|||
|
|||
python_compile_all() { |
|||
if use doc; then |
|||
cd docs/docsite || die |
|||
export CPUS=4 |
|||
emake -f Makefile.sphinx html |
|||
fi |
|||
} |
|||
|
|||
python_test() { |
|||
nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die |
|||
} |
|||
|
|||
python_install_all() { |
|||
use doc && local HTML_DOCS=( docs/docsite/_build/html/. ) |
|||
distutils-r1_python_install_all |
|||
|
|||
dodoc -r examples |
|||
} |
@ -1,4 +1,2 @@ |
|||
DIST puppet-agent_6.11.1-1stretch_amd64.deb 19948710 BLAKE2B 256588922cfacb1d8146cd1142c43d893a55dfb67d7f70ca311df6178e7f9a82a0702d8306e0575d3f817e53c091fd3010027512cb4ce95956bdfa968372cc21 SHA512 90c39d55a8761185f82c9ac106d696ae48a170679e6043b6b3db32254e918b1b9c1b32c4e9721e5751189f84f002415f21a627daa22738a8c1ae3cb5df514eb3 |
|||
DIST puppet-agent_6.11.1-1stretch_i386.deb 20327410 BLAKE2B c2a105139df97395f54bb54d7ac971d914dcd3b69614dca55fe443d9fe5360118b899610a6d2d85b96b8b45715864df608d0783a3aabad3a2ae5555a0d510a2e SHA512 5d1173534beb53325d3c7c2fd500a7bd82a389fa8cbc9e867f6acbb6c2647190339d3b096e8a054aff268f27c5bd7de65c371a474b9c8263e8fa36bab75452bd |
|||
DIST puppet-agent_6.12.0-1stretch_amd64.deb 20011636 BLAKE2B f83b795f07771d70220cac71d9b6d8ac7270a20fd5b78471ccef1c8ff802af3c035477f7741e775b10bc609d016a6e9fb79b199987e34b7d4f9a427c4adcd39f SHA512 dda8fa45b961d4a775da7eb128887eee3ceb9887d1062bc2fc748f6055811600162dfb2c4fbf87e401ad404813d2de0cc58ce7aade0aa23af637bb3707896126 |
|||
DIST puppet-agent_6.12.0-1stretch_i386.deb 20369446 BLAKE2B f01e39a1b307657569084e2ade1d41f17eefaa2048035f635437159e4373386c6413fa71756594d4a8748ffa0bbbdc2c54c72e696a390380bc9c57721ef010b3 SHA512 fc58e5ea22bd3dd36278db37e46d20809e284db5645ab680fb2c461ee9e4f9e635550f924278905ec13a8f9a71fbf604959e8522e4c0da52709c42f309a04921 |
@ -1,77 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
inherit eutils systemd unpacker user |
|||
|
|||
DESCRIPTION="general puppet client utils along with hiera and facter" |
|||
HOMEPAGE="https://puppetlabs.com/" |
|||
SRC_BASE="http://apt.puppetlabs.com/pool/stretch/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1stretch" |
|||
SRC_URI=" |
|||
amd64? ( ${SRC_BASE}_amd64.deb ) |
|||
x86? ( ${SRC_BASE}_i386.deb )" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
KEYWORDS="~amd64 ~x86" |
|||
IUSE="puppetdb selinux" |
|||
RESTRICT="strip" |
|||
|
|||
CDEPEND="!app-admin/puppet |
|||
!dev-ruby/hiera |
|||
!dev-ruby/facter |
|||
!app-emulation/virt-what" |
|||
|
|||
DEPEND=" |
|||
${CDEPEND} |
|||
app-admin/augeas" |
|||
RDEPEND="${CDEPEND} |
|||
app-portage/eix |
|||
sys-apps/dmidecode |
|||
sys-libs/glibc |
|||
sys-libs/readline:0/7 |
|||
sys-libs/ncurses:0[tinfo] |
|||
selinux? ( |
|||
sys-libs/libselinux[ruby] |
|||
sec-policy/selinux-puppet |
|||
) |
|||
puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )" |
|||
|
|||
S=${WORKDIR} |
|||
|
|||
pkg_setup() { |
|||
enewgroup puppet |
|||
enewuser puppet -1 -1 /var/run/puppet puppet |
|||
} |
|||
|
|||
src_install() { |
|||
# conf.d |
|||
doconfd etc/default/puppet |
|||
doconfd etc/default/pxp-agent |
|||
# logrotate.d |
|||
insinto /etc/logrotate.d |
|||
doins etc/logrotate.d/pxp-agent |
|||
# puppet itself |
|||
insinto /etc/puppetlabs |
|||
doins -r etc/puppetlabs/* |
|||
# logdir for systemd |
|||
dodir var/log/puppetlabs/puppet/ |
|||
fperms 0750 var/log/puppetlabs/puppet/ |
|||
# the rest |
|||
insinto /opt |
|||
dodir opt/puppetlabs/puppet/cache |
|||
doins -r opt/* |
|||
fperms 0750 /opt/puppetlabs/puppet/cache |
|||
# init |
|||
newinitd "${FILESDIR}/puppet.initd" puppet |
|||
systemd_dounit lib/systemd/system/puppet.service |
|||
systemd_dounit lib/systemd/system/pxp-agent.service |
|||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf |
|||
# symlinks |
|||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/" |
|||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper" |
|||
dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter |
|||
dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera |
|||
dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet |
|||
dosym ../../opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what |
|||
} |
@ -1,79 +0,0 @@ |
|||
# Copyright 1999-2019 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
inherit eutils systemd unpacker user |
|||
|
|||
DESCRIPTION="general puppet client utils along with hiera and facter" |
|||
HOMEPAGE="https://puppetlabs.com/" |
|||
SRC_BASE="http://apt.puppetlabs.com/pool/stretch/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1stretch" |
|||
SRC_URI=" |
|||
amd64? ( ${SRC_BASE}_amd64.deb ) |
|||
x86? ( ${SRC_BASE}_i386.deb )" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
KEYWORDS="amd64 x86" |
|||
IUSE="puppetdb selinux" |
|||
RESTRICT="strip" |
|||
|
|||
CDEPEND="!app-admin/augeas |
|||
!app-admin/puppet |
|||
!dev-ruby/hiera |
|||
!dev-ruby/facter |
|||
!app-emulation/virt-what" |
|||
|
|||
DEPEND=" |
|||
${CDEPEND}" |
|||
RDEPEND="${CDEPEND} |
|||
app-portage/eix |
|||
sys-apps/dmidecode |
|||
sys-libs/glibc |
|||
sys-libs/readline:0/7 |
|||
sys-libs/ncurses:0[tinfo] |
|||
selinux? ( |
|||
sys-libs/libselinux[ruby] |
|||
sec-policy/selinux-puppet |
|||
) |
|||
puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )" |
|||
|
|||
S=${WORKDIR} |
|||
|
|||
pkg_setup() { |
|||
enewgroup puppet |
|||
enewuser puppet -1 -1 /var/run/puppet puppet |
|||
} |
|||
|
|||
src_install() { |
|||
# conf.d |
|||
doconfd etc/default/puppet |
|||
doconfd etc/default/pxp-agent |
|||
# logrotate.d |
|||
insinto /etc/logrotate.d |
|||
doins etc/logrotate.d/pxp-agent |
|||
# puppet itself |
|||
insinto /etc/puppetlabs |
|||
doins -r etc/puppetlabs/* |
|||
# logdir for systemd |
|||
dodir var/log/puppetlabs/puppet/ |
|||
fperms 0750 var/log/puppetlabs/puppet/ |
|||
# the rest |
|||
insinto /opt |
|||
dodir opt/puppetlabs/puppet/cache |
|||
doins -r opt/* |
|||
fperms 0750 /opt/puppetlabs/puppet/cache |
|||
# init |
|||
newinitd "${FILESDIR}/puppet.initd" puppet |
|||
systemd_dounit lib/systemd/system/puppet.service |
|||
systemd_dounit lib/systemd/system/pxp-agent.service |
|||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf |
|||
# symlinks |
|||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/" |
|||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper" |
|||
dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter |
|||
dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera |
|||
dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet |
|||
dosym ../../opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what |
|||
dosym ../../opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse |
|||
dosym ../../opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool |
|||
} |
@ -1,6 +1,3 @@ |
|||
DIST puppet-4.10.12.tar.gz 3022218 BLAKE2B 03757857868b1544078ae5e40d6e438631c788f1b01a3e62ba90e477b754601d2c085228e084363ff20ee39728b02ebe8ca83e17f7c79dddae1c3968aef4e320 SHA512 ff7accf70b1d4de7282cf3b41246151c49c4758a41ace56a470e4723749638027011cf170747e66fa5812280e1612e754e12d92dd35fa6c93171f7187bb9cfa2 |
|||
DIST puppet-5.5.17.tar.gz 3090402 BLAKE2B 7722ec4196ee766c29eddd7dc73539a4a5a0e4cc781a84af25210488328b5ae01178ca64e8eef14152cbeca06dc8fe145b5e39ce6a120d7689fc32cbbbe16f9f SHA512 95c6cd836a9f732ccfe2d8b83096e79c32428c43390c0826663f896ca1388e1fe3b55d93a5a7548831e95de85247db717866c36786d591e207341c734d70168b |
|||
DIST puppet-5.5.18.tar.gz 2984835 BLAKE2B d5a1d023d3d26e04ccc81efa772131c06fc7ace8ec59c7efa97bddb775bb492d3256290824a87d54df5c28862cbba98c58cf41bb4a0c27a4128701652c06eee0 SHA512 86f210ee783ca36340b22463cd4ac237d8dc1c6a35526530af0696bb3f0373b0b22f690d3e3f8e31655ea182a33eb60b66b5826bd6c4d1b0059a8e46152416e6 |
|||
DIST puppet-6.10.1.tar.gz 2809383 BLAKE2B 1589dcfa7d73b81ab7fbc3fca4b2fe956f5d240d11583c484262d5243e4713bb4aa9cd5c655e9566468050ab2e5c0ec0cc720e3ff9088add0744e02147b4e3bb SHA512 211c9837eb4a77a54bf09811a1a84709eef06f17e0c5c9c598d01bce2e183e69974709ad4dfb8f5fecd7433c1ff52757aa699c623155d1a0742f2e07eaf2ec56 |
|||
DIST puppet-6.11.1.tar.gz 2816525 BLAKE2B c4b188d5bf76b70a2748b86df78f1ca6ab99951cbc3a16377d3f2d38e165bc78ef8e5648cb09264a25ae81ac4d379b9323b1f2bbdea6679292c2cf38cabee662 SHA512 f44196206331448651e0ff0e865b09c6ccbb19115edeba4c58c8a29aa35e7d76676d5a3cb35c51cd511a44115c9c9434f1f90d5cbb0a5551a4004741d305c879 |
|||
DIST puppet-6.12.0.tar.gz 2825392 BLAKE2B fdb7007ca337654f5ee89cd6f3beae300c3eb952570eaf1aa9baad407b84b418916e42aed63855bbb250f1d367be12f98261df54253f6438d33950134ef01cce SHA512 bcb77699f4a4a058ea0fa47ee2b449f19053e3ae859e3e30c65a57ad65fc052a4f05d7a932b9cc4b9974b36dc343ac482258ad8d5a44a151362df474b82c11fe |
@ -1,329 +0,0 @@ |
|||
diff --git a/lib/puppet/provider/package/portage.rb b/lib/puppet/provider/package/portage.rb
|
|||
index 374667c..12160c6 100644
|
|||
--- a/lib/puppet/provider/package/portage.rb
|
|||
+++ b/lib/puppet/provider/package/portage.rb
|
|||
@@ -2,14 +2,19 @@
|
|||
require 'fileutils' |
|||
|
|||
Puppet::Type.type(:package).provide :portage, :parent => Puppet::Provider::Package do |
|||
- desc "Provides packaging support for Gentoo's portage system."
|
|||
+ desc "Provides packaging support for Gentoo's portage system.
|
|||
|
|||
- has_features :versionable, :reinstallable
|
|||
+ This provider supports the `install_options` and `uninstall_options` attributes, which allows command-line
|
|||
+ flags to be passed to emerge. These options should be specified as a string (e.g. '--flag'), a hash
|
|||
+ (e.g. {'--flag' => 'value'}), or an array where each element is either a string or a hash."
|
|||
+
|
|||
+ has_features :install_options, :purgeable, :reinstallable, :uninstall_options, :versionable, :virtual_packages
|
|||
|
|||
{ |
|||
- :emerge => "/usr/bin/emerge",
|
|||
- :eix => "/usr/bin/eix",
|
|||
- :update_eix => "/usr/bin/eix-update",
|
|||
+ :emerge => '/usr/bin/emerge',
|
|||
+ :eix => '/usr/bin/eix',
|
|||
+ :qatom_bin => '/usr/bin/qatom',
|
|||
+ :update_eix => '/usr/bin/eix-update',
|
|||
}.each_pair do |name, path| |
|||
has_command(name, path) do |
|||
environment :HOME => '/' |
|||
@@ -24,15 +29,18 @@ def self.instances
|
|||
result_format = self.eix_result_format |
|||
result_fields = self.eix_result_fields |
|||
|
|||
+ limit = self.eix_limit
|
|||
version_format = self.eix_version_format |
|||
slot_versions_format = self.eix_slot_versions_format |
|||
+ installed_versions_format = self.eix_installed_versions_format
|
|||
+ installable_versions_format = self.eix_install_versions_format
|
|||
begin |
|||
- eix_file = File.directory?("/var/cache/eix") ? "/var/cache/eix/portage.eix" : "/var/cache/eix"
|
|||
+ eix_file = File.directory?('/var/cache/eix') ? '/var/cache/eix/portage.eix' : '/var/cache/eix'
|
|||
update_eix if !FileUtils.uptodate?(eix_file, %w{/usr/bin/eix /usr/portage/metadata/timestamp}) |
|||
|
|||
search_output = nil |
|||
- Puppet::Util.withenv :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format do
|
|||
- search_output = eix *(self.eix_search_arguments + ["--installed"])
|
|||
+ Puppet::Util.withenv :EIX_LIMIT => limit, :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format, :INSTALLEDVERSIONS => installed_versions_format, :STABLEVERSIONS => installable_versions_format do
|
|||
+ search_output = eix *(self.eix_search_arguments + ['--installed'])
|
|||
end |
|||
|
|||
packages = [] |
|||
@@ -57,65 +65,123 @@ def self.instances
|
|||
|
|||
def install |
|||
should = @resource.should(:ensure) |
|||
- name = package_name
|
|||
- unless should == :present or should == :latest
|
|||
- # We must install a specific version
|
|||
- name = package_atom_with_version(should)
|
|||
+ cmd = %w{}
|
|||
+ name = qatom[:category] ? "#{qatom[:category]}/#{qatom[:pn]}" : qatom[:pn]
|
|||
+ name = qatom[:pfx] + name if qatom[:pfx]
|
|||
+ name = name + '-' + qatom[:pv] if qatom[:pv]
|
|||
+ name = name + '-' + qatom[:pr] if qatom[:pr]
|
|||
+ name = name + qatom[:slot] if qatom[:slot]
|
|||
+ cmd << '--update' if [:latest].include?(should)
|
|||
+ cmd += install_options if @resource[:install_options]
|
|||
+ cmd << name
|
|||
+ emerge *cmd
|
|||
+ end
|
|||
+
|
|||
+ def uninstall
|
|||
+ should = @resource.should(:ensure)
|
|||
+ cmd = %w{--rage-clean}
|
|||
+ name = qatom[:category] ? "#{qatom[:category]}/#{qatom[:pn]}" : qatom[:pn]
|
|||
+ name = qatom[:pfx] + name if qatom[:pfx]
|
|||
+ name = name + '-' + qatom[:pv] if qatom[:pv]
|
|||
+ name = name + '-' + qatom[:pr] if qatom[:pr]
|
|||
+ name = name + qatom[:slot] if qatom[:slot]
|
|||
+ cmd += uninstall_options if @resource[:uninstall_options]
|
|||
+ cmd << name
|
|||
+ if [:purged].include?(should)
|
|||
+ Puppet::Util.withenv :CONFIG_PROTECT => "-*" do
|
|||
+ emerge *cmd
|
|||
+ end
|
|||
+ else
|
|||
+ emerge *cmd
|
|||
end |
|||
- emerge name
|
|||
end |
|||
|
|||
- # The common package name format.
|
|||
- def package_name
|
|||
- @resource[:category] ? "#{@resource[:category]}/#{@resource[:name]}" : @resource[:name]
|
|||
+ def reinstall
|
|||
+ self.install
|
|||
end |
|||
|
|||
- def package_name_without_slot
|
|||
- package_name.sub(self.class.slot_pattern, '')
|
|||
+ def update
|
|||
+ self.install
|
|||
end |
|||
|
|||
- def package_slot
|
|||
- if match = package_name.match(self.class.slot_pattern)
|
|||
- match[1]
|
|||
+ def qatom
|
|||
+ output_format = self.qatom_output_format
|
|||
+ result_format = self.qatom_result_format
|
|||
+ result_fields = self.qatom_result_fields
|
|||
+ @atom ||= begin
|
|||
+ search_output = nil
|
|||
+ package_info = {}
|
|||
+ # do the search
|
|||
+ search_output = qatom_bin *([@resource[:name], '--format', output_format])
|
|||
+ # verify if the search found anything
|
|||
+ match = result_format.match(search_output)
|
|||
+ if match
|
|||
+ result_fields.zip(match.captures) do |field, value|
|
|||
+ # some fields can be empty or (null) (if we are not passed a category in the package name for instance)
|
|||
+ if value == '(null)'
|
|||
+ package_info[field] = nil
|
|||
+ elsif !value or value.empty?
|
|||
+ package_info[field] = nil
|
|||
+ else
|
|||
+ package_info[field] = value
|
|||
+ end
|
|||
+ end
|
|||
+ end
|
|||
+ @atom = package_info
|
|||
+ rescue Puppet::ExecutionFailure => detail
|
|||
+ raise Puppet::Error.new(detail)
|
|||
end |
|||
end |
|||
|
|||
- def package_atom_with_version(version)
|
|||
- if slot = package_slot
|
|||
- "=#{package_name_without_slot}-#{version}:#{package_slot}"
|
|||
- else
|
|||
- "=#{package_name}-#{version}"
|
|||
- end
|
|||
+ def qatom_output_format
|
|||
+ '"[%{CATEGORY}] [%{PN}] [%{PV}] [%[PR]] [%[SLOT]] [%[pfx]] [%[sfx]]"'
|
|||
end |
|||
|
|||
- def uninstall
|
|||
- emerge "--unmerge", package_name
|
|||
+ def qatom_result_format
|
|||
+ /^\"\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\](.*)\"$/
|
|||
end |
|||
|
|||
- def reinstall
|
|||
- self.install
|
|||
+ def qatom_result_fields
|
|||
+ [:category, :pn, :pv, :pr, :slot, :pfx, :sfx]
|
|||
end |
|||
|
|||
- def update
|
|||
- self.install
|
|||
+ def self.get_sets
|
|||
+ @sets ||= begin
|
|||
+ @sets = emerge *(['--list-sets'])
|
|||
+ end
|
|||
end |
|||
|
|||
def query |
|||
+ limit = self.class.eix_limit
|
|||
result_format = self.class.eix_result_format |
|||
result_fields = self.class.eix_result_fields |
|||
|
|||
version_format = self.class.eix_version_format |
|||
slot_versions_format = self.class.eix_slot_versions_format |
|||
- search_field = package_name_without_slot.count('/') > 0 ? "--category-name" : "--name"
|
|||
- search_value = package_name_without_slot
|
|||
+ installed_versions_format = self.class.eix_installed_versions_format
|
|||
+ installable_versions_format = self.class.eix_install_versions_format
|
|||
+ search_field = qatom[:category] ? '--category-name' : '--name'
|
|||
+ search_value = qatom[:category] ? "#{qatom[:category]}/#{qatom[:pn]}" : qatom[:pn]
|
|||
+
|
|||
+ @eix_result ||= begin
|
|||
+ # package sets
|
|||
+ package_sets = []
|
|||
+ self.class.get_sets.each_line do |package_set|
|
|||
+ package_sets << package_set.to_s.strip
|
|||
+ end
|
|||
|
|||
- begin
|
|||
- eix_file = File.directory?("/var/cache/eix") ? "/var/cache/eix/portage.eix" : "/var/cache/eix"
|
|||
+ if @resource[:name].match(/^@/)
|
|||
+ if package_sets.include?(@resource[:name][1..-1].to_s)
|
|||
+ return({:name => "#{@resource[:name]}", :ensure => '9999', :version_available => nil, :installed_versions => nil, :installable_versions => "9999,"})
|
|||
+ end
|
|||
+ end
|
|||
+
|
|||
+ eix_file = File.directory?('/var/cache/eix') ? '/var/cache/eix/portage.eix' : '/var/cache/eix'
|
|||
update_eix if !FileUtils.uptodate?(eix_file, %w{/usr/bin/eix /usr/portage/metadata/timestamp}) |
|||
|
|||
search_output = nil |
|||
- Puppet::Util.withenv :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format do
|
|||
- search_output = eix *(self.class.eix_search_arguments + ["--exact",search_field,search_value])
|
|||
+ Puppet::Util.withenv :EIX_LIMIT => limit, :LASTVERSION => version_format, :LASTSLOTVERSIONS => slot_versions_format, :INSTALLEDVERSIONS => installed_versions_format, :STABLEVERSIONS => installable_versions_format do
|
|||
+ search_output = eix *(self.class.eix_search_arguments + ['--exact',search_field,search_value])
|
|||
end |
|||
|
|||
packages = [] |
|||
@@ -127,10 +193,19 @@ def query
|
|||
result_fields.zip(match.captures) do |field, value| |
|||
package[field] = value unless !value or value.empty? |
|||
end |
|||
- if package_slot
|
|||
- package[:version_available] = eix_get_version_for_slot(package[:slot_versions_available], package_slot)
|
|||
- package[:ensure] = eix_get_version_for_slot(package[:installed_slots], package_slot)
|
|||
+ # dev-lang python [3.4.5] [3.5.2] [2.7.12:2.7,3.4.5:3.4] [2.7.12:2.7,3.4.5:3.4,3.5.2:3.5] https://www.python.org/ An interpreted, interactive, object-oriented programming language
|
|||
+ # version_available is what we CAN install / update to
|
|||
+ # ensure is what is currently installed
|
|||
+ # This DOES NOT choose to install/upgrade or not, just provides current info
|
|||
+ # prefer checking versions to slots as versions are finer grained
|
|||
+ if qatom[:pv]
|
|||
+ package[:version_available] = eix_get_version_for_versions(package[:installable_versions], qatom[:pv])
|
|||
+ package[:ensure] = eix_get_version_for_versions(package[:installed_versions], qatom[:pv])
|
|||
+ elsif qatom[:slot]
|
|||
+ package[:version_available] = eix_get_version_for_slot(package[:slot_versions_available], qatom[:slot])
|
|||
+ package[:ensure] = eix_get_version_for_slot(package[:installed_slots], qatom[:slot])
|
|||
end |
|||
+
|
|||
package[:ensure] = package[:ensure] ? package[:ensure] : :absent |
|||
packages << package |
|||
end |
|||
@@ -138,10 +213,9 @@ def query
|
|||
|
|||
case packages.size |
|||
when 0 |
|||
- not_found_value = "#{@resource[:category] ? @resource[:category] : "<unspecified category>"}/#{@resource[:name]}"
|
|||
- raise Puppet::Error.new("No package found with the specified name [#{not_found_value}]")
|
|||
+ raise Puppet::Error.new("No package found with the specified name [#{@resource[:name]}]")
|
|||
when 1 |
|||
- return packages[0]
|
|||
+ @eix_result = packages[0]
|
|||
else |
|||
raise Puppet::Error.new("More than one package with the specified name [#{search_value}], please use the category parameter to disambiguate") |
|||
end |
|||
@@ -155,39 +229,73 @@ def latest
|
|||
end |
|||
|
|||
private |
|||
+ def eix_get_version_for_versions(versions, target)
|
|||
+ # [2.7.10-r1,2.7.12,3.4.3-r1,3.4.5,3.5.2] 3.5.2
|
|||
+ return nil if versions.nil?
|
|||
+ versions = versions.split(',')
|
|||
+ # [2.7.10-r1 2.7.12 3.4.3-r1 3.4.5 3.5.2]
|
|||
+ versions.find { |version| version == target }
|
|||
+ # 3.5.2
|
|||
+ end
|
|||
+
|
|||
+ private
|
|||
def eix_get_version_for_slot(versions_and_slots, slot) |
|||
+ # [2.7.12:2.7 3.4.5:3.4 3.5.2:3.5] 3.5
|
|||
return nil if versions_and_slots.nil? |
|||
- versions_and_slots = versions_and_slots.split(",")
|
|||
- versions_and_slots.map! { |version_and_slot| version_and_slot.split(":") }
|
|||
- version_for_slot = versions_and_slots.find { |version_and_slot| version_and_slot.last == slot }
|
|||
+ versions_and_slots = versions_and_slots.split(',')
|
|||
+ # [2.7.12:2.7 3.4.5:3.4 3.5.2:3.5]
|
|||
+ versions_and_slots.map! { |version_and_slot| version_and_slot.split(':') }
|
|||
+ # [2.7.12: 2.7
|
|||
+ # 3.4.5: 3.4
|
|||
+ # 3.5.2: 3.5]
|
|||
+ version_for_slot = versions_and_slots.find { |version_and_slot| version_and_slot.last == slot[1..-1] }
|
|||
+ # [3.5.2: 3.5]
|
|||
version_for_slot.first if version_for_slot |
|||
- end
|
|||
-
|
|||
- def self.slot_pattern
|
|||
- /:([\w+.\/*=-]+)$/
|
|||
+ # 3.5.2
|
|||
end |
|||
|
|||
def self.eix_search_format |
|||
- "'<category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] [<installedversions:LASTSLOTVERSIONS>] [<bestslotversions:LASTSLOTVERSIONS>] <homepage> <description>\n'"
|
|||
+ "'<category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] [<installedversions:LASTSLOTVERSIONS>] [<installedversions:INSTALLEDVERSIONS>] [<availableversions:STABLEVERSIONS>] [<bestslotversions:LASTSLOTVERSIONS>] <homepage> <description>\n'"
|
|||
end |
|||
|
|||
def self.eix_result_format |
|||
- /^(\S+)\s+(\S+)\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+(\S+)\s+(.*)$/
|
|||
+ /^(\S+)\s+(\S+)\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+\[(\S*)\]\s+(\S+)\s+(.*)$/
|
|||
end |
|||
|
|||
def self.eix_result_fields |
|||
- [:category, :name, :ensure, :version_available, :installed_slots, :slot_versions_available, :vendor, :description]
|
|||
+ # ensure:[3.4.5], version_available:[3.5.2], installed_slots:[2.7.12:2.7,3.4.5:3.4], installable_versions:[2.7.10-r1,2.7.12,3.4.3-r1,3.4.5,3.5.2] slot_versions_available:[2.7.12:2.7,3.4.5:3.4,3.5.2:3.5]
|
|||
+ [:category, :name, :ensure, :version_available, :installed_slots, :installed_versions, :installable_versions, :slot_versions_available, :vendor, :description]
|
|||
end |
|||
|
|||
def self.eix_version_format |
|||
- "{last}<version>{}"
|
|||
+ '{last}<version>{}'
|
|||
end |
|||
|
|||
def self.eix_slot_versions_format |
|||
- "{!first},{}<version>:<slot>"
|
|||
+ '{!first},{}<version>:<slot>'
|
|||
+ end
|
|||
+
|
|||
+ def self.eix_installed_versions_format
|
|||
+ '{!first},{}<version>'
|
|||
+ end
|
|||
+
|
|||
+ def self.eix_install_versions_format
|
|||
+ '{!first}{!last},{}{}{isstable}<version>{}'
|
|||
+ end
|
|||
+
|
|||
+ def self.eix_limit
|
|||
+ '0'
|
|||
end |
|||
|
|||
def self.eix_search_arguments |
|||
- ["--nocolor", "--pure-packages", "--format",self.eix_search_format]
|
|||
+ ['--nocolor', '--pure-packages', '--format', self.eix_search_format]
|
|||
+ end
|
|||
+
|
|||
+ def install_options
|
|||
+ join_options(@resource[:install_options])
|
|||
+ end
|
|||
+
|
|||
+ def uninstall_options
|
|||
+ join_options(@resource[:uninstall_options])
|
|||
end |
|||
end |
@ -1,18 +0,0 @@ |
|||
--- spec/unit/network/http/api/indirected_routes_spec.rb 2016-10-11 13:24:09.500955469 -0500
|
|||
+++ spec/unit/network/http/api/indirected_routes_spec.rb.new 2016-10-11 13:24:00.501700977 -0500
|
|||
@@ -139,15 +139,6 @@
|
|||
indirection, _, _, _ = handler.uri2indirection("GET", uri_escaped, params) |
|||
end |
|||
|
|||
- it "should not pass through an environment to check_authorization and fail if the environment is unknown" do
|
|||
- handler.expects(:check_authorization).with(anything,
|
|||
- anything,
|
|||
- Not(has_entry(:environment)))
|
|||
- expect(lambda { handler.uri2indirection("GET",
|
|||
- "#{master_url_prefix}/node/bar",
|
|||
- {:environment => 'bogus'}) }).to raise_error(not_found_error)
|
|||
- end
|
|||
-
|
|||
it "should not URI unescape the indirection key as passed through to a call to check_authorization" do |
|||
handler.expects(:check_authorization).with(anything, |
|||
anything, |
@ -1,40 +0,0 @@ |
|||
#!/sbin/openrc-run |
|||
# Copyright 1999-2010 Gentoo Foundation |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
depend() { |
|||
need localmount net |
|||
use dns logger puppetmaster netmount nfsmount |
|||
} |
|||
|
|||
checkconfig() { |
|||
if [ ! -d "${PUPPET_PID_DIR}" ] ; then |
|||
eerror "Please make sure PUPPET_PID_DIR is defined and points to a existing directory" |
|||
return 1 |
|||
fi |
|||
|
|||
return 0 |
|||
} |
|||
|
|||
start() { |
|||
checkconfig || return $? |
|||
|
|||
local options="" |
|||
[ -n "${PUPPET_EXTRA_OPTS}" ] && options="${options} ${PUPPET_EXTRA_OPTS}" |
|||
|
|||
ebegin "Starting puppet" |
|||
start-stop-daemon --start --quiet \ |
|||
--pidfile "${PUPPET_PID_DIR}/agent.pid" \ |
|||
--exec /usr/bin/puppetd -- ${options} |
|||
eend $? "Failed to start puppet" |
|||
} |
|||
|
|||
stop() { |
|||
ebegin "Stopping puppet" |
|||
start-stop-daemon --stop --quiet \ |
|||
--pidfile "${PUPPET_PID_DIR}/agent.pid" |
|||
local ret=$? |
|||
eend ${ret} "Failed to stop puppet" |
|||
rm -f "${PUPPET_PID_DIR}/agent.pid" |
|||
return ${ret} |
|||
} |
@ -1,37 +0,0 @@ |
|||
#!/sbin/openrc-run |
|||
# Copyright 1999-2013 Gentoo Foundation |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
if [ "${SVCNAME}" = "puppetmaster" ] ; then |
|||
PUPPETMASTER_PID="master" |
|||
else |
|||
PUPPETMASTER_PID="${SVCNAME#*.}" |
|||
fi |
|||
PUPPETMASTER_PID_DIR="${PUPPETMASTER_PID_DIR:-/var/run/puppet}" |
|||
pidfile="${PUPPETMASTER_PID_DIR}/${PUPPETMASTER_PID}.pid" |
|||
PUPPET_LOG_DIR="/var/log/puppet" |
|||
|
|||
command_args="master --pidfile ${pidfile} ${PUPPETMASTER_EXTRA_OPTS}" |
|||
if [ -n "${PUPPETMASTER_PORT}" ] ; then |
|||
command_args="${command_args} --masterport ${PUPPETMASTER_PORT}" |
|||
fi |
|||
|
|||
command="/usr/bin/puppet" |
|||
extra_started_commands="reload" |
|||
|
|||
depend() { |
|||
need localmount |
|||
use dns logger slapd netmount nfsmount |
|||
} |
|||
|
|||
start_pre() { |
|||
checkpath --directory --owner puppet:puppet "${PUPPETMASTER_PID_DIR}" |
|||
checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} |
|||
checkpath --file --owner puppet:puppet --mode 640 "${PUPPET_LOG_DIR}/masterhttp.log" |
|||
} |
|||
|
|||
reload() { |
|||
ebegin "Reloading ${SVCNAME}" |
|||
start-stop-daemon --signal HUP --pidfile "${pidfile}" |
|||
eend $? "Failed to stop ${SVCNAME}" |
|||
} |
@ -1,177 +0,0 @@ |
|||
# Copyright 1999-2019 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI="6" |
|||
|
|||
USE_RUBY="ruby23 ruby24" |
|||
|
|||
#RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
|||
|
|||
RUBY_FAKEGEM_EXTRAINSTALL="locales" |
|||
|
|||
inherit eutils user ruby-fakegem versionator |
|||
|
|||
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 ~hppa ~ppc ~ppc64 x86" |
|||
IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs" |
|||
RESTRICT="test" |
|||
|
|||
ruby_add_rdepend " |
|||
>=dev-ruby/gettext-setup-0.10:0 |
|||
>=dev-ruby/hiera-2.0 |
|||
>=dev-ruby/locale-2.1 |
|||
>=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:0.14 |
|||
# =dev-ruby/rack-1* |
|||
# dev-ruby/rspec-its |
|||
# dev-ruby/rspec-collection_matchers |
|||
# >=dev-ruby/vcr-2.9:2 |
|||
# >=dev-ruby/webmock-1.24:0 |
|||
# )" |
|||
|
|||
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" |
|||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )" |
|||
|
|||
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.7.0.patch" |
|||
|
|||
# fix systemd path |
|||
epatch "${FILESDIR}/puppet-systemd.patch" |
|||
|
|||
if use experimental; then |
|||
epatch "${FILESDIR}/43e2c935252b995134ce353e5e6312cf77aea480.patch" |
|||
fi |
|||
|
|||
# Use working version of mocha |
|||
sed -i -e '1igem "mocha", "~>0.14.0"; gem "rack", "~>1.0"' spec/spec_helper.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 || die |
|||
|
|||
# Avoid failing specs that need further investigation. |
|||
sed -i -e '/should resolve external facts/,/^ end/ s:^:#:' \ |
|||
spec/integration/indirector/facts/facter_spec.rb || die |
|||
sed -i -e "/describe 'cfacter'/,/^ end/ s:^:#:" spec/unit/defaults_spec.rb || die |
|||
rm -f spec/unit/indirector/ldap_spec.rb \ |
|||
spec/unit/parser/functions/create_resources_spec.rb || die |
|||
|
|||
# Avoid specs that rely on tools from other OSs |
|||
rm -f spec/unit/provider/package/{dnf,tdnf,yum}_spec.rb \ |
|||
spec/unit/provider/user/directoryservice_spec.rb || die |
|||
|
|||
# Avoid specs that depend on hiera-eyaml to avoid circular |
|||
# dependencies |
|||
rm -f spec/unit/functions/lookup_spec.rb || die |
|||
|
|||
# Avoid specs that fail due to an unpackaged file |
|||
sed -i -e '/when loading pp resource types using auto loading/,/^ end/ s:^:#:' spec/unit/pops/loaders/loaders_spec.rb || die |
|||
} |
|||
|
|||
all_ruby_compile() { |
|||
: |
|||
} |
|||
|
|||
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 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 |
|||
|
|||
local v |
|||
for v in ${REPLACING_VERSIONS}; do |
|||
if [ "$(get_major_version $v)" = "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 |
|||
done |
|||
} |
@ -1,139 +0,0 @@ |
|||
# Copyright 1999-2019 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI="6" |
|||
|
|||
USE_RUBY="ruby23 ruby24 ruby25" |
|||
|
|||
RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
|||
|
|||
RUBY_FAKEGEM_TASK_DOC="doc:all" |
|||
|
|||
RUBY_FAKEGEM_EXTRAINSTALL="locales" |
|||
|
|||
inherit eutils user ruby-fakegem eapi7-ver |
|||
|
|||
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 ~hppa ~ppc ~ppc64 x86" |
|||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax" |
|||
RESTRICT="test" |
|||
|
|||
ruby_add_rdepend " |
|||
dev-ruby/hiera |
|||
dev-ruby/json:= |
|||
dev-ruby/semantic_puppet |
|||
>=dev-ruby/facter-3.0.0 |
|||
dev-ruby/concurrent-ruby |
|||
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" |
|||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )" |
|||
|
|||
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-6.10.1.patch" |
|||
|
|||
# fix systemd path |
|||
epatch "${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 |
|||
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 |
|||
|
|||
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 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 |
|||
elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)" |
|||
elog "suppert was removed for >=6.x, please migrate to puppetserver if you have" |
|||
elog "not already done so." |
|||
elog |
|||
} |
@ -1,139 +0,0 @@ |
|||
# Copyright 1999-2019 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI="6" |
|||
|
|||
USE_RUBY="ruby23 ruby24 ruby25" |
|||
|
|||
RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
|||
|
|||
RUBY_FAKEGEM_TASK_DOC="doc:all" |
|||
|
|||
RUBY_FAKEGEM_EXTRAINSTALL="locales" |
|||
|
|||
inherit eutils user ruby-fakegem eapi7-ver |
|||
|
|||
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 ~hppa ~ppc ~ppc64 x86" |
|||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax" |
|||
RESTRICT="test" |
|||
|
|||
ruby_add_rdepend " |
|||
dev-ruby/hiera |
|||
dev-ruby/json:= |
|||
dev-ruby/semantic_puppet |
|||
>=dev-ruby/facter-3.0.0 |
|||
dev-ruby/concurrent-ruby |
|||
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" |
|||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )" |
|||
|
|||
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-6.10.1.patch" |
|||
|
|||
# fix systemd path |
|||
epatch "${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 |
|||
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 |
|||
|
|||
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 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 |
|||
elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)" |
|||
elog "suppert was removed for >=6.x, please migrate to puppetserver if you have" |
|||
elog "not already done so." |
|||
elog |
|||
} |
@ -1,2 +1 @@ |
|||
DIST puppetdb-6.7.2.tar.gz 43566885 BLAKE2B b90376330cb084c2c14154d647ce334673c526e6f9b9d4430e0be4b420132a0c4c518a0c8ed98b15cfacc6716044f78c384123f3ff87ea1463736a352744b840 SHA512 2e32f7a5a3daf37d74082aa3a66c26fa23643e456dbf80cd16815687f289093c96defc9bfa10c3502f9a9f9a7674cef83b838163f11339c13d4b12c82f8e0664 |
|||
DIST puppetdb-6.8.0.tar.gz 44216021 BLAKE2B ac5641ee0bceef3948d108c725e2ff53d76e897cafd75c9bc6978462f4b157c3d30146ce2f57fd2aa7610b2defc4e074c168847d8aba5501cde16ee0ab7b5aaf SHA512 2dd01058edbd8a4bb3f4717dc518e58ac57139ccc0651e8e39c721a32651bd932fe4ec747c7da23561ab33d7d4d7ddc448fe9b05734d1562f799e183c5e236d5 |
@ -1,92 +0,0 @@ |
|||
# Copyright 1999-2019 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit multilib systemd user |
|||
|
|||
DESCRIPTION="PuppetDB collects data generated by Puppet." |
|||
HOMEPAGE="http://docs.puppetlabs.com/puppetdb/" |
|||
SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
IUSE="" |
|||
# will need the same keywords as puppet |
|||
KEYWORDS="amd64 x86" |
|||
|
|||
RDEPEND+=">=virtual/jdk-1.8.0" |
|||
DEPEND+="" |
|||
|
|||
pkg_setup() { |
|||
enewgroup puppetdb |
|||
enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb" |
|||
} |
|||
|
|||
src_prepare() { |
|||
sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die |
|||
sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die |
|||
sed -i 's/sysconfig/conf\.d/g' install.sh || die |
|||
sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die |
|||
sed -i 's/var\/run/run/g' install.sh || die |
|||
default |
|||
} |
|||
|
|||
src_compile() { |
|||
einfo "not compiling" |
|||
} |
|||
|
|||
src_install() { |
|||
dodir /opt/puppetlabs/server/data/puppetdb |
|||
insinto /opt/puppetlabs/server/apps/puppetdb |
|||
insopts -m0744 |
|||
doins ext/ezbake-functions.sh |
|||
insopts -m0644 |
|||
doins ext/ezbake.manifest |
|||
doins puppetdb.jar |
|||
insinto /etc/puppetlabs/puppetdb |
|||
doins ext/config/logback.xml |
|||
doins ext/config/bootstrap.cfg |
|||
doins ext/config/request-logging.xml |
|||
insinto /etc/puppetlabs/puppetdb/conf.d |
|||
doins ext/config/conf.d/jetty.ini |
|||
doins ext/config/conf.d/repl.ini |
|||
doins ext/config/conf.d/database.ini |
|||
doins ext/config/conf.d/config.ini |
|||
insopts -m0755 |
|||
insinto /opt/puppetlabs/server/apps/puppetdb/scripts |
|||
doins install.sh |
|||
insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps |
|||
doins ext/cli/foreground |
|||
doins ext/cli/ssl-setup |
|||
doins ext/cli/config-migration |
|||
doins ext/cli/foreground |
|||
doins ext/cli/anonymize |
|||
doins ext/cli/reload |
|||
doins ext/cli/start |
|||
doins ext/cli/stop |
|||
insinto /opt/puppetlabs/server/apps/puppetdb/bin |
|||
doins ext/bin/puppetdb |
|||
insopts -m0644 |
|||
dodir /opt/puppetlabs/server/bin |
|||
dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb |
|||
dodir /opt/puppetlabs/bin |
|||
dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb |
|||
dosym ../../opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb |
|||
# init type tasks |
|||
newconfd ext/default puppetdb |
|||
systemd_dounit ext/redhat/puppetdb.service |
|||
systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf |
|||
newinitd "${FILESDIR}/puppetdb.initd-r2" puppetdb |
|||
# misc |
|||
insinto /etc/logrotate.d |
|||
newins ext/puppetdb.logrotate.conf puppetdb |
|||
fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb |
|||
fperms -R 770 /opt/puppetlabs/server/data/puppetdb |
|||
} |
|||
|
|||
pkg_postinst() { |
|||
elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'" |
|||
elog |
|||
elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'" |
|||
} |
@ -1,2 +1 @@ |
|||
DIST puppetserver-6.7.2.tar.gz 59340246 BLAKE2B 635312cb2ea2f638617c10e05b9e1e8efa58caf3da8786155f44081f040a7b167d923e2266c57b43d855feb4bfd5280da85b5100a188e7f0f7dfde847f5abc45 SHA512 e2015554648dc861d513b5778c274e2b09c4ea2ebd53141d152a5bba1046ac6ef163083296c176008a7606581b8368df99aa72907e0edd59e687aa9991209fb5 |
|||
DIST puppetserver-6.8.0.tar.gz 59370389 BLAKE2B 227512d3a054980867730882459bff32559f8baa5fb0c807a14fcc827b8f41fc1da2cceab6bdbd6162bb4e6e6e4312f5d47d478f6887a978c359c6a4225d663d SHA512 9e4d0ea1aad1209342151cfcfd304e4a296df0e95fefde46d4e4a28a9da62422194492d430c3492cc717a7c872ee0f448a89a40fe1e1cb565f865fc0aca7089b |
@ -1,135 +0,0 @@ |
|||
# Copyright 1999-2019 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
|
|||
inherit multilib systemd user |
|||
|
|||
DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents." |
|||
HOMEPAGE="http://docs.puppetlabs.com/puppetserver/" |
|||
SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
IUSE="puppetdb" |
|||
# will need the same keywords as puppet |
|||
KEYWORDS="amd64 x86" |
|||
|
|||
RDEPEND+=" |
|||
>=virtual/jdk-1.8.0 |
|||
app-admin/puppet-agent[puppetdb?]" |
|||
DEPEND+="" |
|||
|
|||
pkg_setup() { |
|||
enewgroup puppet |
|||
enewuser puppet -1 -1 /opt/puppetlabs/server/data/puppetserver "puppet" |
|||
} |
|||
|
|||
src_prepare() { |
|||
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/redhat/puppetserver.service || die |
|||
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/bin/puppetserver || die |
|||
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' install.sh || die |
|||
sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die |
|||
sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die |
|||
sed -i 's/var\/run/run/g' install.sh || die |
|||
default |
|||
} |
|||
|
|||
src_compile() { |
|||
einfo "not compiling" |
|||
} |
|||
|
|||
src_install() { |
|||
insinto /opt/puppetlabs/server/apps/puppetserver |
|||
insopts -m0774 |
|||
doins ext/ezbake-functions.sh |
|||
insopts -m0644 |
|||
doins ext/ezbake.manifest |
|||
doins puppet-server-release.jar |
|||
insinto /etc/puppetlabs/puppetserver |
|||
doins ext/config/logback.xml |
|||
doins ext/config/request-logging.xml |
|||
insinto /etc/puppetlabs/puppetserver/services.d |
|||
doins ext/system-config/services.d/bootstrap.cfg |
|||
doins ext/config/services.d/ca.cfg |
|||
insinto /etc/puppetlabs/puppetserver/conf.d |
|||
doins ext/config/conf.d/puppetserver.conf |
|||
doins ext/config/conf.d/auth.conf |
|||
doins ext/config/conf.d/global.conf |
|||
doins ext/config/conf.d/web-routes.conf |
|||
doins ext/config/conf.d/metrics.conf |
|||
doins ext/config/conf.d/webserver.conf |
|||
insopts -m0755 |
|||
insinto /opt/puppetlabs/server/apps/puppetserver/scripts |
|||
doins install.sh |
|||
insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps |
|||
doins ext/cli/ca |
|||
doins ext/cli/irb |
|||
doins ext/cli/foreground |
|||
doins ext/cli/gem |
|||
doins ext/cli/ruby |
|||
doins ext/cli/reload |
|||
doins ext/cli/start |
|||
doins ext/cli/stop |
|||
insinto /opt/puppetlabs/server/apps/puppetserver/cli |
|||
doins ext/cli_defaults/cli-defaults.sh |
|||
insinto /opt/puppetlabs/server/apps/puppetserver/bin |
|||
doins ext/bin/puppetserver |
|||
insopts -m0644 |
|||
dodir /opt/puppetlabs/server/bin |
|||
dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver |
|||
dodir /opt/puppetlabs/bin |
|||
dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver |
|||
dosym ../../opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver |
|||
dodir /opt/puppetlabs/server/apps/puppetserver/config/services.d |
|||
# other sys stuff |
|||
dodir /etc/puppetlabs/code |
|||
# needed for systemd |
|||
dodir /var/log/puppetlabs/puppetserver |
|||
dodir /etc/puppetlabs/puppet/ssl |
|||
fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl |
|||
fperms -R 771 /etc/puppetlabs/puppet/ssl |
|||
# systemd type things |
|||
insinto /etc/systemd/system/puppetserver.service.d/ |
|||
systemd_dounit ext/redhat/puppetserver.service |
|||
insinto /etc/default |
|||
newins ext/default puppetserver |
|||
# normal init type tasks |
|||
dosym ../default/puppetserver /etc/conf.d/puppetserver |
|||
newinitd "${FILESDIR}/puppetserver.init-r1" puppetserver |
|||
# misc |
|||
insinto /etc/logrotate.d |
|||
newins ext/puppetserver.logrotate.conf puppetserver |
|||
# cleanup |
|||
dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems |
|||
fowners -R puppet:puppet /opt/puppetlabs/server/data |
|||
fperms -R 775 /opt/puppetlabs/server/data/puppetserver |
|||
fperms -R 700 /var/log/puppetlabs/puppetserver |
|||
insinto /opt/puppetlabs/server/data |
|||
doins ext/build-scripts/jruby-gem-list.txt |
|||
doins ext/build-scripts/mri-gem-list-no-dependencies.txt |
|||
insopts -m 0644 |
|||
insinto /usr/lib/tmpfiles.d |
|||
newins ext/puppetserver.tmpfiles.conf puppetserver.conf |
|||
} |
|||
|
|||
pkg_postinst() { |
|||
elog "to install you may want to run the following:" |
|||
elog |
|||
elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver" |
|||
elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver" |
|||
elog "puppet config set --section master rundir /run/puppetlabs/puppetserver" |
|||
elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid" |
|||
elog "puppet config set --section master codedir /etc/puppetlabs/code" |
|||
elog |
|||
elog "# install puppetserver gems" |
|||
elog "cd /opt/puppetlabs/server/apps/puppetserver" |
|||
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems }\" > jruby.conf" |
|||
elog "while read LINE; do" |
|||
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-ri --no-rdoc \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')" |
|||
elog "done < /opt/puppetlabs/server/data/jruby-gem-list.txt" |
|||
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/puppet/lib/ruby/vendor_gems }\" > jruby.conf" |
|||
elog "while read LINE; do" |
|||
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-ri --no-rdoc \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')" |
|||
elog "done < /opt/puppetlabs/server/data/mri-gem-list-no-dependencies.txt" |
|||
} |
@ -1,5 +1,2 @@ |
|||
DIST certbot-0.39.0.tar.gz 1350312 BLAKE2B 5f21c45d25754cb1ed0ad92e8d03637928a274637de09903509c7e78c40fd197e95cfa1f3effecef938d6ab8369dc6811714ddb5a93a806048e0998d1032e4f9 SHA512 17ab17a5f74e3fba58b1a8b9afe0c3656c7b2a5ea3585edb05ad84e36250c6a8d4d28bd692bc97d033c95eb0bbeff4eb84981ae0006e36d55846cd38373b86a0 |
|||
DIST certbot-0.40.1.tar.gz 1353347 BLAKE2B 86b3df4047101d00d5f17cf3a1a11e5800e850f5a9f736507ad373e552c27e9e4a3a17695f5a817d191cad383fc17336214fc1d8de7a99354ce4d2f5c6e728c1 SHA512 e5517a20cf26efba850728b3f81db5d6c3c5570b0a1c8eeeec9d4a4401ac04bcf44c6a2f1c248bf6e0b1be4a21b54f6168ccd11dc766304805f13b4cb16336b3 |
|||
DIST certbot-1.0.0.tar.gz 1336032 BLAKE2B ca26cfd3d9f802b09eaf387225f24fbb01385f81dfa661dfb5acbd97982a6fc773c56abf6b3f99db7f2b0cdc8c5a7175d264714592858b38217e444d4e1d2b4b SHA512 649ddd3d9305e166ef36de4e4e48b1171d5f369d9d60c026ab37a03e7b221cd815e93e69460662e6436b56cec076005582457e9d45499114306ad808a2497912 |
|||
DIST certbot-1.1.0.tar.gz 1346768 BLAKE2B 5c86edec3102ce0eb822465458ec86cbc98eb5e76c3c582d8a72ecab91e709f16e7a1576c684bc04bfd0c70918f34e84e0b3b264f949a1fb9bf9503fa9d6b179 SHA512 905b21a8a50b4df4eb92b464d10dec094ba4e7f5eaf3ad3dae1704a794952df6b51873ca919246a9b6698fd652a7c264efc742617ba0a25757ab99397759c343 |
|||
DIST certbot-1.2.0.tar.gz 1354262 BLAKE2B 1abdf4cb99ecdac6b9b8d2ebdd6897a3182a147f0175e2db4c6b0feaa3f6c615ee3146dd63627a83266c223456c5aba44b018be4059574d0209aec89065d9925 SHA512 ed52a31a71b3762b8cd217ea2784d9cb01f7c1a50cef3b7e0d99483ca3ab623b90ab7d4896674e0d1c06e2e8370c02162418d934de7d3048b0471416616146fe |
@ -1,69 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
PYTHON_COMPAT=(python{3_6,3_7}) |
|||
|
|||
if [[ ${PV} == 9999* ]]; then |
|||
EGIT_REPO_URI="https://github.com/certbot/certbot.git" |
|||
inherit git-r3 |
|||
S=${WORKDIR}/${P}/${PN} |
|||
else |
|||
SRC_URI="https://github.com/certbot/certbot/archive/v${PV}.tar.gz -> certbot-${PV}.tar.gz" |
|||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" |
|||
S=${WORKDIR}/certbot-${PV}/acme |
|||
fi |
|||
|
|||
inherit distutils-r1 |
|||
|
|||
DESCRIPTION="An implementation of the ACME protocol" |
|||
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
IUSE="doc test" |
|||
RESTRICT="!test? ( test )" |
|||
|
|||
RDEPEND=" |
|||
>=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] |
|||
>=dev-python/idna-2.0.0[${PYTHON_USEDEP}] |
|||
>=dev-python/josepy-1.1.0[${PYTHON_USEDEP}] |
|||
dev-python/mock[${PYTHON_USEDEP}] |
|||
>=dev-python/pyopenssl-0.13.1[${PYTHON_USEDEP}] |
|||
dev-python/pyrfc3339[${PYTHON_USEDEP}] |
|||
dev-python/pytz[${PYTHON_USEDEP}] |
|||
>=dev-python/requests-2.10[${PYTHON_USEDEP}] |
|||
>=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] |
|||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
|||
" |
|||
DEPEND=" |
|||
doc? ( |
|||
dev-python/sphinx[${PYTHON_USEDEP}] |
|||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
|||
) |
|||
test? ( |
|||
${RDEPEND} |
|||
dev-python/nose[${PYTHON_USEDEP}] |
|||
dev-python/pytest[${PYTHON_USEDEP}] |
|||
dev-python/pytest-xdist[${PYTHON_USEDEP}] |
|||
) |
|||
>=dev-python/setuptools-1.0[${PYTHON_USEDEP}] |
|||
" |
|||
|
|||
src_compile() { |
|||
python_foreach_impl run_in_build_dir default |
|||
if use doc ; then |
|||
cd docs || die |
|||
sphinx-build -b html -d _build/doctrees . _build/html |
|||
fi |
|||
} |
|||
|
|||
python_test() { |
|||
nosetests -w ${PN} || die |
|||
} |
|||
|
|||
python_install_all() { |
|||
use doc && local HTML_DOCS=( docs/_build/html/. ) |
|||
|
|||
distutils-r1_python_install_all |
|||
} |
@ -1,69 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
PYTHON_COMPAT=(python{3_6,3_7}) |
|||
|
|||
if [[ ${PV} == 9999* ]]; then |
|||
EGIT_REPO_URI="https://github.com/certbot/certbot.git" |
|||
inherit git-r3 |
|||
S=${WORKDIR}/${P}/${PN} |
|||
else |
|||
SRC_URI="https://github.com/certbot/certbot/archive/v${PV}.tar.gz -> certbot-${PV}.tar.gz" |
|||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" |
|||
S=${WORKDIR}/certbot-${PV}/acme |
|||
fi |
|||
|
|||
inherit distutils-r1 |
|||
|
|||
DESCRIPTION="An implementation of the ACME protocol" |
|||
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
IUSE="doc test" |
|||
RESTRICT="!test? ( test )" |
|||
|
|||
RDEPEND=" |
|||
>=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] |
|||
>=dev-python/idna-2.0.0[${PYTHON_USEDEP}] |
|||
>=dev-python/josepy-1.1.0[${PYTHON_USEDEP}] |
|||
dev-python/mock[${PYTHON_USEDEP}] |
|||
>=dev-python/pyopenssl-0.13.1[${PYTHON_USEDEP}] |
|||
dev-python/pyrfc3339[${PYTHON_USEDEP}] |
|||
dev-python/pytz[${PYTHON_USEDEP}] |
|||
>=dev-python/requests-2.10[${PYTHON_USEDEP}] |
|||
>=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] |
|||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
|||
" |
|||
DEPEND=" |
|||
doc? ( |
|||
dev-python/sphinx[${PYTHON_USEDEP}] |
|||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
|||
) |
|||
test? ( |
|||
${RDEPEND} |
|||
dev-python/nose[${PYTHON_USEDEP}] |
|||
dev-python/pytest[${PYTHON_USEDEP}] |
|||
dev-python/pytest-xdist[${PYTHON_USEDEP}] |
|||
) |
|||
>=dev-python/setuptools-1.0[${PYTHON_USEDEP}] |
|||
" |
|||
|
|||
src_compile() { |
|||
python_foreach_impl run_in_build_dir default |
|||
if use doc ; then |
|||
cd docs || die |
|||
sphinx-build -b html -d _build/doctrees . _build/html |
|||
fi |
|||
} |
|||
|
|||
python_test() { |
|||
nosetests -w ${PN} || die |
|||
} |
|||
|
|||
python_install_all() { |
|||
use doc && local HTML_DOCS=( docs/_build/html/. ) |
|||
|
|||
distutils-r1_python_install_all |
|||
} |
@ -1,69 +0,0 @@ |
|||
# Copyright 1999-2020 Gentoo Authors |
|||
# Distributed under the terms of the GNU General Public License v2 |
|||
|
|||
EAPI=7 |
|||
PYTHON_COMPAT=(python{3_6,3_7}) |
|||
|
|||
if [[ ${PV} == 9999* ]]; then |
|||
EGIT_REPO_URI="https://github.com/certbot/certbot.git" |
|||
inherit git-r3 |
|||
S=${WORKDIR}/${P}/${PN} |
|||
else |
|||
SRC_URI="https://github.com/certbot/certbot/archive/v${PV}.tar.gz -> certbot-${PV}.tar.gz" |
|||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" |
|||
S=${WORKDIR}/certbot-${PV}/acme |
|||
fi |
|||
|
|||
inherit distutils-r1 |
|||
|
|||
DESCRIPTION="An implementation of the ACME protocol" |
|||
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/" |
|||
|
|||
LICENSE="Apache-2.0" |
|||
SLOT="0" |
|||
IUSE="doc test" |
|||
RESTRICT="!test? ( test )" |
|||
|
|||
RDEPEND=" |
|||
>=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] |
|||
>=dev-python/idna-2.0.0[${PYTHON_USEDEP}] |
|||
>=dev-python/josepy-1.1.0[${PYTHON_USEDEP}] |
|||
dev-python/mock[${PYTHON_USEDEP}] |
|||
>=dev-python/pyopenssl-0.13.1[${PYTHON_USEDEP}] |
|||
dev-python/pyrfc3339[${PYTHON_USEDEP}] |
|||
dev-python/pytz[${PYTHON_USEDEP}] |
|||
>=dev-python/requests-2.10[${PYTHON_USEDEP}] |
|||
>=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] |
|||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
|||
" |
|||
DEPEND=" |
|||
doc? ( |
|||
dev-python/sphinx[${PYTHON_USEDEP}] |