1 |
commit: 7e980ba2655366510326cb2a803ca064c12b455c |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 16:44:40 2015 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 16:44:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e980ba2 |
7 |
|
8 |
app-admin/puppet-agent: bup |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
app-admin/puppet-agent/Manifest | 2 + |
13 |
app-admin/puppet-agent/puppet-agent-1.3.1.ebuild | 97 ++++++++++++++++++++++++ |
14 |
2 files changed, 99 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/puppet-agent/Manifest b/app-admin/puppet-agent/Manifest |
17 |
index 8107900..afec2c5 100644 |
18 |
--- a/app-admin/puppet-agent/Manifest |
19 |
+++ b/app-admin/puppet-agent/Manifest |
20 |
@@ -10,3 +10,5 @@ DIST puppet-agent_1.2.7-1wheezy_amd64.deb 15280016 SHA256 c250bcdeb22296ef3b0097 |
21 |
DIST puppet-agent_1.2.7-1wheezy_i386.deb 15214412 SHA256 c2b9f51cfe3d3e43b3cdfb7a1c6c92abaeaf2c4ab26e9ceac5aba2b58cf1480e SHA512 6950e09c49da35c0cf463364b4ec468ba011f15d3caf9c59c58ef01a0cfd859cb5c97a3271d9a11c958a71c4c77ba45a8dab205124b92a80354da519dc1a2f3c WHIRLPOOL 12ce6f5ba23f00d1320d7cd40734485ac69bdddda8a9711e18f3549c12919592ca27394963578c5850400864e2b524e7034833e8b2985b15f06bb66f06df1b75 |
22 |
DIST puppet-agent_1.3.0-1wheezy_amd64.deb 18018964 SHA256 dd107d96f674100e399f1e1a773b22ed2dd77081f3580d7df729f0d02885326f SHA512 20b5a2e516e98db30450b54f0ae042b4c6d5ccf4f44bc3403381bc663c73a7349b393fefaafabfbe334a49afbfcabc8eeae727e4eca54ef7eaa81463a7f05ed2 WHIRLPOOL df75fda9fa2ddc46fea419a65dc0de7eccd9ded41534c96f9be6688b07287fb3f6343ae908fcede47f857d37af1513e74ae5b25302150b1b186f0dc698d85860 |
23 |
DIST puppet-agent_1.3.0-1wheezy_i386.deb 17960480 SHA256 eda86599bd647e1367874636aedb9e2812540043b6bf3f0f614efb00b7f727b8 SHA512 d2a3555c9298c9a14ea9342e787f4971a0e6fbe0ea37a2ca8a6f8ee4863fb8eb21dd5cb45c493ad0bffdc85e239baa6aaec95c778fb697e6ec5fe65ba592ea84 WHIRLPOOL f77446c30aaf56e529ecec2dfbd00d438407ed58bfa460f147cc59c403eeafa4fbb62697d84696173501c349156d0b0c0a0166760dc2bdf1f133371bc9ee1d98 |
24 |
+DIST puppet-agent_1.3.1-1wheezy_amd64.deb 18079810 SHA256 c7df7a99ac0ee08564e60596ec4547f4208010d196c7e229f54fe8c8939cf7fd SHA512 c205c24a2c8aee1f57ddb9c1e0b09172455e953de8b51452c274e43edd95e3d5999c8ff74d00935b3a3b3221532d264bd4e9917a994095e9deee8430e91cc572 WHIRLPOOL fb492b8f6e98565e664bfb14dcb8b06fcae20b5bcefb9a04abd064099271fbae8d21c47b6605e32e0efce7fb6bcceeb9e3e330c1e7338491b700e66945870c5b |
25 |
+DIST puppet-agent_1.3.1-1wheezy_i386.deb 18015662 SHA256 7a6df5b1ff33ab6791c76d7080fc2b8174e6efdf701c774d7945238f3be28e5a SHA512 3960327559ef9b7f58b6b0997789ec89b74afab2628c8067383556e66cdbfe5a5951ddf5c11840bf0fc76052a8548500f2608dc823ae757c669272ee10a22af5 WHIRLPOOL 9c8c50401e3388af6114a24b70753b6ee96beee5f73e9fbb50ff1e6c63ae6e94ae4110ad197558288f4d310ef36714ca9132d08ff0f122aab8a4885b4ab682cc |
26 |
|
27 |
diff --git a/app-admin/puppet-agent/puppet-agent-1.3.1.ebuild b/app-admin/puppet-agent/puppet-agent-1.3.1.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..696bcc7 |
30 |
--- /dev/null |
31 |
+++ b/app-admin/puppet-agent/puppet-agent-1.3.1.ebuild |
32 |
@@ -0,0 +1,97 @@ |
33 |
+# Copyright 1999-2015 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/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy" |
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 |
+ sys-apps/dmidecode |
65 |
+ selinux? ( |
66 |
+ sys-libs/libselinux[ruby] |
67 |
+ sec-policy/selinux-puppet |
68 |
+ ) |
69 |
+ puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )" |
70 |
+ |
71 |
+S=${WORKDIR} |
72 |
+ |
73 |
+QA_PREBUILT=" |
74 |
+ /opt/puppetlabs/puppet |
75 |
+ /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/* |
76 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/* |
77 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/* |
78 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/* |
79 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/* |
80 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/* |
81 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/* |
82 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/* |
83 |
+ /opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/* |
84 |
+ /opt/puppetlabs/puppet/lib/engines/* |
85 |
+ /opt/puppetlabs/puppet/lib/virt-what/* |
86 |
+ /opt/puppetlabs/puppet/bin/*" |
87 |
+ |
88 |
+pkg_setup() { |
89 |
+ enewgroup puppet |
90 |
+ enewuser puppet -1 -1 /var/run/puppet puppet |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ # conf.d |
95 |
+ doconfd etc/default/puppet |
96 |
+ doconfd etc/default/mcollective |
97 |
+ # logrotate.d |
98 |
+ insinto /etc/logrotate.d |
99 |
+ doins etc/logrotate.d/mcollective |
100 |
+ # puppet itself |
101 |
+ insinto /etc/puppetlabs |
102 |
+ doins -r etc/puppetlabs/* |
103 |
+ # logdir for systemd |
104 |
+ dodir var/log/puppetlabs/puppet/ |
105 |
+ fperms 0750 var/log/puppetlabs/puppet/ |
106 |
+ # the rest |
107 |
+ insinto /opt |
108 |
+ dodir opt/puppetlabs/puppet/cache |
109 |
+ doins -r opt/* |
110 |
+ fperms 0750 /opt/puppetlabs/puppet/cache |
111 |
+ # init |
112 |
+ newinitd "${FILESDIR}/puppet.initd" puppet |
113 |
+ newinitd "${FILESDIR}/mcollective.initd" mcollective |
114 |
+ systemd_dounit "${FILESDIR}/puppet.service" |
115 |
+ systemd_dounit "${FILESDIR}/mcollective.service" |
116 |
+ systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf |
117 |
+ # symlinks |
118 |
+ chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/" |
119 |
+ chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper" |
120 |
+ dosym /opt/puppetlabs/bin/facter /usr/bin/facter |
121 |
+ dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera |
122 |
+ dosym /opt/puppetlabs/bin/mco /usr/bin/mco |
123 |
+ dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet |
124 |
+ dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived |
125 |
+ dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what |
126 |
+ dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse |
127 |
+ dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool |
128 |
+ dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera |
129 |
+} |