diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-11-01 09:24:47 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-11-01 09:24:47 -0500 |
commit | b832dd9643e913f301cf8b2b0d174b94298a03f7 (patch) | |
tree | 94c083637bdfe58e7565d9b9e233cef74b122cad /app-admin/puppetdb | |
parent | net-misc/memcached: bup (diff) | |
download | gentoo-b832dd9643e913f301cf8b2b0d174b94298a03f7.tar.gz gentoo-b832dd9643e913f301cf8b2b0d174b94298a03f7.tar.bz2 gentoo-b832dd9643e913f301cf8b2b0d174b94298a03f7.zip |
app-admin/puppetdb: bup
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-admin/puppetdb')
-rw-r--r-- | app-admin/puppetdb/Manifest | 1 | ||||
-rw-r--r-- | app-admin/puppetdb/puppetdb-4.2.4.ebuild | 92 |
2 files changed, 93 insertions, 0 deletions
diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest index e617c0238b68..7506b06cb88e 100644 --- a/app-admin/puppetdb/Manifest +++ b/app-admin/puppetdb/Manifest @@ -1,2 +1,3 @@ DIST puppetdb-4.0.2.tar.gz 22131185 SHA256 7306f509f2caf642e37c0b8c1d67a07734a7912ae6ce0887c805d038e3d43fb6 SHA512 60594246df950f644cdc8d17da16685b15ab3b4838586820a1fd2a242aaa66a0320a1ffd8da445c7a071f8af15305ad711a588eb1ac5c0646a8bfed65e5b935f WHIRLPOOL 77406d20e62014f3e3ac4c688ffa9792b1590ea05b5a176aa4a36d34e7feeee74792d86350f74e4b4274015fe6e96dbc198f26bf016b8c10993621e507c0e9cd DIST puppetdb-4.2.2.tar.gz 22423081 SHA256 21f02707e6c7a544e95897ffbb4bfa755cdeed04fbc75220b7e63b353e8f385a SHA512 fde6a37eef88dd484c7654935ba059be6ac0bc088b60c1689ce61f5fd89c0fa1eb898460b973f422f457fe8eeaed073e19d0d8420b7ac5075164d180dca690da WHIRLPOOL 3b84daffda9e64cd34d07c78c91a5f4bc41a3687fcfb1bcd90d7451520e0081fd37d5d6989d3534cc7c7f9f506f4a47847da3aaa9cfb82d027c67ceabde02208 +DIST puppetdb-4.2.4.tar.gz 22555040 SHA256 dd0db3c883dc71d6d198a213b628f3993d35e62b900d268791ba8e655c8a430a SHA512 05856abb3f12b4e3b0b7602a07ef39d43cb459cde9d3b6d047439ebb28cca56512caa6c481833abf27bfc0cb075f2252c0d0fd2646aea2c38e1bc2a4169514ba WHIRLPOOL 37b6bd8dba1fdeb6df1d8a7b2f8541cc4522b0a95369fdeae6f563dbf672a3b8281813f7a169bbbaf2b3e0c0b0e103b5b4834cb1c26d75d6de78879ddc9c10da diff --git a/app-admin/puppetdb/puppetdb-4.2.4.ebuild b/app-admin/puppetdb/puppetdb-4.2.4.ebuild new file mode 100644 index 000000000000..7f657446ffe8 --- /dev/null +++ b/app-admin/puppetdb/puppetdb-4.2.4.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit multilib systemd user + +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="" +# will need the same keywords as puppet +KEYWORDS="~amd64 ~x86" + +RDEPEND+=">=virtual/jdk-1.7.0" +DEPEND+="" + +pkg_setup() { + enewgroup puppetdb + enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "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 + 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/export + doins ext/cli/config-migration + doins ext/cli/foreground + doins ext/cli/anonymize + doins ext/cli/import + 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 + systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf + newinitd "${FILESDIR}/puppetdb.initd" 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() { + 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'" +} |