From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C760959CA3 for ; Fri, 18 Mar 2016 13:41:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB2A4E08A0; Fri, 18 Mar 2016 13:41:21 +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 6236DE08A0 for ; Fri, 18 Mar 2016 13:41:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 5516E340DBC for ; Fri, 18 Mar 2016 13:41:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 18EC4853 for ; Fri, 18 Mar 2016 13:41:15 +0000 (UTC) From: "Matt Thode" 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" Message-ID: <1458308420.77172997dfc2248b1347f5ec4c839f7f56d00c4f.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.0.0.ebuild X-VCS-Directories: app-admin/puppetdb/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matt Thode X-VCS-Revision: 77172997dfc2248b1347f5ec4c839f7f56d00c4f X-VCS-Branch: master Date: Fri, 18 Mar 2016 13:41:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8147f7f0-eb3b-47f4-85f7-110050d15da4 X-Archives-Hash: 76c0152c91d4d357efa0efd8bc930fae commit: 77172997dfc2248b1347f5ec4c839f7f56d00c4f Author: Matthew Thode gentoo org> AuthorDate: Fri Mar 18 13:32:42 2016 +0000 Commit: Matt Thode gentoo org> CommitDate: Fri Mar 18 13:40:20 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77172997 app-admin/puppetdb: bup Package-Manager: portage-2.2.26 app-admin/puppetdb/Manifest | 1 + app-admin/puppetdb/puppetdb-4.0.0.ebuild | 91 ++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest index 710b593..e8dad77 100644 --- a/app-admin/puppetdb/Manifest +++ b/app-admin/puppetdb/Manifest @@ -1,2 +1,3 @@ DIST puppetdb-3.2.3.tar.gz 25469315 SHA256 3b9d121e54da1511834d708437c9c9ca15db2818314f442511bbb2e576a7afaa SHA512 d15a497bce10e1af989e1deaba99794929916362e13393814d2c5545f80ee4fb0976758c3bd0ae41466bd0364ba5df417fa69afde8bf24e6573119cdbe814aa9 WHIRLPOOL 031c14df0df52320926030e32290fb8ab5115e800711d90b2c5acdc712fa7bbcefbc83afc380bbeff4f1b30654d724a8db01c9b5ace3f6bc0deeeb31127e4443 DIST puppetdb-3.2.4.tar.gz 25695565 SHA256 580d25ace29b61d7504dfc2650fd7e1c6a14e77421cbfafed14703d857996d84 SHA512 ff9214a4bcf2815ee4feecae91c697dc409a28acd934a82d56cdbae875fe95b5a0928a302749df2219bbc9db723402739abb2d9dc7fb70ab0934da8534a683b1 WHIRLPOOL bfecad13e578700c271fdaf403163d0c43af9affc826e7b6c0dab54b3457cd10851559ffacf53852cea1e9215c7eeba248c4e2b4260942ee5039252817f28033 +DIST puppetdb-4.0.0.tar.gz 22121324 SHA256 e28d898e1912a43cb3f2555c5bacf4cb03d819579ad5c018b70b5f73af52fc33 SHA512 d2b06f470bb30ff7b6d6d02cd1d40ae6a9f1456baa7e15aac0ed51c6fae1f5b9b4c06d97896bd7c509302c8e26353d286c26e6a11fcb983ebf2569edf84bbf4d WHIRLPOOL c9c94cb9e2db49a3e0760a19ce7b714ee0e382087acba017a5392abbc3bd8ae12449aa7008dd4ab58cec18027fb6a5091b892d157c8562db0c1c6bed9993a31c diff --git a/app-admin/puppetdb/puppetdb-4.0.0.ebuild b/app-admin/puppetdb/puppetdb-4.0.0.ebuild new file mode 100644 index 0000000..1386a3e --- /dev/null +++ b/app-admin/puppetdb/puppetdb-4.0.0.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'" +}