commit:     0817105cfa9d28fafc4bb5a3d446240c379ae90c
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 22 20:33:24 2024 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Sun Sep 22 20:37:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0817105c

app-admin/puppetdb: add 8.7.0

Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 app-admin/puppetdb/Manifest              |  1 +
 app-admin/puppetdb/puppetdb-8.7.0.ebuild | 90 ++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)

diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest
index c838683e43c3..7e37c8c4e9f9 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.5.0.tar.gz 60440356 BLAKE2B 
8c3116b040c91a1b406e56b419ddd7e31a5ecc7aae97c73b03fcecebeedefb1b8eed44ce54b07881cbbb025b79bfa076618c6fd6df861a6dcf03c047e7c8f480
 SHA512 
92808758271c43eabbd508fcb321b3e52a92d0aa860f2c9b42d1df6dcffedb41110c8cc2e72c599fa1762404112f1fc76699f449858a627dd1ca5caa84a2d381
+DIST puppetdb-8.7.0.tar.gz 61636500 BLAKE2B 
3e65c3e28935cc0a43b239f9d1c11e3807535c448f35e6c9e2c9191b636ae74b310b13345922144041f8052ca4e450db8f4e6a3362e5f9220bb422dffde3bd02
 SHA512 
fd0b1ae050d39393afb108ce3b60e49080eaa23de96b7e0afd8839d1f57f76cf66febbeb450bf7e975df7550f3817f44ae7c0c08c2ad591c09e30184ed4fde86

diff --git a/app-admin/puppetdb/puppetdb-8.7.0.ebuild 
b/app-admin/puppetdb/puppetdb-8.7.0.ebuild
new file mode 100644
index 000000000000..d08261a3e451
--- /dev/null
+++ b/app-admin/puppetdb/puppetdb-8.7.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2024 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'"
+}

Reply via email to