From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-897564-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id F1E6B13832E
	for <garchives@archives.gentoo.org>; Thu, 18 Aug 2016 16:29:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 33D3521C012;
	Thu, 18 Aug 2016 16:29:29 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BFF6321C012
	for <gentoo-commits@lists.gentoo.org>; Thu, 18 Aug 2016 16:29:28 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 1DB20340815
	for <gentoo-commits@lists.gentoo.org>; Thu, 18 Aug 2016 16:29:27 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 71DCA7D8
	for <gentoo-commits@lists.gentoo.org>; Thu, 18 Aug 2016 16:29:23 +0000 (UTC)
From: "Matt Thode" <prometheanfire@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matt Thode" <prometheanfire@gentoo.org>
Message-ID: <1471537733.6784f7d917df8f90a85279bae5e094a1d8da231c.prometheanfire@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/puppetdb/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-admin/puppetdb/Manifest app-admin/puppetdb/puppetdb-4.2.1.ebuild
X-VCS-Directories: app-admin/puppetdb/
X-VCS-Committer: prometheanfire
X-VCS-Committer-Name: Matt Thode
X-VCS-Revision: 6784f7d917df8f90a85279bae5e094a1d8da231c
X-VCS-Branch: master
Date: Thu, 18 Aug 2016 16:29:23 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 011d0aed-6c84-4353-879a-832f700d5b17
X-Archives-Hash: 7fc2574381fe256dcd6b8e23409001f6

commit:     6784f7d917df8f90a85279bae5e094a1d8da231c
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 18 16:28:53 2016 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Thu Aug 18 16:28:53 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6784f7d9

app-admin/puppetdb: bup

Package-Manager: portage-2.2.28

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

diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest
index e88fdc7..6adfc3c 100644
--- a/app-admin/puppetdb/Manifest
+++ b/app-admin/puppetdb/Manifest
@@ -3,3 +3,4 @@ DIST puppetdb-4.0.2.tar.gz 22131185 SHA256 7306f509f2caf642e37c0b8c1d67a07734a79
 DIST puppetdb-4.1.0.tar.gz 22315267 SHA256 c06320f4befd5422308af38f44d76986c14b56cd1940705954b06754035e250c SHA512 a9d8fbaa3fa2cc7edb02058250144becc43be3841bd702600a584438f8c4ce58abdea466e75d00aea2ff04d1f17a183ef018cb42c4d1cb952c2f71e8ff389bd1 WHIRLPOOL f2c764c85e5ca33469413e551406e1112ff3e98112f372a3b5f8ad89c464dfa159d571e61dbd80839b59762b3549e64040a38668f45187a8fe3ed8fe98e8e59d
 DIST puppetdb-4.1.2.tar.gz 22313557 SHA256 d0752931e57ed7c524e4de2f0aa68aa13986db9aeb1a059782d65c063c028773 SHA512 fa53493ea0af7b2441de4572b836289346d0f8d7cd6b6fecabaccca6b21f6686dcee0dc1280c38001347b3e3214b11512ae402587385114c654a7c1a9bbfb670 WHIRLPOOL 8fee8fe966d8b848f8b6fbfc05f176313c32e3c0e112520571ee9eba98e6895732787d455ca70cf3cbe8d8ac8d8fbd34dc50c6b794b2d85b90b93bf62dd047b2
 DIST puppetdb-4.2.0.tar.gz 22410191 SHA256 cd5e62c826bb13fbfe5a5ceae24c41a1e8f7bb1bb33c191efa50ba010e82b52c SHA512 75391761d8d72edc33417bd0157191c38c5a1ef7db72ad39c1858c973d678e2455ba403737c94457c20199393c78d83da547d2e703025b5ae6c743f36d13a532 WHIRLPOOL 4ac8fe28b189b84174ae5221c7074fe2425f3d1d6e25fcc1cdc1f123e1eb60eccf98549d4a12442cb7578361c58c7b1b1ac791e452a39dae669a2dd38c4c158e
+DIST puppetdb-4.2.1.tar.gz 22408841 SHA256 3d9ee12a3713046d57b6b1eb8cfd36643037cb06ac7e9573f00490a40e337666 SHA512 93fd8fbfd0f142f9da761e54ee578be163ab9d8e70cf278c7e2c1b981a7bd03dd0aa9d1a6909d36ee2e5e1d42ab227984749e584b2c32083ba0ef36d23c607b2 WHIRLPOOL ae54f063352aa50ffe1431940cc8db69562fda62e23050532e8a0786905dfc5e0829862fced827961bd103a3bf3f3601c6fda556b31f93da42529b45d039c217

diff --git a/app-admin/puppetdb/puppetdb-4.2.1.ebuild b/app-admin/puppetdb/puppetdb-4.2.1.ebuild
new file mode 100644
index 0000000..1386a3e
--- /dev/null
+++ b/app-admin/puppetdb/puppetdb-4.2.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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
+}
+
+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'"
+}