Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/puppet-agent/
Date: Sun, 23 Jan 2022 00:59:16
Message-Id: 1642899544.e38bdc6d48373cb4189260729e993cb4816e5910.prometheanfire@gentoo
1 commit: e38bdc6d48373cb4189260729e993cb4816e5910
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 23 00:50:50 2022 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 23 00:59:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e38bdc6d
7
8 app-admin/puppet-agent: 7.14.0 bump, adding arm64 keyword
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 app-admin/puppet-agent/Manifest | 2 +
14 app-admin/puppet-agent/puppet-agent-7.14.0.ebuild | 91 +++++++++++++++++++++++
15 2 files changed, 93 insertions(+)
16
17 diff --git a/app-admin/puppet-agent/Manifest b/app-admin/puppet-agent/Manifest
18 index b7f312e42f80..7b837435f901 100644
19 --- a/app-admin/puppet-agent/Manifest
20 +++ b/app-admin/puppet-agent/Manifest
21 @@ -1,2 +1,4 @@
22 DIST puppet-agent_7.12.0-1focal_amd64.deb 20971412 BLAKE2B afb9af877e578b6ae24566e0688d14fa67fdb133a3fd9e15dc2473ea76f61a6551bd69a6fad18b6b555eea2afa8fd858a005f2c1cf6681c28f4422129211dea9 SHA512 f5fdab728baa7813f31ba174b0ee7e9dee3f5f954ed46a2f6740cf6ad075c8f36a1b6cb28e7c6223eb4aad02400252114a5dcede0085f7a7e7ba079bad2aedf9
23 DIST puppet-agent_7.13.1-1focal_amd64.deb 20985856 BLAKE2B b5e3a2ac94af1f45f0ea5131cff74be1ded6efd9d0951624cec49fa00bc98fb4711e1593be46871c96cac130a636e3d217d6e7515082ca5c409858d982f25a78 SHA512 b5a8ebd99028b859a5100b8cc64684c2fa8257b27259f0ee1c87ddfcbfd9d3c2af48bafbdad524ffeeff743d8da6e46979a84555942ca9b9e4d93a12c08bc552
24 +DIST puppet-agent_7.14.0-1focal_amd64.deb 20339972 BLAKE2B 3e7a230e73c1eb7d96317e7877fc1bf5dbfb44f2e8faa65a1ba08ca3c7c22115458797e1bf33450d5f45c11ed0a96c2973a0d6a0a83d98739ad52c90fe45f3af SHA512 08cd94e1d5ed1a8827f43a60c80ab64a8370ecebab01cd9d8b6c36e99007a84d9b6d39a8a8eb6370b2e78f2360d4fc0b95bf85f8b59a38b44b4d94a4e266d4b7
25 +DIST puppet-agent_7.14.0-1focal_arm64.deb 19534676 BLAKE2B a809b4beb8c20ce2e45f1c2c552585403494ed2c0eca719077597106fcb91478bfe7cb12bcb420e5b093840fe41f4ae101c978df48690ea47940216dda7b293e SHA512 4d57fe41d6943b3b6d643f55aead3264ed4f4aedd280e8fc0ed8504a1f7e0da1e9a06e9d7e2b4916f2de2c6726b3dcff3ce8096d02503443ad6e74b0528177bc
26
27 diff --git a/app-admin/puppet-agent/puppet-agent-7.14.0.ebuild b/app-admin/puppet-agent/puppet-agent-7.14.0.ebuild
28 new file mode 100644
29 index 000000000000..3ef55d1516d2
30 --- /dev/null
31 +++ b/app-admin/puppet-agent/puppet-agent-7.14.0.ebuild
32 @@ -0,0 +1,91 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit systemd unpacker tmpfiles
38 +
39 +DESCRIPTION="general puppet client utils along with hiera and facter"
40 +HOMEPAGE="https://puppetlabs.com/"
41 +SRC_URI="amd64? ( http://apt.puppetlabs.com/pool/focal/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1focal_amd64.deb )
42 +arm64? ( http://apt.puppetlabs.com/pool/focal/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1focal_arm64.deb )"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm64"
47 +IUSE="puppetdb selinux"
48 +RESTRICT="strip"
49 +
50 +# virtual/libcrypt:= is in here despite being a pre-built package
51 +# to ensure that the has_version logic for the symlink doesn't become stale
52 +CDEPEND="!app-admin/puppet
53 + !dev-ruby/hiera
54 + !dev-ruby/facter
55 + app-emulation/virt-what
56 + acct-user/puppet
57 + acct-group/puppet
58 + virtual/libcrypt:="
59 +
60 +DEPEND="
61 + ${CDEPEND}
62 + app-admin/augeas"
63 +RDEPEND="${CDEPEND}
64 + app-portage/eix
65 + sys-apps/dmidecode
66 + sys-libs/libselinux
67 + sys-libs/glibc
68 + sys-libs/readline:0/8
69 + sys-libs/libxcrypt[compat]
70 + sys-libs/ncurses:0[tinfo]
71 + selinux? (
72 + sys-libs/libselinux[ruby]
73 + sec-policy/selinux-puppet
74 + )
75 + puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )"
76 +
77 +S=${WORKDIR}
78 +
79 +QA_PREBUILT="*"
80 +
81 +src_install() {
82 + # conf.d
83 + doconfd etc/default/puppet
84 + doconfd etc/default/pxp-agent
85 + # logrotate.d
86 + insinto /etc/logrotate.d
87 + doins etc/logrotate.d/pxp-agent
88 + # puppet itself
89 + insinto /etc/puppetlabs
90 + doins -r etc/puppetlabs/*
91 + # logdir for systemd
92 + keepdir var/log/puppetlabs/puppet/
93 + chmod 0750 var/log/puppetlabs/puppet/
94 + # the rest
95 + insinto /opt
96 + dodir opt/puppetlabs/puppet/cache
97 + doins -r opt/*
98 + fperms 0750 /opt/puppetlabs/puppet/cache
99 + # init
100 + newinitd "${FILESDIR}/puppet.initd2" puppet
101 + systemd_dounit lib/systemd/system/puppet.service
102 + systemd_dounit lib/systemd/system/pxp-agent.service
103 + newtmpfiles usr/lib/tmpfiles.d/puppet-agent.conf puppet-agent.conf
104 + # symlinks
105 + chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
106 + dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter
107 + dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera
108 + dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet
109 +
110 + # Handling of the path to the crypt library during the ongoing migration
111 + # from glibc[crypt] to libxcrypt
112 + # https://www.gentoo.org/support/news-items/2021-07-23-libxcrypt-migration.html
113 + if has_version "sys-libs/glibc[crypt]"; then
114 + local crypt_target='../../../../usr/lib64/xcrypt/libcrypt.so.1'
115 + else
116 + local crypt_target='../../../../usr/lib/libcrypt.so.1'
117 + fi
118 + dosym $crypt_target /opt/puppetlabs/puppet/lib/libcrypt.so.1
119 +}
120 +
121 +pkg_postinst() {
122 + tmpfiles_process puppet-agent.conf
123 +}