Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/puppet-agent/
Date: Fri, 23 Sep 2016 14:43:30
Message-Id: 1474641497.997ec0237f7a3425eab9b5130f883095a709cd95.prometheanfire@gentoo
1 commit: 997ec0237f7a3425eab9b5130f883095a709cd95
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 14:38:17 2016 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 14:38:17 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=997ec023
7
8 app-admin/puppet-agent: bup
9
10 Package-Manager: portage-2.2.28
11
12 app-admin/puppet-agent/Manifest | 2 +
13 app-admin/puppet-agent/puppet-agent-1.7.0.ebuild | 99 ++++++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/app-admin/puppet-agent/Manifest b/app-admin/puppet-agent/Manifest
17 index 0067dc7..c442b08 100644
18 --- a/app-admin/puppet-agent/Manifest
19 +++ b/app-admin/puppet-agent/Manifest
20 @@ -1,2 +1,4 @@
21 DIST puppet-agent_1.6.2-1xenial_amd64.deb 13882068 SHA256 e4921a53f71bb16d9b19b261d1cf415d2be03ae8e8605a36037d080e1fd928e3 SHA512 1621c1458a973a39104a6a5750ee02bb50cbaab2010097db9a4e0e7a668576c93012ac7c1408c470bc6debfda2bbd15e147e852cc0b944619c49879bd3b676d8 WHIRLPOOL 6dbedd797a0fc8503176103f6992af76898663f059412816fdeeb2780c7142538c26c31e300dee593b6b9efd4fd6173eddfcae3dec1ae5975e27daaf1169ccd2
22 DIST puppet-agent_1.6.2-1xenial_i386.deb 15231484 SHA256 b58a9e73df92181700183a32803f01d00dff8d7b5d8565ec1cc512a850301f79 SHA512 8ddbb5e7da0cb94e3948c3d993fda364b5f6cb22514218d02df685826658d5649d066e4121881d0ea4b7d17b524d26df140915ef158b86c5a134ca3ee3206148 WHIRLPOOL 64173df8aad4056621252e9d9cbc5f04cd18753377e80d1fe663478518d10484d48cc162d213e4ad0f535c4c23626cb32166f5896624e8772899acb05325152d
23 +DIST puppet-agent_1.7.0-1xenial_amd64.deb 13880620 SHA256 804cce57baca64f50d1f78a1fa2b7668aec99a78ea4d19e12935f1c9811c44b6 SHA512 2414a42c86a84ab3235b99a6e824bcbd93b432572a64e7faab29ca9b027da27aefd168d060f9bac73663639cbf5213a74bb14e152a60a307efea6704a183424b WHIRLPOOL 1fec15a704f1a836bca4fc58dbb369b3e5e6c171f998a08e78ba642c96b9cce84de0bb22435c230038714f4b7be405154856ebb39aa96a7733b7c8f02974c587
24 +DIST puppet-agent_1.7.0-1xenial_i386.deb 15233100 SHA256 bb602489cff71e228496b819242dde362f6486290ef60ff500025294dfb072ff SHA512 720572147d4808045960ab630ab23b7de9ea0eb6d0c388c0ad814eebc07fbe466bf7161c9d357e4562a0a92a41e348f7cf247364acae63f831787b3e0daa3de2 WHIRLPOOL 0dd236d25d99e9aa5c5c3611568fc42945e537b4e9f65e89e7b8b27aa48b64e9a9108e682adcb71982b101f8ccfb78abe695e66f9d850cdba9b13439f9d655ef
25
26 diff --git a/app-admin/puppet-agent/puppet-agent-1.7.0.ebuild b/app-admin/puppet-agent/puppet-agent-1.7.0.ebuild
27 new file mode 100644
28 index 00000000..a60350d
29 --- /dev/null
30 +++ b/app-admin/puppet-agent/puppet-agent-1.7.0.ebuild
31 @@ -0,0 +1,99 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +inherit eutils systemd unpacker user
38 +
39 +DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
40 +HOMEPAGE="https://puppetlabs.com/"
41 +SRC_BASE="http://apt.puppetlabs.com/pool/xenial/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1xenial"
42 +SRC_URI="
43 + amd64? ( ${SRC_BASE}_amd64.deb )
44 + x86? ( ${SRC_BASE}_i386.deb )
45 +"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="puppetdb selinux"
51 +RESTRICT="strip"
52 +
53 +CDEPEND="!app-admin/augeas
54 + !app-admin/mcollective
55 + !app-admin/puppet
56 + !dev-ruby/hiera
57 + !dev-ruby/facter
58 + !app-emulation/virt-what"
59 +
60 +DEPEND="
61 + ${CDEPEND}"
62 +RDEPEND="${CDEPEND}
63 + sys-apps/dmidecode
64 + selinux? (
65 + sys-libs/libselinux[ruby]
66 + sec-policy/selinux-puppet
67 + )
68 + puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )"
69 +
70 +S=${WORKDIR}
71 +
72 +QA_PREBUILT="
73 + /opt/puppetlabs/puppet
74 + /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
75 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
76 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
77 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
78 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
79 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
80 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
81 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
82 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
83 + /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
84 + /opt/puppetlabs/puppet/lib/engines/*
85 + /opt/puppetlabs/puppet/lib/virt-what/*
86 + /opt/puppetlabs/puppet/lib/*
87 + /opt/puppetlabs/puppet/bin/*"
88 +
89 +pkg_setup() {
90 + enewgroup puppet
91 + enewuser puppet -1 -1 /var/run/puppet puppet
92 +}
93 +
94 +src_install() {
95 + # conf.d
96 + doconfd etc/default/puppet
97 + doconfd etc/default/mcollective
98 + # logrotate.d
99 + insinto /etc/logrotate.d
100 + doins etc/logrotate.d/mcollective
101 + # puppet itself
102 + insinto /etc/puppetlabs
103 + doins -r etc/puppetlabs/*
104 + # logdir for systemd
105 + dodir var/log/puppetlabs/puppet/
106 + fperms 0750 var/log/puppetlabs/puppet/
107 + # the rest
108 + insinto /opt
109 + dodir opt/puppetlabs/puppet/cache
110 + doins -r opt/*
111 + fperms 0750 /opt/puppetlabs/puppet/cache
112 + # init
113 + newinitd "${FILESDIR}/puppet.initd" puppet
114 + newinitd "${FILESDIR}/mcollective.initd" mcollective
115 + systemd_dounit "${FILESDIR}/puppet.service"
116 + systemd_dounit "${FILESDIR}/mcollective.service"
117 + systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
118 + # symlinks
119 + chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
120 + chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
121 + dosym /opt/puppetlabs/bin/facter /usr/bin/facter
122 + dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
123 + dosym /opt/puppetlabs/bin/mco /usr/bin/mco
124 + dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
125 + dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
126 + dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
127 + dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
128 + dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
129 + dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
130 +}