diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2023-11-07 17:36:23 -0600 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2023-11-07 17:37:21 -0600 |
commit | 1ea25668fc7b7b1f892d6923b168e837e76cdd4c (patch) | |
tree | a7535c2e4d8fbddf0e29ce535294b911b34aa4d2 | |
parent | app-admin/puppetserver: add 8.3.0 (diff) | |
download | gentoo-1ea25668fc7b7b1f892d6923b168e837e76cdd4c.tar.gz gentoo-1ea25668fc7b7b1f892d6923b168e837e76cdd4c.tar.bz2 gentoo-1ea25668fc7b7b1f892d6923b168e837e76cdd4c.zip |
app-admin/puppetdb: add 8.2.0
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
-rw-r--r-- | app-admin/puppetdb/Manifest | 1 | ||||
-rw-r--r-- | app-admin/puppetdb/puppetdb-8.2.0.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest index fd79d1aa1150..ae5bb2751229 100644 --- a/app-admin/puppetdb/Manifest +++ b/app-admin/puppetdb/Manifest @@ -1,2 +1,3 @@ DIST puppetdb-7.13.0.tar.gz 49917440 BLAKE2B 7cb01b2dbd6b6b22aad11a7fbcabff1c8452d51437bd0b3db3c8afe9d72bb853b66a9c8056c4c7c33f284efc4a90c788a05411fe6f80ae081ef817bb7f609bf3 SHA512 ba94031b3c15d38a2719390145e034be453a5f8368b5c53420bf3b371cc36a49f0b416447ec4d9de41ef0618b32ec806b9bae996ec3c4ca0ce05fb152940c2f2 DIST puppetdb-8.1.0.tar.gz 56647151 BLAKE2B ba1fa54db6413ab45780546a33039799e2e1fbb16f99c5e3e54a382d2f6d1c2a2b8a65d0dbfe881284b9218f4b0f0b105e6c2d8ade12a7d2c25c3505bb9f4d07 SHA512 76ee2b616373c60496d4bc1f90a01b6d30fa6254ce8788a8438e28cabe55358a10653cfcb78ceda00c90c499c77cf2f77138a3f49daf9b4ebe77255fd134e017 +DIST puppetdb-8.2.0.tar.gz 59250096 BLAKE2B ed1009e87cad366a1d3399eb55b51d8aaad325f1b2da9c2fc5f77a1ad43581009ebc23f5e6756cd86430eb300d389a9022b14c29bdd4ea392cf956627df0f1fe SHA512 59d894710c2591566f9900a7fc1a396f971152e66ae423b54d73b0b9d474eaf4f58926fb6dc4815865dac8bd2dc458161685876ffdc9db5a3d049d0ffeb9b601 diff --git a/app-admin/puppetdb/puppetdb-8.2.0.ebuild b/app-admin/puppetdb/puppetdb-8.2.0.ebuild new file mode 100644 index 000000000000..a6a61f3038bf --- /dev/null +++ b/app-admin/puppetdb/puppetdb-8.2.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd tmpfiles + +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="" +KEYWORDS="~amd64 ~x86" + +RDEPEND+=">=virtual/jdk-11" +DEPEND+="acct-user/puppetdb + acct-group/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 + doins ext/config/conf.d/auth.conf + 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 + newtmpfiles 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() { + tmpfiles_process puppetdb.conf + + 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'" +} |