diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2023-08-27 10:51:22 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2023-08-27 10:52:29 -0500 |
commit | 8cb1e305ed8319ceee895bfea8e2874ca450c7eb (patch) | |
tree | e6c357ee14e193337083c5090bcb197fce83bd13 /app-admin/puppetdb | |
parent | app-admin/puppet: add 8.2.0 (diff) | |
download | gentoo-8cb1e305ed8319ceee895bfea8e2874ca450c7eb.tar.gz gentoo-8cb1e305ed8319ceee895bfea8e2874ca450c7eb.tar.bz2 gentoo-8cb1e305ed8319ceee895bfea8e2874ca450c7eb.zip |
app-admin/puppetdb: add 8.1.0
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'app-admin/puppetdb')
-rw-r--r-- | app-admin/puppetdb/Manifest | 1 | ||||
-rw-r--r-- | app-admin/puppetdb/puppetdb-8.1.0.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest index e4a66775f26e..b16ca01a29c9 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.0.0.tar.gz 50152833 BLAKE2B 89ed62b107f97252aaaffe6124e6f6627b19092fd161b51c8e27d703896d4c7f0c86c0f8ca79f26995abcb29e756f3670f82aa1c6c9b84c6c411451399c6f2de SHA512 7beeaed5b26361c306d8e6319747fc1eb809a82aac503f17b5ca1caebb1972a718e19c118da4b6717914e25aa7bdf410925865bad6a34deba411e1032538b19a +DIST puppetdb-8.1.0.tar.gz 56647151 BLAKE2B ba1fa54db6413ab45780546a33039799e2e1fbb16f99c5e3e54a382d2f6d1c2a2b8a65d0dbfe881284b9218f4b0f0b105e6c2d8ade12a7d2c25c3505bb9f4d07 SHA512 76ee2b616373c60496d4bc1f90a01b6d30fa6254ce8788a8438e28cabe55358a10653cfcb78ceda00c90c499c77cf2f77138a3f49daf9b4ebe77255fd134e017 diff --git a/app-admin/puppetdb/puppetdb-8.1.0.ebuild b/app-admin/puppetdb/puppetdb-8.1.0.ebuild new file mode 100644 index 000000000000..a6a61f3038bf --- /dev/null +++ b/app-admin/puppetdb/puppetdb-8.1.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'" +} |