1 |
commit: 7fb4621bc62143a2813009b87891bc99e2aa6f1f |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 4 08:28:32 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 4 08:28:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fb4621b |
7 |
|
8 |
app-admin/puppet-agent: bup |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
app-admin/puppet-agent/Manifest | 2 + |
13 |
app-admin/puppet-agent/puppet-agent-1.9.0.ebuild | 106 +++++++++++++++++++++++ |
14 |
2 files changed, 108 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/puppet-agent/Manifest b/app-admin/puppet-agent/Manifest |
17 |
index 2a3bd31..ca74d70 100644 |
18 |
--- a/app-admin/puppet-agent/Manifest |
19 |
+++ b/app-admin/puppet-agent/Manifest |
20 |
@@ -4,3 +4,5 @@ DIST puppet-agent_1.8.2-1xenial_amd64.deb 15179348 SHA256 5195af288ca014bcf65705 |
21 |
DIST puppet-agent_1.8.2-1xenial_i386.deb 16609778 SHA256 48d4588ae8c87a3a3e41c5c4e6159cba7bf6484578ce0761b4abd76854f7bdad SHA512 b96e239906e75773a22c37a28c3c794b7293cab1a970ba5067064b120e12e0a6f0b620f06dfb3cc5b83e9140467fa552aa05ea46a33f3fb8b489ac7790cb7734 WHIRLPOOL 6daf05a7ae5e50ecb922ffa260101cc62e64267fd40ca6dd8d684ab1b3760eb45a4f797f9644b7fb351f70a86e88d5c88cd1cc5dd4d68341912846466ba72257 |
22 |
DIST puppet-agent_1.8.3-1xenial_amd64.deb 15531434 SHA256 2a468846e4b31f07dce9bbbf96c3fe06a528512cbc37bedc7ab44715a6833e94 SHA512 11958f51b75e012484f332b49d66bba225fdc19634f3972dfe5117ce7971d187bd7bca36dff079cd898e48c3545d560f34ee57a3acb710427154875d9d99100a WHIRLPOOL 895050da0f52a1e977d58802dcc5e5db11c331d5ad30732b1ac80e799d8b3312034efa800e3489b789cc40e9c156a5fe66050264d01a33c4a85e489a647b6324 |
23 |
DIST puppet-agent_1.8.3-1xenial_i386.deb 16564720 SHA256 c2d5a1fd91941031b375b59f85f323a38977cc526b33e73f93eae50ee036fd65 SHA512 bb617c351ba26d431a6f0d6aa150c8888ee822feb63ebb56557586547e8afc9d387c5af6a6c59e6a885bc6ab195c89b3ea9317de74440abe6df76870c3dca345 WHIRLPOOL cdfd414d9113add49f9b60d5efcd5f16ce0f71a1bb094a4e98c31486b8ff86b1f9dbe1b5da0724358aa78d8f75c3aed9c8247a62595cdde92eab74519b9d06ef |
24 |
+DIST puppet-agent_1.9.0-1xenial_amd64.deb 15324700 SHA256 acdcdc314b39e404102b8e6d0a7d1fdeb5710efeb34f60c447afd95a17a230c4 SHA512 068e27aa59b7e60eb296a7d41435ae821559822f4e4136dae0af20445490a209baabfd0bbe5f91c8981091c999170c251310c5a6fdc0ffd9825f1d0ee7128e06 WHIRLPOOL b949befa1ad7f61877188828a90687f2a5957831af8a71723ab7424172d5df04b923f5241681a816f28382e3ac832fab2c7982c34f1f12db6f31ca9440f0ec2d |
25 |
+DIST puppet-agent_1.9.0-1xenial_i386.deb 16775966 SHA256 c7c5303e411278d19eee798ab7ae68b51edc7256935e6637a58fbb8c035df6ed SHA512 00a29cf00840e8d75e5d858fe03a15338f21e9eead123a1bae5e2a8cca66e06a6bbdc4671a06a986ee8807851997459fc134c6ebb196674e6993fd12af5bbd47 WHIRLPOOL ebac057af1efeb692b6b56fe2a697a79ab45872639add7db903b24f176651e86dfc18651c25acef3b33682dda255562e357e0942b9121b232474dcf1f6617176 |
26 |
|
27 |
diff --git a/app-admin/puppet-agent/puppet-agent-1.9.0.ebuild b/app-admin/puppet-agent/puppet-agent-1.9.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..da0a3dd |
30 |
--- /dev/null |
31 |
+++ b/app-admin/puppet-agent/puppet-agent-1.9.0.ebuild |
32 |
@@ -0,0 +1,106 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+inherit eutils systemd unpacker user |
39 |
+ |
40 |
+DESCRIPTION="general puppet client utils along with mcollective hiera and facter" |
41 |
+HOMEPAGE="https://puppetlabs.com/" |
42 |
+SRC_BASE="http://apt.puppetlabs.com/pool/xenial/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1xenial" |
43 |
+SRC_URI=" |
44 |
+ amd64? ( ${SRC_BASE}_amd64.deb ) |
45 |
+ x86? ( ${SRC_BASE}_i386.deb ) |
46 |
+" |
47 |
+ |
48 |
+LICENSE="Apache-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="puppetdb selinux" |
52 |
+RESTRICT="strip" |
53 |
+ |
54 |
+CDEPEND="!app-admin/augeas |
55 |
+ !app-admin/mcollective |
56 |
+ !app-admin/puppet |
57 |
+ !dev-ruby/hiera |
58 |
+ !dev-ruby/facter |
59 |
+ !app-emulation/virt-what" |
60 |
+ |
61 |
+DEPEND=" |
62 |
+ ${CDEPEND}" |
63 |
+RDEPEND="${CDEPEND} |
64 |
+ app-portage/eix |
65 |
+ sys-apps/dmidecode |
66 |
+ sys-libs/glibc |
67 |
+ >=sys-libs/readline-6.0 |
68 |
+ <sys-libs/readline-7.0 |
69 |
+ selinux? ( |
70 |
+ sys-libs/libselinux[ruby] |
71 |
+ sec-policy/selinux-puppet |
72 |
+ ) |
73 |
+ puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )" |
74 |
+ |
75 |
+S=${WORKDIR} |
76 |
+ |
77 |
+QA_PREBUILT=" |
78 |
+ /opt/puppetlabs/puppet |
79 |
+ /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/* |
80 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/* |
81 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/* |
82 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/* |
83 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/* |
84 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/* |
85 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/* |
86 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/* |
87 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/* |
88 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/* |
89 |
+ /opt/puppetlabs/puppet/lib/engines/* |
90 |
+ /opt/puppetlabs/puppet/lib/virt-what/* |
91 |
+ /opt/puppetlabs/puppet/lib/* |
92 |
+ /opt/puppetlabs/puppet/bin/*" |
93 |
+ |
94 |
+pkg_setup() { |
95 |
+ enewgroup puppet |
96 |
+ enewuser puppet -1 -1 /var/run/puppet puppet |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ # conf.d |
101 |
+ doconfd etc/default/puppet |
102 |
+ doconfd etc/default/mcollective |
103 |
+ doconfd etc/default/pxp-agent |
104 |
+ # logrotate.d |
105 |
+ insinto /etc/logrotate.d |
106 |
+ doins etc/logrotate.d/mcollective |
107 |
+ doins etc/logrotate.d/pxp-agent |
108 |
+ # puppet itself |
109 |
+ insinto /etc/puppetlabs |
110 |
+ doins -r etc/puppetlabs/* |
111 |
+ # logdir for systemd |
112 |
+ dodir var/log/puppetlabs/puppet/ |
113 |
+ fperms 0750 var/log/puppetlabs/puppet/ |
114 |
+ # the rest |
115 |
+ insinto /opt |
116 |
+ dodir opt/puppetlabs/puppet/cache |
117 |
+ doins -r opt/* |
118 |
+ fperms 0750 /opt/puppetlabs/puppet/cache |
119 |
+ # init |
120 |
+ newinitd "${FILESDIR}/puppet.initd" puppet |
121 |
+ newinitd "${FILESDIR}/mcollective.initd" mcollective |
122 |
+ systemd_dounit lib/systemd/system/puppet.service |
123 |
+ systemd_dounit lib/systemd/system/mcollective.service |
124 |
+ systemd_dounit lib/systemd/system/pxp-agent.service |
125 |
+ systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf |
126 |
+ # symlinks |
127 |
+ chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/" |
128 |
+ chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper" |
129 |
+ dosym /opt/puppetlabs/bin/facter /usr/bin/facter |
130 |
+ dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera |
131 |
+ dosym /opt/puppetlabs/bin/mco /usr/bin/mco |
132 |
+ dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet |
133 |
+ dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived |
134 |
+ dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what |
135 |
+ dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse |
136 |
+ dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool |
137 |
+ dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera |
138 |
+} |